Skip to content

Commit

Permalink
Mi-24P OP_DISTR_CONTROL removed (#508)
Browse files Browse the repository at this point in the history
* Mi-24P OP_DISTR_CONTROL removed

Was already marked argument doubled

* Address reservation added where control was deleted

Addresses and masks now are back to what they were.
  • Loading branch information
jdahlblom authored Jan 1, 2024
1 parent 40005f3 commit 9ce4891
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 54 deletions.
26 changes: 0 additions & 26 deletions Scripts/DCS-BIOS/doc/doc_assets/Mi-24P.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -22729,32 +22729,6 @@ docdata["Mi-24P"] =
} ],
"physical_variant": "push_button"
},
"OP_DISTR_CONTROL": {
"category": "Weapon Systems",
"control_type": "selector",
"description": "OPERATOR CHECK1-WORK-CHECK2",
"identifier": "OP_DISTR_CONTROL",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 2
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 26918,
"address_mask_shift_identifier": "Mi_24P_OP_DISTR_CONTROL",
"description": "selector position",
"mask": 48,
"max_value": 2,
"shift_by": 4,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "3_position_switch"
},
"OP_EMERG_JETT": {
"api_variant": "momentary_last_position",
"category": "Weapon Systems",
Expand Down
26 changes: 0 additions & 26 deletions Scripts/DCS-BIOS/doc/json/Mi-24P.json
Original file line number Diff line number Diff line change
Expand Up @@ -22728,32 +22728,6 @@
} ],
"physical_variant": "push_button"
},
"OP_DISTR_CONTROL": {
"category": "Weapon Systems",
"control_type": "selector",
"description": "OPERATOR CHECK1-WORK-CHECK2",
"identifier": "OP_DISTR_CONTROL",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 2
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 26918,
"address_mask_shift_identifier": "Mi_24P_OP_DISTR_CONTROL",
"description": "selector position",
"mask": 48,
"max_value": 2,
"shift_by": 4,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "3_position_switch"
},
"OP_EMERG_JETT": {
"api_variant": "momentary_last_position",
"category": "Weapon Systems",
Expand Down
4 changes: 2 additions & 2 deletions Scripts/DCS-BIOS/lib/modules/aircraft_modules/Mi-24P.lua
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ Mi_24P:define3PosTumb("OP_BURST_LENGTH", 6, 3026, 770, "Weapon Systems", "OPERAT
Mi_24P:defineToggleSwitch("OP_CAN_RATE", 6, 3037, 772, "Weapon Systems", "OPERATOR Cannon Fire Rate SLOW/FAST")
Mi_24P:defineToggleSwitch("OP_MISSL_PW", 6, 3028, 773, "Weapon Systems", "OPERATOR Missiles Power")
Mi_24P:definePushButton("OP_JETT_TEST", 6, 3031, 768, "Weapon Systems", "OPERATOR Release Check PU")
Mi_24P:define3PosTumb("OP_DISTR_CONTROL", 6, 3029, 762, "Weapon Systems", "OPERATOR CHECK1-WORK-CHECK2") --Arg doubled
Mi_24P:reserveIntValue(2)
Mi_24P:definePushButton("OP_CAN_RELOAD", 6, 3039, 769, "Weapon Systems", "OPERATOR Reload Cannon")
Mi_24P:defineToggleSwitch("OP_SCHO_PW", 6, 3030, 955, "Weapon Systems", "OPERATOR SCHO Power")
Mi_24P:definePushButton("OP_SCHO_L_CHECK", 6, 3035, 956, "Weapon Systems", "OPERATOR SCHO Lamps Check")
Expand Down Expand Up @@ -670,7 +670,7 @@ Mi_24P:defineToggleSwitch("PLT_ASP17_CROSSHAIR_LAMP", 16, 3013, 568, "ASP17", "P
Mi_24P:defineToggleSwitch("PLT_ASP17_GRID_LAMP", 16, 3012, 569, "ASP17", "PILOT ASP17 Sight Grid Lamp, MAIN/BACKUP")
Mi_24P:definePushButton("PLT_ASP17_CONTROL", 16, 3009, 570, "ASP17", "PILOT ASP17 Sight Check")
Mi_24P:defineToggleSwitch("OP_USR_PW", 16, 3015, 761, "ASP17", "OPERATOR USR power")
Mi_24P:defineToggleSwitch("OP_USR_CHECK", 16, 3016, 762, "ASP17", "OPERATOR USR check") -- Arg doubled
Mi_24P:defineToggleSwitch("OP_USR_CHECK", 16, 3016, 762, "ASP17", "OPERATOR USR check")
Mi_24P:defineToggleSwitch("PLT_ASP17_REFLECTOR_FIX", 16, 3045, 1005, "ASP17", "PILOT ASP17 Sight Reflector Control Fix")
Mi_24P:defineRotary("PLT_ASP17_REFLECTOR_MOVE", 16, 3046, 1006, "ASP17", "PILOT ASP17 Sight Reflector Control Move")

Expand Down

0 comments on commit 9ce4891

Please sign in to comment.