dcs-bios-api-mazeppa
Version:
DCS BIOS export parser that returns JSON data
467 lines (466 loc) • 888 kB
JSON
{
"ADF": {
"ADF_BAND": {
"category": "ADF",
"control_type": "selector",
"description": "ADF Band",
"identifier": "ADF_BAND",
"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": 5372,
"description": "selector position",
"mask": 3,
"max_value": 2,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"ADF_BFO_SW": {
"category": "ADF",
"control_type": "selector",
"description": "BFO Switch",
"identifier": "ADF_BFO_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": 5356,
"description": "selector position",
"mask": 4096,
"max_value": 1,
"shift_by": 12,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
},
"ADF_FREQ": {
"category": "ADF",
"control_type": "analog_gauge",
"description": "ADF Frequency",
"identifier": "ADF_FREQ",
"inputs": [ ],
"outputs": [ {
"address": 5158,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"ADF_GAIN": {
"category": "ADF",
"control_type": "limited_dial",
"description": "ADF Gain",
"identifier": "ADF_GAIN",
"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": 5370,
"description": "position of the potentiometer",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"ADF_LOOP_LR": {
"category": "ADF",
"control_type": "selector",
"description": "ADF LOOP Left Low Speed / Left High Speed /Center / Right Low Speed / Right High Speed",
"identifier": "ADF_LOOP_LR",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 4
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 5356,
"description": "selector position",
"mask": 3584,
"max_value": 4,
"shift_by": 9,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"ADF_MODE": {
"category": "ADF",
"control_type": "selector",
"description": "ADF Mode OFF / ADF / ANT / LOOP",
"identifier": "ADF_MODE",
"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": 5356,
"description": "selector position",
"mask": 24576,
"max_value": 2,
"shift_by": 13,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
},
"ADF_SIGNAL": {
"category": "ADF",
"control_type": "analog_gauge",
"description": "ADF Signal Level",
"identifier": "ADF_SIGNAL",
"inputs": [ ],
"outputs": [ {
"address": 5160,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"ADF_TUNE": {
"api_variant": "multiturn",
"category": "ADF",
"control_type": "analog_dial",
"description": "ADF Tune",
"identifier": "ADF_TUNE",
"inputs": [ {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 5374,
"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"
} ]
}
},
"Altimeter (Operator)": {
"OALT_100": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "100 Foot Counter",
"identifier": "OALT_100",
"inputs": [ ],
"outputs": [ {
"address": 5186,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_1000": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "1000 Foot Counter",
"identifier": "OALT_1000",
"inputs": [ ],
"outputs": [ {
"address": 5184,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_10000": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "10000 Foot Counter",
"identifier": "OALT_10000",
"inputs": [ ],
"outputs": [ {
"address": 5182,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_CODE_OFF_FLAG": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "Code Off Flag",
"identifier": "OALT_CODE_OFF_FLAG",
"inputs": [ ],
"outputs": [ {
"address": 5194,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_PRESS0": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "Pressure Drum Counter 0",
"identifier": "OALT_PRESS0",
"inputs": [ ],
"outputs": [ {
"address": 5192,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_PRESS1": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "Pressure Drum Counter 1",
"identifier": "OALT_PRESS1",
"inputs": [ ],
"outputs": [ {
"address": 5190,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_PRESS2": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "Pressure Drum Counter 2",
"identifier": "OALT_PRESS2",
"inputs": [ ],
"outputs": [ {
"address": 5188,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"OALT_PTR": {
"category": "Altimeter (Operator)",
"control_type": "analog_gauge",
"description": "Altimeter Pointer",
"identifier": "OALT_PTR",
"inputs": [ ],
"outputs": [ {
"address": 5180,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
}
},
"Altimeter (Pilot)": {
"PALT_100": {
"category": "Altimeter (Pilot)",
"control_type": "analog_gauge",
"description": "100 Foot Counter",
"identifier": "PALT_100",
"inputs": [ ],
"outputs": [ {
"address": 5200,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"PALT_1000": {
"category": "Altimeter (Pilot)",
"control_type": "analog_gauge",
"description": "1000 Foot Counter",
"identifier": "PALT_1000",
"inputs": [ ],
"outputs": [ {
"address": 5198,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"PALT_10000": {
"category": "Altimeter (Pilot)",
"control_type": "analog_gauge",
"description": "10000 Foot Counter",
"identifier": "PALT_10000",
"inputs": [ ],
"outputs": [ {
"address": 5196,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"PALT_PRESS": {
"category": "Altimeter (Pilot)",
"control_type": "analog_gauge",
"description": "Pressure Indicator",
"identifier": "PALT_PRESS",
"inputs": [ ],
"outputs": [ {
"address": 5202,
"description": "gauge position",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
}
},
"Armament Panel": {
"ARMED_IND": {
"category": "Armament Panel",
"control_type": "led",
"description": "ARMED Indicator",
"identifier": "ARMED_IND",
"inputs": [ ],
"outputs": [ {
"address": 5142,
"description": "0 if light is off, 1 if light is on",
"mask": 16,
"max_value": 1,
"shift_by": 4,
"suffix": "",
"type": "integer"
} ]
},
"GUN_SEL": {
"category": "Armament Panel",
"control_type": "selector",
"description": "Gun Selector LEFT / BOTH / RIGHT",
"identifier": "GUN_SEL",
"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": 5388,
"description": "selector position",
"mask": 192,
"max_value": 2,
"shift_by": 6,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"JTSN_BTN": {
"api_variant": "momentary_last_position",
"category": "Armament Panel",
"control_type": "selector",
"description": "Jettison Switch",
"identifier": "JTSN_BTN",
"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": 5396,
"description": "selector position",
"mask": 1,
"max_value": 1,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "push_button"
},
"JTSN_COVER": {
"category": "Armament Panel",
"control_type": "selector",
"description": "Jettison Switch Cover",
"identifier": "JTSN_COVER",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 2