Skip to content

Commit

Permalink
Fix #484 Gazelle VCB_POWER and missile cover (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Jan 2, 2024
1 parent bb947db commit e57fdb4
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 18 deletions.
6 changes: 4 additions & 2 deletions Scripts/DCS-BIOS/doc/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -28222,8 +28222,8 @@
#define SA342_LANDING_LIGHT_EXTEND_AM 0x581A, 0x0800
#define SA342_LANDING_LIGHT_RETRACT 0x581A, 0x1000, 12
#define SA342_LANDING_LIGHT_RETRACT_AM 0x581A, 0x1000
#define SA342_LASER_POWER 0x582E, 0x0004, 2
#define SA342_LASER_POWER_AM 0x582E, 0x0004
#define SA342_LASER_POWER 0x5920, 0x0400, 10
#define SA342_LASER_POWER_AM 0x5920, 0x0400
#define SA342_LASING_BUTTON 0x582C, 0x0001, 0
#define SA342_LASING_BUTTON_AM 0x582C, 0x0001
#define SA342_LASING_BUTTON_COVER 0x581A, 0x8000, 15
Expand Down Expand Up @@ -28499,6 +28499,8 @@
#define SA342_UV_LIGHTING_A 0x5824
#define SA342_VARIOMETER_VVI 0x58E0, 0xFFFF, 0
#define SA342_VARIOMETER_VVI_A 0x58E0
#define SA342_VCB_POWER 0x582E, 0x0004, 2
#define SA342_VCB_POWER_AM 0x582E, 0x0004
#define SA342_VHF_AM_RADIO_VOLUME_1 0x5804, 0xFFFF, 0
#define SA342_VHF_AM_RADIO_VOLUME_1_A 0x5804
#define SA342_VHF_AM_RADIO_VOLUME_2 0x580A, 0xFFFF, 0
Expand Down
45 changes: 38 additions & 7 deletions Scripts/DCS-BIOS/doc/doc_assets/SA342.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -6090,7 +6090,7 @@ docdata["SA342"] =
"LASER_POWER": {
"category": "PE",
"control_type": "selector",
"description": "Laser Power",
"description": "Deprecated - use VCB_POWER instead",
"identifier": "LASER_POWER",
"inputs": [ {
"description": "switch to previous or next state",
Expand All @@ -6106,13 +6106,13 @@ docdata["SA342"] =
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 22574,
"address": 22816,
"address_mask_identifier": "SA342_LASER_POWER_AM",
"address_mask_shift_identifier": "SA342_LASER_POWER",
"description": "selector position",
"mask": 4,
"mask": 1024,
"max_value": 1,
"shift_by": 2,
"shift_by": 10,
"suffix": "",
"type": "integer"
} ],
Expand Down Expand Up @@ -6215,19 +6215,19 @@ docdata["SA342"] =
},
"MISSILE_LAUNCH_COVER": {
"category": "PE",
"control_type": "selector",
"control_type": "action",
"description": "Missile Launch Cover",
"identifier": "MISSILE_LAUNCH_COVER",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"description": "set the switch position -- 0 = off, 1 = on",
"interface": "set_state",
"max_value": 1
}, {
"argument": "TOGGLE",
"description": "Toggle switch state",
"description": "toggle switch state",
"interface": "action"
} ],
"momentary_positions": "none",
Expand Down Expand Up @@ -6306,6 +6306,37 @@ docdata["SA342"] =
"type": "integer"
} ],
"physical_variant": "push_button"
},
"VCB_POWER": {
"category": "PE",
"control_type": "selector",
"description": "VCB Power Selector",
"identifier": "VCB_POWER",
"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": 22574,
"address_mask_identifier": "SA342_VCB_POWER_AM",
"address_mask_shift_identifier": "SA342_VCB_POWER",
"description": "selector position",
"mask": 4,
"max_value": 1,
"shift_by": 2,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
}
},
"RWR": {
Expand Down
45 changes: 38 additions & 7 deletions Scripts/DCS-BIOS/doc/json/SA342.json
Original file line number Diff line number Diff line change
Expand Up @@ -6089,7 +6089,7 @@
"LASER_POWER": {
"category": "PE",
"control_type": "selector",
"description": "Laser Power",
"description": "Deprecated - use VCB_POWER instead",
"identifier": "LASER_POWER",
"inputs": [ {
"description": "switch to previous or next state",
Expand All @@ -6105,13 +6105,13 @@
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 22574,
"address": 22816,
"address_mask_identifier": "SA342_LASER_POWER_AM",
"address_mask_shift_identifier": "SA342_LASER_POWER",
"description": "selector position",
"mask": 4,
"mask": 1024,
"max_value": 1,
"shift_by": 2,
"shift_by": 10,
"suffix": "",
"type": "integer"
} ],
Expand Down Expand Up @@ -6214,19 +6214,19 @@
},
"MISSILE_LAUNCH_COVER": {
"category": "PE",
"control_type": "selector",
"control_type": "action",
"description": "Missile Launch Cover",
"identifier": "MISSILE_LAUNCH_COVER",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"description": "set the switch position -- 0 = off, 1 = on",
"interface": "set_state",
"max_value": 1
}, {
"argument": "TOGGLE",
"description": "Toggle switch state",
"description": "toggle switch state",
"interface": "action"
} ],
"momentary_positions": "none",
Expand Down Expand Up @@ -6305,6 +6305,37 @@
"type": "integer"
} ],
"physical_variant": "push_button"
},
"VCB_POWER": {
"category": "PE",
"control_type": "selector",
"description": "VCB Power Selector",
"identifier": "VCB_POWER",
"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": 22574,
"address_mask_identifier": "SA342_VCB_POWER_AM",
"address_mask_shift_identifier": "SA342_VCB_POWER",
"description": "selector position",
"mask": 4,
"max_value": 1,
"shift_by": 2,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
}
},
"RWR": {
Expand Down
Loading

0 comments on commit e57fdb4

Please sign in to comment.