dcs-bios-api-mazeppa
Version:
DCS BIOS export parser that returns JSON data
576 lines (575 loc) • 217 kB
JSON
{
"Cockpit": {
"ALT_MBAR": {
"api_variant": "multiturn",
"category": "Cockpit",
"control_type": "analog_dial",
"description": "Altimeter Pressure Set",
"identifier": "ALT_MBAR",
"inputs": [ {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 21506,
"description": "the rotation of the knob in the cockpit (not the value that is controlled by this knob!)",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "_KNOB_POS",
"type": "integer"
} ]
},
"CLK_PINION": {
"api_variant": "multiturn",
"category": "Cockpit",
"control_type": "analog_dial",
"description": "Winding/Adjustment Clock",
"identifier": "CLK_PINION",
"inputs": [ {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 21510,
"description": "the rotation of the knob in the cockpit (not the value that is controlled by this knob!)",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "_KNOB_POS",
"type": "integer"
} ]
},
"CLK_PINION_PULL": {
"category": "Cockpit",
"control_type": "selector",
"description": "Winding/Adjustment Clock Pull out.",
"identifier": "CLK_PINION_PULL",
"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": 21504,
"description": "selector position",
"mask": 1024,
"max_value": 1,
"shift_by": 10,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"COMPASS_RING": {
"category": "Cockpit",
"control_type": "discrete_dial",
"description": "Compass Course Setter Ring",
"identifier": "COMPASS_RING",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 21516,
"description": "selector position",
"mask": 4088,
"max_value": 300,
"shift_by": 3,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "infinite_rotary"
},
"DEICER": {
"category": "Cockpit",
"control_type": "selector",
"description": "Windscreen De-Icer On/Off",
"identifier": "DEICER",
"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": 21532,
"description": "selector position",
"mask": 32,
"max_value": 1,
"shift_by": 5,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"DI": {
"api_variant": "multiturn",
"category": "Cockpit",
"control_type": "analog_dial",
"description": "Directional Gyro Adjust",
"identifier": "DI",
"inputs": [ {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 21508,
"description": "the rotation of the knob in the cockpit (not the value that is controlled by this knob!)",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "_KNOB_POS",
"type": "integer"
} ]
},
"FLAPS": {
"category": "Cockpit",
"control_type": "selector",
"description": "Landing Flaps Up/Down",
"identifier": "FLAPS",
"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": 21504,
"description": "selector position",
"mask": 256,
"max_value": 1,
"shift_by": 8,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"FUEL_GAUGE": {
"category": "Cockpit",
"control_type": "selector",
"description": "Show Fuel Contents",
"identifier": "FUEL_GAUGE",
"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": 21504,
"description": "selector position",
"mask": 64,
"max_value": 1,
"shift_by": 6,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"HATCH": {
"category": "Cockpit",
"control_type": "selector",
"description": "Canopy Open/Close",
"identifier": "HATCH",
"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": 21534,
"description": "selector position",
"mask": 64,
"max_value": 1,
"shift_by": 6,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"HATCH_JETTISON": {
"category": "Cockpit",
"control_type": "selector",
"description": "Jettison Canopy",
"identifier": "HATCH_JETTISON",
"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": 21534,
"description": "selector position",
"mask": 128,
"max_value": 1,
"shift_by": 7,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"OXY_VALVE": {
"category": "Cockpit",
"control_type": "selector",
"description": "Oxygen Valve",
"identifier": "OXY_VALVE",
"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": 21504,
"description": "selector position",
"mask": 1,
"max_value": 1,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"SIDE_DOOR": {
"category": "Cockpit",
"control_type": "selector",
"description": "Side Door Open/Close",
"identifier": "SIDE_DOOR",
"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": 21534,
"description": "selector position",
"mask": 256,
"max_value": 1,
"shift_by": 8,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"UC_BLIND": {
"category": "Cockpit",
"control_type": "selector",
"description": "U/C Indicator Blind Up/Down",
"identifier": "UC_BLIND",
"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": 21504,
"description": "selector position",
"mask": 512,
"max_value": 1,
"shift_by": 9,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
}
},
"Controls": {
"RTRIM_WHEEL": {
"category": "Controls",
"control_type": "limited_dial",
"description": "Rudder Trim",
"identifier": "RTRIM_WHEEL",
"inputs": [ {
"description": "set the position of the dial",
"interface": "set_state",
"max_value": 65535
}, {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 21526,
"description": "position of the potentiometer",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"TRIM_WHEEL": {
"category": "Controls",
"control_type": "limited_dial",
"description": "Elevator Trim",
"identifier": "TRIM_WHEEL",
"inputs": [ {
"description": "set the position of the dial",
"interface": "set_state",
"max_value": 65535
}, {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 21524,
"description": "position of the potentiometer",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
}
},
"Engine": {
"BLOWER": {
"category": "Engine",
"control_type": "selector",
"description": "Supercharger Mode Auto/M.S.",
"identifier": "BLOWER",
"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": 21504,
"description": "selector position",
"mask": 8192,
"max_value": 1,
"shift_by": 13,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"BOOSTER": {
"category": "Engine",
"control_type": "selector",
"description": "Booster Coil",
"identifier": "BOOSTER",
"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": 21516,
"description": "selector position",
"mask": 2,
"max_value": 1,
"shift_by": 1,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"BOOSTER_COVER": {
"category": "Engine",
"control_type": "selector",
"description": "Booster Coil Button Cover",
"identifier": "BOOSTER_COVER",
"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": 21516,
"description": "selector position",
"mask": 1,
"max_value": 1,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"CARB_AIR": {
"category": "Engine",
"control_type": "selector",
"description": "Carburettor Air Control",
"identifier": "CARB_AIR",
"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": 21528,
"description": "selector position",
"mask": 16384,
"max_value": 1,
"shift_by": 14,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"DILUTER": {
"category": "Engine",
"control_type": "selector",
"description": "Oil Dilution",
"identifier": "DILUTER",
"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": 21532,
"description": "selector position",
"mask": 1,
"max_value": 1,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"DILUTER_COVER": {
"category": "Engine",
"control_type": "selector",
"description": "Oil Dilution Button Cover",
"identifier": "DILUTER_COVER",
"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": 21528,
"description": "selector position",
"mask": 32768,
"max_value": 1,
"shift_by": 15,
"suffix": "",
"type": "integer"