Skip to content

Commit

Permalink
Helicopters: Fix EXT_ROTOR out of range (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Jul 7, 2024
1 parent 2479c00 commit 1b3e5c3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/AH-64D.lua
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ AH_64D:defineFloatFromDrawArgument("EXT_WIPER_CPG", 14, "External Aircraft Model
AH_64D:defineBitFromDrawArgument("EXT_WOW_TAIL", 1, "External Aircraft Model", "Weight ON Wheels Tail Gear")
AH_64D:defineBitFromDrawArgument("EXT_WOW_RIGHT", 4, "External Aircraft Model", "Weight ON Wheels Right Gear")
AH_64D:defineBitFromDrawArgument("EXT_WOW_LEFT", 6, "External Aircraft Model", "Weight ON Wheels Left Gear")
AH_64D:defineFloatFromDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")
AH_64D:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")

AH_64D:defineToggleSwitch("PLT_L_SUNVISOR", 9, 3017, 849, "PLT Cockpit", "Pilot Left Sunvisor")
AH_64D:defineToggleSwitch("PLT_R_SUNVISOR", 9, 3018, 850, "PLT Cockpit", "Pilot Right Sunvisor")
Expand Down
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/AH-6J.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ AH_6J:defineFloat("DRUM_ALT_ADJ_MB4", 116, { 0, 1 }, "Gauges", "Altimeter MB Dru
--Externals
AH_6J:defineBitFromDrawArgument("EXT_POSITION_LIGHTS", 190, "External Aircraft Model", "Position Lights (red,Green)")
AH_6J:defineBitFromDrawArgument("EXT_LAND_LIGHT", 208, "External Aircraft Model", "Landing Light (white)")
AH_6J:defineFloatFromDrawArgument("EXT_ROTOR", 37, "External Aircraft Model", "Rotor Move")
AH_6J:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTOR", 37, "External Aircraft Model", "Rotor Move")

return AH_6J
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/Ka-50.lua
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ Ka_50:defineIndicatorLight("PLAFOND_LAMP", 1000, "Lighting Control Panel", "Plaf
Ka_50:defineToggleSwitch("LIGHT_CPT_INT", 51, 3009, 1001, "Lighting Control Panel", "Lighting cockpit interior Lamp Switch")
Ka_50:defineToggleSwitch("REDU_GEAR_OIL_PRESS", 4, 3024, 258, "Right Panel", "Reducing Gear box oil pressure indication selector") ---action=3024, stop_action=3025
Ka_50:defineToggleSwitch("SLING_AUT_MAN", 41, 3004, 259, "Right Panel", "Sling load Auto/Manual")
Ka_50:defineFloatFromDrawArgument("EXT_ROTORS", 40, "External Aircraft Model", "Rotors Move")
Ka_50:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTORS", 40, "External Aircraft Model", "Rotors Move")

Ka_50:defineFloat("DOOR_POS_L", 533, { 0, 1 }, "Cockpit", "Door Position Left")
Ka_50:defineFloat("DOOR_POS_T", 535, { 0, 1 }, "Cockpit", "Door Position Top")
Expand Down
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/Mi-24P.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ Mi_24P:defineToggleSwitch("OP_PKI_LOCK", 17, 3006, 15, "PKI", "OPERATOR PKI Lock

Mi_24P:defineFloat("OP_AIM_REF_MARKER", 1028, { 0, 1 }, "Gauges OP", "OPERATOR Aiming Reference Marker")

Mi_24P:defineFloatFromDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")
Mi_24P:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")

--R60 control
Mi_24P:defineToggleSwitch("PLT_R60_PW", 73, 3001, 1033, "R60", "PILOT R60 Power")
Expand Down
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/Mi-8MT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ Mi_8MT:defineBitFromDrawArgument("EXT_STROBE", 193, "External Aircraft Model", "
Mi_8MT:defineBitFromDrawArgument("EXT_WOW_NOSE", 1, "External Aircraft Model", "Weight ON Wheels Nose Gear")
Mi_8MT:defineBitFromDrawArgument("EXT_WOW_RIGHT", 4, "External Aircraft Model", "Weight ON Wheels Right Gear")
Mi_8MT:defineBitFromDrawArgument("EXT_WOW_LEFT", 6, "External Aircraft Model", "Weight ON Wheels Left Gear")
Mi_8MT:defineFloatFromDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")
Mi_8MT:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")

Mi_8MT:defineIndicatorLight("LMP_BOMB_SIGHT_L_CRS", 47, "Lamps", " Bomb Sight Course Left Light (red)")
Mi_8MT:defineIndicatorLight("LMP_BOMB_SIGHT_R_CRS", 48, "Lamps", " Bomb Sight Course Right Light (red) (red)")
Expand Down
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/SA342.lua
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ SA342:defineIndicatorLight("HOT3_NUIT_LAMP", 193, "Indicator Lights", "HOT3 Pane
SA342:defineBitFromDrawArgument("EXT_POSITION_LIGHT_LEFT", 190, "External Aircraft Model", "Left Position Light (red)")
SA342:defineBitFromDrawArgument("EXT_POSITION_LIGHT_RIGHT", 191, "External Aircraft Model", "Right Position Light (green)")
SA342:defineBitFromDrawArgument("EXT_STROBE", 193, "External Aircraft Model", "Strobe Light")
SA342:defineFloatFromDrawArgument("EXT_ROTOR", 37, "External Aircraft Model", "Rotor Move")
SA342:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTOR", 37, "External Aircraft Model", "Rotor Move")

SA342:definePushButton("VHF_AM_RADIO_VOL_1_P", SYNC_DEVICE_ID, 3241, 452, "Intercom", "VHF AM Radio Volume 1 (Push)")
SA342:definePushButton("FM_RADIO_VOL_1_P", SYNC_DEVICE_ID, 3242, 453, "Intercom", "FM Radio Volume 1 (Push)")
Expand Down
2 changes: 1 addition & 1 deletion Scripts/DCS-BIOS/lib/modules/aircraft_modules/UH-1H.lua
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ UH_1H:defineToggleSwitch("CARGO_REL_SAFE", 52, 3003, 228, "Overhead Panel", "Car
UH_1H:defineFloat("DOOR_POS_L", 420, { 0, 1 }, "Cockpit", "Door Position Left")
UH_1H:defineFloat("DOOR_POS_R", 422, { 0, 1 }, "Cockpit", "Door Position Right")

UH_1H:defineFloatFromDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")
UH_1H:defineFullRangeFloatFromExternalDrawArgument("EXT_ROTOR", 40, "External Aircraft Model", "Rotor Move")
UH_1H:defineBitFromDrawArgument("EXT_LAND_LIGHT_F", 208, "External Aircraft Model", "Landing Light Front (white)")
UH_1H:defineBitFromDrawArgument("EXT_LAND_LIGHT_M", 209, "External Aircraft Model", "Landing Light Mid (white)")
UH_1H:defineBitFromDrawArgument("EXT_LIGHT_TAIL", 192, "External Aircraft Model", "Tail Light (white)")
Expand Down

0 comments on commit 1b3e5c3

Please sign in to comment.