39 {0, LED_FIRE}, {1, LED_FIRE}, {2, LED_FIRE}, {3, LED_FIRE}, {4, LED_CAUTION},
40 {5, LED_CAUTION}, {6, LED_CAUTION}, {7, LED_CAUTION}, {8, LED_GO}, {9, LED_GO},
41 {10, LED_NO_GO}, {11, LED_NO_GO}, {12, LED_R_BLEED}, {13, LED_R_BLEED}, {14, LED_L_BLEED},
42 {15, LED_L_BLEED}, {16, LED_SPD_BRK}, {17, LED_SPD_BRK}, {18, LED_STBY}, {19, LED_STBY},
43 {20, LED_REC}, {21, LED_REC}, {22, LED_L_BAR1}, {23, LED_L_BAR1}, {24, LED_L_BAR2},
44 {25, LED_L_BAR2}, {26, LED_XMIT}, {27, LED_XMIT}, {28, LED_ASPJ_ON}, {29, LED_ASPJ_ON}
69 instance =
new EwiPanel(startIndex, ledStrip);
81 EwiPanel(
int startIndex, CRGB* ledStrip) {
82 panelStartIndex = startIndex;
83 this->ledStrip = ledStrip;
84 ledCount = L_EWI_LED_COUNT;
85 ledTable = lEwiLedTable;
93 static void onFireLeftLtChange(
unsigned int newValue) {
94 if (instance) instance->
setIndicatorColor(LED_FIRE, newValue ? NVIS_RED : NVIS_BLACK);
96 DcsBios::IntegerBuffer fireLeftLtBuffer{FA_18C_hornet_FIRE_LEFT_LT, onFireLeftLtChange};
98 static void onMasterCautionLtChange(
unsigned int newValue) {
99 if (instance) instance->
setIndicatorColor(LED_CAUTION, newValue ? NVIS_YELLOW : NVIS_BLACK);
101 DcsBios::IntegerBuffer masterCautionLtBuffer{FA_18C_hornet_MASTER_CAUTION_LT, onMasterCautionLtChange};
103 static void onLhAdvAspjOhChange(
unsigned int newValue) {
104 if (instance) instance->
setIndicatorColor(LED_ASPJ_ON, newValue ? NVIS_YELLOW : NVIS_BLACK);
106 DcsBios::IntegerBuffer lhAdvAspjOhBuffer{FA_18C_hornet_LH_ADV_ASPJ_OH, onLhAdvAspjOhChange};
108 static void onLhAdvGoChange(
unsigned int newValue) {
109 if (instance) instance->
setIndicatorColor(LED_GO, newValue ? NVIS_GREEN_A : NVIS_BLACK);
111 DcsBios::IntegerBuffer lhAdvGoBuffer{FA_18C_hornet_LH_ADV_GO, onLhAdvGoChange};
113 static void onLhAdvLBarGreenChange(
unsigned int newValue) {
114 if (instance) instance->
setIndicatorColor(LED_L_BAR2, newValue ? NVIS_GREEN_A : NVIS_BLACK);
116 DcsBios::IntegerBuffer lhAdvLBarGreenBuffer{FA_18C_hornet_LH_ADV_L_BAR_GREEN, onLhAdvLBarGreenChange};
118 static void onLhAdvLBarRedChange(
unsigned int newValue) {
119 if (instance) instance->
setIndicatorColor(LED_L_BAR1, newValue ? NVIS_RED : NVIS_BLACK);
121 DcsBios::IntegerBuffer lhAdvLBarRedBuffer{FA_18C_hornet_LH_ADV_L_BAR_RED, onLhAdvLBarRedChange};
123 static void onLhAdvLBleedChange(
unsigned int newValue) {
124 if (instance) instance->
setIndicatorColor(LED_L_BLEED, newValue ? NVIS_RED : NVIS_BLACK);
126 DcsBios::IntegerBuffer lhAdvLBleedBuffer{FA_18C_hornet_LH_ADV_L_BLEED, onLhAdvLBleedChange};
128 static void onLhAdvNoGoChange(
unsigned int newValue) {
129 if (instance) instance->
setIndicatorColor(LED_NO_GO, newValue ? NVIS_YELLOW : NVIS_BLACK);
131 DcsBios::IntegerBuffer lhAdvNoGoBuffer{FA_18C_hornet_LH_ADV_NO_GO, onLhAdvNoGoChange};
133 static void onLhAdvRBleedChange(
unsigned int newValue) {
134 if (instance) instance->
setIndicatorColor(LED_R_BLEED, newValue ? NVIS_RED : NVIS_BLACK);
136 DcsBios::IntegerBuffer lhAdvRBleedBuffer{FA_18C_hornet_LH_ADV_R_BLEED, onLhAdvRBleedChange};
138 static void onLhAdvRecChange(
unsigned int newValue) {
139 if (instance) instance->
setIndicatorColor(LED_REC, newValue ? NVIS_GREEN_A : NVIS_BLACK);
141 DcsBios::IntegerBuffer lhAdvRecBuffer{FA_18C_hornet_LH_ADV_REC, onLhAdvRecChange};
143 static void onLhAdvSpdBrkChange(
unsigned int newValue) {
144 if (instance) instance->
setIndicatorColor(LED_SPD_BRK, newValue ? NVIS_GREEN_A : NVIS_BLACK);
146 DcsBios::IntegerBuffer lhAdvSpdBrkBuffer{FA_18C_hornet_LH_ADV_SPD_BRK, onLhAdvSpdBrkChange};
148 static void onLhAdvStbyChange(
unsigned int newValue) {
149 if (instance) instance->
setIndicatorColor(LED_STBY, newValue ? NVIS_GREEN_A : NVIS_BLACK);
151 DcsBios::IntegerBuffer lhAdvStbyBuffer{FA_18C_hornet_LH_ADV_STBY, onLhAdvStbyChange};
153 static void onLhAdvXmitChange(
unsigned int newValue) {
154 if (instance) instance->
setIndicatorColor(LED_XMIT, newValue ? NVIS_GREEN_A : NVIS_BLACK);
156 DcsBios::IntegerBuffer lhAdvXmitBuffer{FA_18C_hornet_LH_ADV_XMIT, onLhAdvXmitChange};