dcs-bios-api-mazeppa
Version:
DCS BIOS export parser that returns JSON data
470 lines (469 loc) • 713 kB
JSON
{
"AHRS": {
"AHRS_ERECT": {
"api_variant": "momentary_last_position",
"category": "AHRS",
"control_type": "selector",
"description": "Fast Erect Button - Push to erect",
"identifier": "AHRS_ERECT",
"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": 30298,
"description": "selector position",
"mask": 32768,
"max_value": 1,
"shift_by": 15,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "push_button"
},
"AHRS_FAST_SLAVE": {
"category": "AHRS",
"control_type": "selector",
"description": "Compass Switch, DIR GYRO/MAG/FAST SLAVE",
"identifier": "AHRS_FAST_SLAVE",
"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": 30302,
"description": "selector position",
"mask": 3,
"max_value": 2,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"AHRS_NAV_MODE": {
"category": "AHRS",
"control_type": "selector",
"description": "Nav Mode Selector Switch, DF/TACAN",
"identifier": "AHRS_NAV_MODE",
"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": 30302,
"description": "selector position",
"mask": 4,
"max_value": 1,
"shift_by": 2,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
}
},
"AN ALR87": {
"RWR_INT": {
"category": "AN ALR87",
"control_type": "limited_dial",
"description": "RWR INT Knob",
"identifier": "RWR_INT",
"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": 30340,
"description": "position of the potentiometer",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
}
},
"Accelerometer": {
"ACC": {
"api_variant": "momentary_last_position",
"category": "Accelerometer",
"control_type": "selector",
"description": "Accelerometer - Push to set",
"identifier": "ACC",
"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": 30348,
"description": "selector position",
"mask": 128,
"max_value": 1,
"shift_by": 7,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "push_button"
}
},
"AirSpeed Indicator": {
"IAS_SET": {
"category": "AirSpeed Indicator",
"control_type": "limited_dial",
"description": "Index Setting Pointer Knob",
"identifier": "IAS_SET",
"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": 30370,
"description": "position of the potentiometer",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
}
},
"Altimeter": {
"ALT_ELECT": {
"category": "Altimeter",
"control_type": "selector",
"description": "Altimeter Mode Control Lever, ELECT(rical)/PNEU(matic)",
"identifier": "ALT_ELECT",
"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": 30348,
"description": "selector position",
"mask": 256,
"max_value": 1,
"shift_by": 8,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
},
"ALT_ZERO": {
"api_variant": "multiturn",
"category": "Altimeter",
"control_type": "analog_dial",
"description": "Altimeter Zero Setting Knob",
"identifier": "ALT_ZERO",
"inputs": [ {
"description": "turn the dial left or right",
"interface": "variable_step",
"max_value": 65535,
"suggested_step": 3200
} ],
"outputs": [ {
"address": 30380,
"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"
} ]
}
},
"Attitude Indicator": {
"AI_PITCH_TRIM": {
"category": "Attitude Indicator",
"control_type": "limited_dial",
"description": "Attitude Indicator Pitch Trim Knob",
"identifier": "AI_PITCH_TRIM",
"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": 30400,
"description": "position of the potentiometer",
"mask": 65535,
"max_value": 65535,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
}
},
"CMDS": {
"CHAFF_COUNT": {
"api_variant": "momentary_last_position",
"category": "CMDS",
"control_type": "selector",
"description": "Chaff Counter Reset Button - Push to reset",
"identifier": "CHAFF_COUNT",
"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": 30288,
"description": "selector position",
"mask": 16,
"max_value": 1,
"shift_by": 4,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "push_button"
},
"CHAFF_MODE": {
"category": "CMDS",
"control_type": "selector",
"description": "Chaff Mode Selector, OFF/SINGLE/PRGM/MULT",
"identifier": "CHAFF_MODE",
"inputs": [ {
"description": "switch to previous or next state",
"interface": "fixed_step"
}, {
"description": "set position",
"interface": "set_state",
"max_value": 3
} ],
"momentary_positions": "none",
"outputs": [ {
"address": 30266,
"description": "selector position",
"mask": 49152,
"max_value": 3,
"shift_by": 14,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"FLARE_MODE_SEL": {
"category": "CMDS",
"control_type": "selector",
"description": "Flare Mode Selector, OFF/SINGLE/PRGM",
"identifier": "FLARE_MODE_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": 30288,
"description": "selector position",
"mask": 3,
"max_value": 2,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "limited_rotary"
},
"FL_CHAFF_BT": {
"api_variant": "momentary_last_position",
"category": "CMDS",
"control_type": "selector",
"description": "Flare-Chaff Button - Push to dispense",
"identifier": "FL_CHAFF_BT",
"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": 30288,
"description": "selector position",
"mask": 64,
"max_value": 1,
"shift_by": 6,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "push_button"
},
"FL_COUNT": {
"api_variant": "momentary_last_position",
"category": "CMDS",
"control_type": "selector",
"description": "Flare Counter Reset Button - Push to reset",
"identifier": "FL_COUNT",
"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": 30288,
"description": "selector position",
"mask": 32,
"max_value": 1,
"shift_by": 5,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "push_button"
},
"FL_JETT_COVER": {
"category": "CMDS",
"control_type": "selector",
"description": "Flare Jettison Switch Cover, OPEN/CLOSED",
"identifier": "FL_JETT_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": 30288,
"description": "selector position",
"mask": 4,
"max_value": 1,
"shift_by": 2,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
},
"FL_JETT_SW": {
"category": "CMDS",
"control_type": "selector",
"description": "Flare Jettison Switch, OFF/UP",
"identifier": "FL_JETT_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": 30288,
"description": "selector position",
"mask": 8,
"max_value": 1,
"shift_by": 3,
"suffix": "",
"type": "integer"
} ],
"physical_variant": "toggle_switch"
}
},
"Camera": {
"CAMERA_FPS": {
"category": "Camera",
"control_type": "selector",
"description": "Sight Camera FPS Select Switch, 24/48",
"identifier": "CAMERA_FPS",
"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",