Skip to content

Commit

Permalink
Fix AH-64D wiper switch out of range (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Jan 2, 2024
1 parent 98ed2d3 commit bb947db
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 141 deletions.
5 changes: 0 additions & 5 deletions Scripts/DCS-BIOS/doc/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,6 @@
#define AH_64D_CPG_T_WHEEL_UNLOCK_BTN_AM 0x8704, 0x0400
#define AH_64D_CPG_T_WHEEL_UNLOCK_L 0x872C, 0x8000, 15
#define AH_64D_CPG_T_WHEEL_UNLOCK_L_AM 0x872C, 0x8000
#define AH_64D_CPG_WIPER_P_SW 0x874C, 0x2000, 13
#define AH_64D_CPG_WIPER_P_SW_AM 0x874C, 0x2000
#define AH_64D_CPG_WIPER_SW 0x8708, 0xC000, 14
#define AH_64D_EXT_FORMATION_LIGHTS 0x8740, 0xFFFF, 0
#define AH_64D_EXT_FORMATION_LIGHTS_A 0x8740
Expand Down Expand Up @@ -1104,8 +1102,6 @@
#define AH_64D_PLT_VIDEO_IHADSS_CON_A 0x86F8
#define AH_64D_PLT_VIDEO_SYM_BRT 0x86FA, 0xFFFF, 0
#define AH_64D_PLT_VIDEO_SYM_BRT_A 0x86FA
#define AH_64D_PLT_WIPER_P_SW 0x874C, 0x1000, 12
#define AH_64D_PLT_WIPER_P_SW_AM 0x874C, 0x1000
#define AH_64D_PLT_WIPER_SW 0x8708, 0x0060, 5
#define AH_64D_UHF_RADIO_A 0x8760
#define AH_64D_VHF_AM_RADIO_A 0x8768
Expand Down Expand Up @@ -21857,7 +21853,6 @@
#define Mi_24P_OP_CYCLIC_AP_TRIM 0x691E, 0x8000, 15
#define Mi_24P_OP_CYCLIC_AP_TRIM_AM 0x691E, 0x8000
#define Mi_24P_OP_DEICER_WSHIELD 0x68F2, 0x6000, 13
#define Mi_24P_OP_DISTR_CONTROL 0x6926, 0x0030, 4
#define Mi_24P_OP_DOOR_LOCK 0x6848, 0x0010, 4
#define Mi_24P_OP_DOOR_LOCK_AM 0x6848, 0x0010
#define Mi_24P_OP_DUAS_HEAT 0x6846, 0x0400, 10
Expand Down
70 changes: 4 additions & 66 deletions Scripts/DCS-BIOS/doc/doc_assets/AH-64D.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,37 +1005,6 @@ docdata["AH-64D"] =
} ],
"physical_variant": "toggle_switch"
},
"CPG_WIPER_P_SW": {
"category": "CPG Cockpit",
"control_type": "selector",
"description": "Gunner Wiper Control Switch, PARK",
"identifier": "CPG_WIPER_P_SW",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 1
}, {
"argument": "TOGGLE",
"description": "Toggle switch state",
"interface": "action"
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 34636,
"address_mask_identifier": "AH_64D_CPG_WIPER_P_SW_AM",
"address_mask_shift_identifier": "AH_64D_CPG_WIPER_P_SW",
"description": "selector position",
"mask": 8192,
"max_value": 1,
"shift_by": 13,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
},
"CPG_WIPER_SW": {
"category": "CPG Cockpit",
"control_type": "selector",
Expand All @@ -1047,15 +1016,15 @@ docdata["AH-64D"] =
}, {
"description": "set position",
"interface": "set_state",
"max_value": 2
"max_value": 3
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 34568,
"address_mask_shift_identifier": "AH_64D_CPG_WIPER_SW",
"description": "selector position",
"mask": 49152,
"max_value": 2,
"max_value": 3,
"shift_by": 14,
"suffix": "",
"type": "integer"
Expand Down Expand Up @@ -10191,37 +10160,6 @@ docdata["AH-64D"] =
} ],
"physical_variant": "toggle_switch"
},
"PLT_WIPER_P_SW": {
"category": "PLT Cockpit",
"control_type": "selector",
"description": "Pilot Wiper Control Switch, PARK",
"identifier": "PLT_WIPER_P_SW",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 1
}, {
"argument": "TOGGLE",
"description": "Toggle switch state",
"interface": "action"
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 34636,
"address_mask_identifier": "AH_64D_PLT_WIPER_P_SW_AM",
"address_mask_shift_identifier": "AH_64D_PLT_WIPER_P_SW",
"description": "selector position",
"mask": 4096,
"max_value": 1,
"shift_by": 12,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
},
"PLT_WIPER_SW": {
"category": "PLT Cockpit",
"control_type": "selector",
Expand All @@ -10233,15 +10171,15 @@ docdata["AH-64D"] =
}, {
"description": "set position",
"interface": "set_state",
"max_value": 2
"max_value": 3
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 34568,
"address_mask_shift_identifier": "AH_64D_PLT_WIPER_SW",
"description": "selector position",
"mask": 96,
"max_value": 2,
"max_value": 3,
"shift_by": 5,
"suffix": "",
"type": "integer"
Expand Down
Loading

0 comments on commit bb947db

Please sign in to comment.