2
2
-- Many thanks to Capt Zeen for the pointers on analog outputs and UFC/IFEI export
3
3
-- And of course huge thanks to [FSF]Ian for writing DCS-BIOS in the first place
4
4
5
+
6
+ -- Added new functions by Capt Zeen to get radios frecuencies and channels
7
+
8
+
9
+
5
10
BIOS .protocol .beginModule (" FA-18C_hornet" , 0x7400 )
6
11
BIOS .protocol .setExportModuleAircrafts ({" FA-18C_hornet" })
7
12
@@ -273,6 +278,124 @@ function defineFloatWithValueConversion(msg, arg_number, limits, input_range, ou
273
278
end
274
279
275
280
281
+ -- functions by Capt Zeen
282
+ function defineFrequency (msg , id_device_number , category , description )
283
+
284
+ local alloc = moduleBeingDefined .memoryMap :allocateInt { maxValue = 65535 }
285
+ moduleBeingDefined .exportHooks [# moduleBeingDefined .exportHooks + 1 ] = function (freq )
286
+ local dato = GetDevice (id_device_number )
287
+ alloc :setValue (dato :get_frequency ()/ 10000 )
288
+ end
289
+ document {
290
+ identifier = msg ,
291
+ category = category ,
292
+ description = description ,
293
+ control_type = " frequency" ,
294
+ inputs = {},
295
+ outputs = {
296
+ { [" type" ] = " integer" ,
297
+ suffix = " " ,
298
+ address = alloc .address ,
299
+ mask = alloc .mask ,
300
+ shift_by = alloc .shiftBy ,
301
+ max_value = 65535 ,
302
+ description = " frequency"
303
+ }
304
+ }
305
+ }
306
+ end
307
+
308
+
309
+ function defineFloatFromUFCChannel (msg , _channel , category , description )
310
+
311
+
312
+
313
+
314
+ local alloc = moduleBeingDefined .memoryMap :allocateInt { maxValue = 65535 }
315
+ moduleBeingDefined .exportHooks [# moduleBeingDefined .exportHooks + 1 ] = function ()
316
+
317
+ local ufc = parse_indication (6 )
318
+ UFC_Comm1Display = " "
319
+ UFC_Comm2Display = " "
320
+
321
+
322
+ if not ufc then
323
+ return
324
+ end
325
+ UFC_Comm1Display = coerce_nil_to_string (ufc .UFC_Comm1Display )
326
+ UFC_Comm2Display = coerce_nil_to_string (ufc .UFC_Comm2Display )
327
+ local valor = 1
328
+ local nuevo = " "
329
+ if _channel == 1 then
330
+ nuevo = UFC_Comm1Display
331
+ else
332
+ nuevo = UFC_Comm2Display
333
+ end
334
+
335
+
336
+ if nuevo == " 1" then valor = 1
337
+ elseif nuevo == " 2" then valor = 2
338
+ elseif nuevo == " 3" then valor = 3
339
+ elseif nuevo == " 4" then valor = 4
340
+ elseif nuevo == " 5" then valor = 5
341
+ elseif nuevo == " 6" then valor = 6
342
+ elseif nuevo == " 7" then valor = 7
343
+ elseif nuevo == " 8" then valor = 8
344
+ elseif nuevo == " 9" then valor = 9
345
+ elseif nuevo == " `0" then valor = 10
346
+ elseif nuevo == " `1" then valor = 11
347
+ elseif nuevo == " `2" then valor = 12
348
+ elseif nuevo == " `3" then valor = 13
349
+ elseif nuevo == " `4" then valor = 14
350
+ elseif nuevo == " `5" then valor = 15
351
+ elseif nuevo == " `6" then valor = 16
352
+ elseif nuevo == " `7" then valor = 17
353
+ elseif nuevo == " `8" then valor = 18
354
+ elseif nuevo == " `9" then valor = 19
355
+ elseif nuevo == " ~0" then valor = 20
356
+ elseif nuevo == " G" then valor = 21
357
+ elseif nuevo == " M" then valor = 22
358
+ elseif nuevo == " C" then valor = 23
359
+ elseif nuevo == " S" then valor = 24
360
+ end
361
+
362
+
363
+ alloc :setValue (valor )
364
+ end
365
+
366
+ document {
367
+ identifier = msg ,
368
+ category = category ,
369
+ description = description ,
370
+ control_type = " analog_gauge" ,
371
+ inputs = {},
372
+ outputs = {
373
+ { [" type" ] = " integer" ,
374
+ suffix = " " ,
375
+ address = alloc .address ,
376
+ mask = alloc .mask ,
377
+ shift_by = alloc .shiftBy ,
378
+ max_value = 65535 ,
379
+ description = " gauge position"
380
+ }
381
+ }
382
+ }
383
+
384
+ end
385
+
386
+
387
+ -- end of functions adeed by Capt Zeen
388
+
389
+
390
+ -- radio freqs: by Capt Zeen
391
+ defineFrequency (" COMM1_FREQ" , 38 , " Comms frequency" , " COMM1 FREQ" )
392
+ defineFrequency (" COMM2_FREQ" , 39 , " Comms frequency" , " COMM2 FREQ" )
393
+ defineFloatFromUFCChannel (" COMM1_CHANNEL_NUMERIC" , 1 , " Comms frequency" , " Comm 1 Channel as number" )
394
+ defineFloatFromUFCChannel (" COMM2_CHANNEL_NUMERIC" , 2 , " Comms frequency" , " Comm 2 Channel as number" )
395
+
396
+
397
+
398
+
276
399
-- INSTRUMENT PANEL
277
400
278
401
-- 1. Lock/Shoot Lights
@@ -287,10 +410,10 @@ defineIndicatorLight("AOA_INDEXER_HIGH", 4, "Angle of Attack Indexer Lights", "A
287
410
defineIndicatorLight (" AOA_INDEXER_NORMAL" , 5 , " Angle of Attack Indexer Lights" , " AOA Indexer Normal" )
288
411
defineIndicatorLight (" AOA_INDEXER_LOW" , 6 , " Angle of Attack Indexer Lights" , " AOA Indexer Low" )
289
412
290
- -- 4. Left Engine Fire Warning Extinguisher Light
291
- defineIndicatorLight (" FIRE_LEFT_LT" , 10 , " Left Engine Fire Warning Extinguisher Light" , " FIRE LEFT" )
292
- definePushButton (" LEFT_FIRE_BTN" , 12 , 3010 , 11 , " Left Engine Fire Warning Extinguisher Light" , " Left Engine/AMAD Fire Warning Extinguisher Light" )
293
- defineToggleSwitch (" LEFT_FIRE_BTN_COVER" , 12 , 3012 , 12 , " Left Engine Fire Warning Extinguisher Light" , " Left Engine/AMAD Fire Warning Cover" )
413
+ -- 4. Left Engine Fire Warning/ Extinguisher Light
414
+ defineIndicatorLight (" FIRE_LEFT_LT" , 10 , " Left Engine Fire Warning/ Extinguisher Light" , " FIRE LEFT" )
415
+ definePushButton (" LEFT_FIRE_BTN" , 12 , 3010 , 11 , " Left Engine Fire Warning/ Extinguisher Light" , " Left Engine/AMAD Fire Warning/ Extinguisher Light" )
416
+ defineToggleSwitch (" LEFT_FIRE_BTN_COVER" , 12 , 3012 , 12 , " Left Engine Fire Warning/ Extinguisher Light" , " Left Engine/AMAD Fire Warning Cover" )
294
417
295
418
-- 5. Master Caution Light
296
419
defineIndicatorLight (" MASTER_CAUTION_LT" , 13 , " Master Caution Light" , " MASTER CAUTION" )
@@ -327,11 +450,11 @@ defineIndicatorLight("RH_ADV_SPARE_RH5", 37, "RH Advisory Panel", "SPARE RH5")
327
450
328
451
-- 9. APU Fire Warning / Extinguisher Light
329
452
defineIndicatorLight (" FIRE_APU_LT" , 29 , " APU Fire Warning / Extinguisher Light" , " FIRE APU" )
330
- definePushButton (" APU_FIRE_BTN" , 12 , 3009 , 30 , " APU Fire Warning / Extinguisher Light" , " APU Fire Warning Extinguisher Light" )
453
+ definePushButton (" APU_FIRE_BTN" , 12 , 3009 , 30 , " APU Fire Warning / Extinguisher Light" , " APU Fire Warning/ Extinguisher Light" )
331
454
332
455
-- 10. Right Engine Fire Warning Extinguisher Light
333
456
defineIndicatorLight (" FIRE_RIGHT_LT" , 26 , " Right Engine Fire Warning Extinguisher Light" , " FIRE RIGHT" )
334
- definePushButton (" RIGHT_FIRE_BTN" , 12 , 3011 , 27 , " Right Engine Fire Warning Extinguisher Light" , " Right Engine/AMAD Fire Warning Extinguisher Light" )
457
+ definePushButton (" RIGHT_FIRE_BTN" , 12 , 3011 , 27 , " Right Engine Fire Warning Extinguisher Light" , " Right Engine/AMAD Fire Warning/ Extinguisher Light" )
335
458
defineToggleSwitch (" RIGHT_FIRE_BTN_COVER" , 12 , 3013 , 28 , " Right Engine Fire Warning Extinguisher Light" , " Right Engine/AMAD Fire Warning Cover" )
336
459
337
460
-- 11. Canopy Internal Jettison Handle
@@ -462,6 +585,9 @@ moduleBeingDefined.exportHooks[#moduleBeingDefined.exportHooks+1] = function()
462
585
UFC_ScratchPadString2Display = coerce_nil_to_string (ufc .UFC_ScratchPadString2Display )
463
586
end
464
587
588
+
589
+
590
+
465
591
defineString (" UFC_COMM1_DISPLAY" , function () return UFC_Comm1Display end , 2 , " Up Front Controller (UFC)" , " Comm 1 Display" )
466
592
defineString (" UFC_COMM2_DISPLAY" , function () return UFC_Comm2Display end , 2 , " Up Front Controller (UFC)" , " Comm 2 Display" )
467
593
defineString (" UFC_OPTION_CUEING_1" , function () return UFC_OptionCueing1 end , 1 , " Up Front Controller (UFC)" , " Option Cueing 1" )
@@ -794,7 +920,7 @@ definePotentiometer("RIGHT_LOUVER", 11, 3011, 506, {0, 1}, "Environment Control
794
920
defineToggleSwitch (" GEAR_LEVER" , 5 , 3001 , 226 , " Landing Gear Handle and Warning Tone Silence" , " Gear Lever" )
795
921
defineToggleSwitch (" EMERGENCY_GEAR_ROTATE" , 5 , 3002 , 228 , " Landing Gear Handle and Warning Tone Silence" , " Emergency Gear Rotate" )
796
922
definePushButton (" GEAR_DOWNLOCK_OVERRIDE_BTN" , 5 , 3003 , 229 , " Landing Gear Handle and Warning Tone Silence" , " Landing Gear Override" )
797
- definePushButton (" GEAR_SILENCE_BTN" , 41 , 3018 , 230 , " Landing Gear Handle and Warning Tone Silence" , " Warning Tone Silence Button - Push to silence" )
923
+ definePushButton (" GEAR_SILENCE_BTN" , 40 , 3018 , 230 , " Landing Gear Handle and Warning Tone Silence" , " Warning Tone Silence Button - Push to silence" )
798
924
799
925
-- 32. Select Jettison Button
800
926
definePushButton (" SEL_JETT_BTN" , 23 , 3010 , 235 , " Select Jettison Button" , " Selective Jettison Pushbutton" )
@@ -813,20 +939,20 @@ defineToggleSwitch("EMERGENCY_PARKING_BRAKE_PULL", 5, 3005, 240, "Emergency and
813
939
defineEmergencyParkingBrake (" EMERGENCY_PARKING_BRAKE_ROTATE" , 5 , 3007 , 3006 , 241 , " Emergency and Parking Brake Handle" , " Emergency/Parking Brake Rotate" )
814
940
815
941
-- 35. Dispenser/EMC Panel
816
- defineTumb (" CMSD_DISPENSE_SW" , 55 , 3001 , 517 , 0.1 , {0.0 , 0.2 }, nil , false , " Dispenser/EMC Panel" , " DISPENSER Switch, BYPASS/ON/OFF" )
817
- definePushButton (" CMSD_JET_SEL_BTN" , 55 , 3003 , 515 , " Dispenser/EMC Panel" , " ECM JETT JETT SEL Button - Push to jettison" )
942
+ defineTumb (" CMSD_DISPENSE_SW" , 54 , 3001 , 517 , 0.1 , {0.0 , 0.2 }, nil , false , " Dispenser/EMC Panel" , " DISPENSER Switch, BYPASS/ON/OFF" )
943
+ definePushButton (" CMSD_JET_SEL_BTN" , 54 , 3003 , 515 , " Dispenser/EMC Panel" , " ECM JETT JETT SEL Button - Push to jettison" )
818
944
defineTumb (" ECM_MODE_SW" , 0 , 3116 , 248 , 0.1 , {0.0 , 0.4 }, nil , false , " Dispenser/EMC Panel" , " ECM Mode Switch, XMIT/REC/BIT/STBY/OFF" )
819
945
defineToggleSwitch (" AUX_REL_SW" , 23 , 3012 , 258 , " Dispenser/EMC Panel" , " Auxiliary Release Switch, ENABLE/NORM" )
820
946
821
947
-- 36. RWR Control Indicator
822
- definePushButton (" RWR_POWER_BTN" , 54 , 3001 , 277 , " RWR Control Indicator" , " ALR-67 POWER Pushbutton" )
823
- definePushButton (" RWR_DISPLAY_BTN" , 54 , 3002 , 275 , " RWR Control Indicator" , " ALR-67 DISPLAY Pushbutton" )
824
- definePushButton (" RWR_SPECIAL_BTN" , 54 , 3003 , 272 , " RWR Control Indicator" , " ALR-67 SPECIAL Pushbutton" )
825
- definePushButton (" RWR_OFFSET_BTN" , 54 , 3004 , 269 , " RWR Control Indicator" , " ALR-67 OFFSET Pushbutton" )
826
- definePushButton (" RWR_BIT_BTN" , 54 , 3005 , 266 , " RWR Control Indicator" , " ALR-67 BIT Pushbutton" )
827
- definePotentiometer (" RWR_DMR_CTRL" , 54 , 3006 , 263 , {0 , 1 }, " RWR Control Indicator" , " ALR-67 DMR Control Knob" )
828
- defineTumb (" RWR_DIS_TYPE_SW" , 54 , 3007 , 261 , 0.1 , {0.0 , 0.4 }, nil , false , " RWR Control Indicator" , " ALR-67 DIS TYPE Switch, N/I/A/U/F" )
829
- definePotentiometer (" RWR_RWR_INTESITY" , 54 , 3008 , 216 , {0 , 1 }, " RWR Control Indicator" , " RWR Intensity Knob" )
948
+ definePushButton (" RWR_POWER_BTN" , 53 , 3001 , 277 , " RWR Control Indicator" , " ALR-67 POWER Pushbutton" )
949
+ definePushButton (" RWR_DISPLAY_BTN" , 53 , 3002 , 275 , " RWR Control Indicator" , " ALR-67 DISPLAY Pushbutton" )
950
+ definePushButton (" RWR_SPECIAL_BTN" , 53 , 3003 , 272 , " RWR Control Indicator" , " ALR-67 SPECIAL Pushbutton" )
951
+ definePushButton (" RWR_OFFSET_BTN" , 53 , 3004 , 269 , " RWR Control Indicator" , " ALR-67 OFFSET Pushbutton" )
952
+ definePushButton (" RWR_BIT_BTN" , 53 , 3005 , 266 , " RWR Control Indicator" , " ALR-67 BIT Pushbutton" )
953
+ definePotentiometer (" RWR_DMR_CTRL" , 53 , 3006 , 263 , {0 , 1 }, " RWR Control Indicator" , " ALR-67 DMR Control Knob" )
954
+ defineTumb (" RWR_DIS_TYPE_SW" , 53 , 3007 , 261 , 0.1 , {0.0 , 0.4 }, nil , false , " RWR Control Indicator" , " ALR-67 DIS TYPE Switch, N/I/A/U/F" )
955
+ definePotentiometer (" RWR_RWR_INTESITY" , 53 , 3008 , 216 , {0 , 1 }, " RWR Control Indicator" , " RWR Intensity Knob" )
830
956
defineIndicatorLight (" RWR_LOWER_LT" , 276 , " RWR Control Indicator" , " ALR-67 LOWER Light" )
831
957
defineIndicatorLight (" RWR_LIMIT_LT" , 273 , " RWR Control Indicator" , " ALR-67 LIMIT Light" )
832
958
defineIndicatorLight (" RWR_DISPLAY_LT" , 274 , " RWR Control Indicator" , " ALR-67 DISPLAY Light" )
@@ -930,21 +1056,21 @@ defineToggleSwitch("GAIN_SWITCH_COVER", 2, 3005, 348, "Flight Control System Pan
930
1056
defineToggleSwitch (" GAIN_SWITCH" , 2 , 3006 , 347 , " Flight Control System Panel" , " GAIN Switch" )
931
1057
932
1058
-- 7. Communication Panel
933
- definePotentiometer (" COM_VOX" , 41 , 3002 , 357 , {0 , 1 }, " Communication Panel" , " VOX Volume Control Knob" )
934
- definePotentiometer (" COM_ICS" , 41 , 3003 , 358 , {0 , 1 }, " Communication Panel" , " ICS Volume Control Knob" )
935
- definePotentiometer (" COM_RWR" , 41 , 3004 , 359 , {0 , 1 }, " Communication Panel" , " RWR Volume Control Knob" )
936
- definePotentiometer (" COM_WPN" , 41 , 3005 , 360 , {0 , 1 }, " Communication Panel" , " WPN Volume Control Knob" )
937
- definePotentiometer (" COM_MIDS_A" , 41 , 3006 , 362 , {0 , 1 }, " Communication Panel" , " MIDS A Volume Control Knob" )
938
- definePotentiometer (" COM_MIDS_B" , 41 , 3007 , 361 , {0 , 1 }, " Communication Panel" , " MIDS B Volume Control Knob" )
939
- definePotentiometer (" COM_TACAN" , 41 , 3008 , 363 , {0 , 1 }, " Communication Panel" , " TACAN Volume Control Knob" )
940
- definePotentiometer (" COM_AUX" , 41 , 3009 , 364 , {0 , 1 }, " Communication Panel" , " AUX Volume Control Knob" )
941
- define3PosTumb (" COM_COMM_RELAY_SW" , 41 , 3010 , 350 , " Communication Panel" , " Comm Relay Switch, CIPHER/OFF/PLAIN" )
942
- define3PosTumb (" COM_COMM_G_XMT_SW" , 41 , 3011 , 351 , " Communication Panel" , " COMM G XMT Switch, COMM 1/OFF/COMM 2" )
943
- defineToggleSwitch (" COM_IFF_MASTER_SW" , 41 , 3012 , 356 , " Communication Panel" , " IFF Master Switch, EMER/NORM" )
944
- define3PosTumb (" COM_IFF_MODE4_SW" , 41 , 3013 , 355 , " Communication Panel" , " IFF Mode 4 Switch, DIS/AUD /DIS/OFF" )
945
- defineRockerSwitch (" COM_CRYPTO_SW" , 41 , 3015 , 3015 , 3014 , 3014 , 354 , " Communication Panel" , " CRYPTO Switch, HOLD/NORM/ZERO" )
946
- defineToggleSwitch (" COM_ILS_UFC_MAN_SW" , 41 , 3016 , 353 , " Communication Panel" , " ILS UFC/MAN Switch, UFC/MAN" )
947
- defineTumb (" COM_ILS_CHANNEL_SW" , 41 , 3017 , 352 , 0.05 , {0.0 , 0.95 }, nil , false , " Communication Panel" , " ILS Channel Selector Switch" )
1059
+ definePotentiometer (" COM_VOX" , 40 , 3002 , 357 , {0 , 1 }, " Communication Panel" , " VOX Volume Control Knob" )
1060
+ definePotentiometer (" COM_ICS" , 40 , 3003 , 358 , {0 , 1 }, " Communication Panel" , " ICS Volume Control Knob" )
1061
+ definePotentiometer (" COM_RWR" , 40 , 3004 , 359 , {0 , 1 }, " Communication Panel" , " RWR Volume Control Knob" )
1062
+ definePotentiometer (" COM_WPN" , 40 , 3005 , 360 , {0 , 1 }, " Communication Panel" , " WPN Volume Control Knob" )
1063
+ definePotentiometer (" COM_MIDS_A" , 40 , 3006 , 362 , {0 , 1 }, " Communication Panel" , " MIDS A Volume Control Knob" )
1064
+ definePotentiometer (" COM_MIDS_B" , 40 , 3007 , 361 , {0 , 1 }, " Communication Panel" , " MIDS B Volume Control Knob" )
1065
+ definePotentiometer (" COM_TACAN" , 40 , 3008 , 363 , {0 , 1 }, " Communication Panel" , " TACAN Volume Control Knob" )
1066
+ definePotentiometer (" COM_AUX" , 40 , 3009 , 364 , {0 , 1 }, " Communication Panel" , " AUX Volume Control Knob" )
1067
+ define3PosTumb (" COM_COMM_RELAY_SW" , 40 , 3010 , 350 , " Communication Panel" , " Comm Relay Switch, CIPHER/OFF/PLAIN" )
1068
+ define3PosTumb (" COM_COMM_G_XMT_SW" , 40 , 3011 , 351 , " Communication Panel" , " COMM G XMT Switch, COMM 1/OFF/COMM 2" )
1069
+ defineToggleSwitch (" COM_IFF_MASTER_SW" , 40 , 3012 , 356 , " Communication Panel" , " IFF Master Switch, EMER/NORM" )
1070
+ define3PosTumb (" COM_IFF_MODE4_SW" , 40 , 3013 , 355 , " Communication Panel" , " IFF Mode 4 Switch, DIS/AUD /DIS/OFF" )
1071
+ defineRockerSwitch (" COM_CRYPTO_SW" , 40 , 3015 , 3015 , 3014 , 3014 , 354 , " Communication Panel" , " CRYPTO Switch, HOLD/NORM/ZERO" )
1072
+ defineToggleSwitch (" COM_ILS_UFC_MAN_SW" , 40 , 3016 , 353 , " Communication Panel" , " ILS UFC/MAN Switch, UFC/MAN" )
1073
+ defineTumb (" COM_ILS_CHANNEL_SW" , 40 , 3017 , 352 , 0.05 , {0.0 , 0.95 }, nil , false , " Communication Panel" , " ILS Channel Selector Switch" )
948
1074
949
1075
-- 8. LOX Indicator
950
1076
defineToggleSwitch (" OBOGS_SW" , 10 , 3001 , 365 , " LOX Indicator" , " OBOGS Control Switch, ON/OFF" )
@@ -961,8 +1087,8 @@ defineMissionComputerSwitch("MC_SW", 3, 3025, 3026, 368, "Mission Computer and H
961
1087
defineToggleSwitch (" HYD_ISOLATE_OVERRIDE_SW" , 4 , 3001 , 369 , " Mission Computer and Hydraulic Isolate Panel" , " Hydraulic Isolate Override Switch, NORM/ORIDE" )
962
1088
963
1089
-- 13. Antenna Select Panel
964
- define3PosTumb (" COMM1_ANT_SELECT_SW" , 51 , 3001 , 373 , " Antenna Select Panel" , " COMM 1 Antenna Selector Switch, UPPER/AUTO/LOWER" )
965
- define3PosTumb (" IFF_ANT_SELECT_SW" , 51 , 3002 , 374 , " Antenna Select Panel" , " IFF Antenna Selector Switch, UPPER/BOTH/LOWER" )
1090
+ define3PosTumb (" COMM1_ANT_SELECT_SW" , 50 , 3001 , 373 , " Antenna Select Panel" , " COMM 1 Antenna Selector Switch, UPPER/AUTO/LOWER" )
1091
+ define3PosTumb (" IFF_ANT_SELECT_SW" , 50 , 3002 , 374 , " Antenna Select Panel" , " IFF Antenna Selector Switch, UPPER/BOTH/LOWER" )
966
1092
967
1093
-- 14. Auxiliary Power Unit Panel
968
1094
defineToggleSwitchToggleOnly2 (" APU_CONTROL_SW" , 12 , 3001 , 375 , " Auxiliary Power Unit Panel" , " APU Control Switch, ON/OFF" )
@@ -974,7 +1100,7 @@ defineToggleSwitch("GEN_TIE_COVER", 3, 3007, 379, "Generator Tie Control Switch"
974
1100
defineToggleSwitch (" GEN_TIE_SW" , 3 , 3006 , 378 , " Generator Tie Control Switch" , " Generator TIE Control Switch, NORM/RESET" )
975
1101
976
1102
-- 16. ECM Dispenser Button
977
- definePushButton (" CMSD_DISPENSE_BTN" , 55 , 3002 , 380 , " ECM Dispenser Button" , " Dispense Button - Push to dispense flares and chaff" )
1103
+ definePushButton (" CMSD_DISPENSE_BTN" , 54 , 3002 , 380 , " ECM Dispenser Button" , " Dispense Button - Push to dispense flares and chaff" )
978
1104
979
1105
-- 17. Ground Power Decal
980
1106
@@ -1026,14 +1152,14 @@ defineToggleSwitch("LIGHTS_TEST_SW", 9, 3007, 416, "Interior Lights Panel", "Lig
1026
1152
define3PosTumb (" FLIR_SW" , 0 , 3110 , 439 , " Sensor Panel" , " FLIR Switch, ON/STBY/OFF" ) -- From TODO, will change
1027
1153
define3PosTumb (" LTD_R_SW" , 0 , 3111 , 441 , " Sensor Panel" , " LTD/R Switch, ARM/SAFE/AFT" ) -- From TODO, will change
1028
1154
defineToggleSwitch (" LST_NFLR_SW" , 0 , 3112 , 442 , " Sensor Panel" , " LST/NFLR Switch, ON/OFF" ) -- From TODO, will change
1029
- defineTumb (" RADAR_SW" , 43 , 3001 , 440 , 0.1 , {0.0 , 0.3 }, nil , false , " Sensor Panel" , " RADAR Switch (MW to pull), OFF/STBY/OPR/EMERG(PULL)" )
1030
- defineTumb (" INS_SW" , 45 , 3001 , 443 , 0.1 , {0.0 , 0.7 }, nil , false , " Sensor Panel" , " INS Switch, OFF/CV/GND/NAV/IFA/GYRO/GB/TEST" )
1155
+ defineTumb (" RADAR_SW" , 42 , 3001 , 440 , 0.1 , {0.0 , 0.3 }, nil , false , " Sensor Panel" , " RADAR Switch (MW to pull), OFF/STBY/OPR/EMERG(PULL)" )
1156
+ defineTumb (" INS_SW" , 44 , 3001 , 443 , 0.1 , {0.0 , 0.7 }, nil , false , " Sensor Panel" , " INS Switch, OFF/CV/GND/NAV/IFA/GYRO/GB/TEST" )
1031
1157
1032
1158
-- 6. KY-58 Control
1033
- defineTumb (" KY58_MODE_SELECT" , 42 , 3001 , 444 , 0.1 , {0.0 , 0.3 }, nil , false , " KY-58 Control" , " KY-58 Mode Select Knob, P/C/LD/RV" )
1034
- definePotentiometer (" KY58_VOLUME" , 42 , 3005 , 445 , {0 , 1 }, " KY-58 Control" , " KY-58 Volume Control Knob" )
1035
- defineTumb (" KY58_FILL_SELECT" , 42 , 3002 , 446 , 0.1 , {0.0 , 0.7 }, nil , false , " KY-58 Control" , " KY-58 Fill Select Knob, Z 1-5/1/2/3/4/5/6/Z ALL" )
1036
- defineTumb (" KY58_POWER_SELECT" , 42 , 3004 , 447 , 0.1 , {0.0 , 0.2 }, nil , false , " KY-58 Control" , " KY-58 Power Select Knob, OFF/ON/TD" )
1159
+ defineTumb (" KY58_MODE_SELECT" , 41 , 3001 , 444 , 0.1 , {0.0 , 0.3 }, nil , false , " KY-58 Control" , " KY-58 Mode Select Knob, P/C/LD/RV" )
1160
+ definePotentiometer (" KY58_VOLUME" , 41 , 3005 , 445 , {0 , 1 }, " KY-58 Control" , " KY-58 Volume Control Knob" )
1161
+ defineTumb (" KY58_FILL_SELECT" , 41 , 3002 , 446 , 0.1 , {0.0 , 0.7 }, nil , false , " KY-58 Control" , " KY-58 Fill Select Knob, Z 1-5/1/2/3/4/5/6/Z ALL" )
1162
+ defineTumb (" KY58_POWER_SELECT" , 41 , 3004 , 447 , 0.1 , {0.0 , 0.2 }, nil , false , " KY-58 Control" , " KY-58 Power Select Knob, OFF/ON/TD" )
1037
1163
1038
1164
-- 7. NVG Storage
1039
1165
0 commit comments