X-Touch-Mini-FS2020
X-Touch-Mini-FS2020 copied to clipboard
PMDG DC6 Config
Is not finish, but i share a sample config for PMDG DC6 plane
config.json
"aircraft": [
....
{
"aircraft_contains": "PMDG DC-6",
"file": "config_dc6.json"
}
],
....
events.user.txt
....
DC6_AP_BTN#43401 (>K:ROTOR_BRAKE)
DC6_AP_HANDLE_BTN#40401 (>K:ROTOR_BRAKE)
DC6_AP_PITCH_UP#440 100 * 8 + (>K:ROTOR_BRAKE)
DC6_AP_PITCH_DOWN#440 100 * 7 + (>K:ROTOR_BRAKE)
DC6_AP_TURN_KNOB_LEFT#442 100 * 8 + (>K:ROTOR_BRAKE)
DC6_AP_TURN_KNOB_RIGHT#442 100 * 7 + (>K:ROTOR_BRAKE)
DC6_AP_ALT_HOLD_BTN#43601 (>K:ROTOR_BRAKE)
DC6_PROP_PITCH_UP#518 100 * 7 + (>K:ROTOR_BRAKE)
DC6_PROP_PITCH_DOWN#518 100 * 8 + (>K:ROTOR_BRAKE)
config_dc6.json
{
"$schema": "./config.schema.json",
"version":
{
"major": 1,
"minor": 0,
"patch": 0
},
"encoders": [
{
"index": 1,
"event_up": { "event": "MobiFlight.DC6_AP_TURN_KNOB_RIGHT", "type": "manual", "value": 1 },
"event_down": { "event": "MobiFlight.DC6_AP_TURN_KNOB_LEFT", "type": "manual", "value": 1 }
},
{
"index": 2,
"event_up": "KOHLSMAN_INC",
"event_down": "KOHLSMAN_DEC",
"event_press": "BAROMETRIC"
},
{
"index": 3,
"event_up": { "event": "MobiFlight.DC6_AP_PITCH_UP", "type": "manual", "value": 1 },
"event_down": { "event": "MobiFlight.DC6_AP_PITCH_DOWN", "type": "manual", "value": 1 },
"event_press": { "event": "MobiFlight.DC6_AP_ALT_HOLD_BTN", "type": "manual", "value": 1 }
},
{
"index": 4,
"event_up": "AP_SPD_VAR_INC",
"event_down": "AP_SPD_VAR_DEC",
"alternate_event_up": "AP_VS_VAR_INC",
"alternate_event_down": "AP_VS_VAR_DEC"
},
{
"index": 5,
"event_up": "COM_RADIO_WHOLE_INC",
"event_down": "COM_RADIO_WHOLE_DEC",
"alternate_event_up": "COM_RADIO_FRACT_INC",
"alternate_event_down": "COM_RADIO_FRACT_DEC",
"event_short_press": "{alternate}",
"event_long_press": "COM_STBY_RADIO_SWAP"
},
{
"index": 6,
"event_up": "NAV1_RADIO_WHOLE_INC",
"event_down": "NAV1_RADIO_WHOLE_DEC",
"alternate_event_up": "NAV1_RADIO_FRACT_INC",
"alternate_event_down": "NAV1_RADIO_FRACT_DEC",
"event_short_press": "{alternate}",
"event_long_press": "NAV1_RADIO_SWAP"
},
{
"index": 7,
"event_up": "ELEV_TRIM_UP",
"event_down": "ELEV_TRIM_DN"
},
{
"index": 8,
"event_up": { "event": "MobiFlight.DC6_PROP_PITCH_UP", "type": "manual", "value": 1 },
"event_down": { "event": "MobiFlight.DC6_PROP_PITCH_DOWN", "type": "manual", "value": 1 }
}
],
"buttons": [
{
"index": 1,
"event_press": { "event": "MobiFlight.DC6_AP_BTN", "type": "manual", "value": 1 },
"simvar_led": "AUTOPILOT_FLIGHT_DIRECTOR_ACTIVE"
},
{
"index": 2,
"event_press": "AP_HDG_HOLD",
"simvar_led": "AUTOPILOT_HEADING_LOCK"
},
{
"index": 3,
"event_press": { "event": "MobiFlight.DC6_AP_ALT_HOLD_BTN", "type": "manual", "value": 1 },
"simvar_led": "AUTOPILOT_ALTITUDE_LOCK"
},
{
"index": 4,
"event_press": "AP_VS_HOLD",
"simvar_led": "AUTOPILOT_VERTICAL_HOLD"
},
{
"index": 5,
"event_press": "AP_APR_HOLD",
"simvar_led": "AUTOPILOT_APPROACH_HOLD"
},
{
"index": 6
},
{
"index": 7
},
{
"index": 8,
"event_press": "FLAPS_DECR"
},
{
"index": 9,
"event_press": { "event": "MobiFlight.DC6_AP_HANDLE_BTN", "type": "manual", "value": 1 },
"simvar_led": "AUTOPILOT_MASTER"
},
{
"index": 10,
"event_press": "AP_NAV1_HOLD",
"simvar_led": "AUTOPILOT_NAV1_LOCK"
},
{
"index": 11
},
{
"index": 12,
"event_press": "FLIGHT_LEVEL_CHANGE",
"simvar_led": "AUTOPILOT_FLIGHT_LEVEL_CHANGE"
},
{
"index": 13,
"event_press": "YAW_DAMPER_TOGGLE"
},
{
"index": 14,
"event_press": "TOGGLE_MASTER_BATTERY"
},
{
"index": 15,
"event_press": "GEAR_TOGGLE"
},
{
"index": 16,
"event_press": "FLAPS_INCR"
}
],
"faders": [
{
"index": 1,
"event_change": "THROTTLE_AXIS_SET_EX1",
"min_value": -16383,
"max_value": 16383
}
],
"triggers": [
{
"trigger_type": "condition-file",
"simvar": "AUTOPILOT_VERTICAL_HOLD",
"condition": "Functions/Generic/ap-spd-vs-encoder-switcher.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "AUTOPILOT_HEADING_LOCK_DIR",
"condition": "Functions/Generic/hdg-lock-sync.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "GEAR_POSITION",
"condition": "Functions/Generic/gear-position-sync.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "FLAPS_HANDLE_INDEX",
"condition": "Functions/Generic/flaps-position-sync.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "GEAR_POSITION",
"condition": "Functions/Generic/flaps-position-sync.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "GEAR_POSITION",
"condition": "Functions/Generic/yd-active-sync.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "AUTOPILOT_YAW_DAMPER",
"condition": "Functions/Generic/yd-active-sync.jinja2"
},
{
"trigger_type": "condition-file",
"simvar": "ELECTRICAL_BATTERY_LOAD",
"condition": "Functions/Generic/batt-load-sync.jinja2"
}
],
"initialization": {
"global_variables": [
{
"name": "HEADING_ENC_IDX",
"value": 1
},
{
"name": "AP_SPD_ENC_IDX",
"value": 4
},
{
"name": "FLAPS_UP_BUT_IDX",
"value": 8
},
{
"name": "YD_BUT_IDX",
"value": 13
},
{
"name": "BATT_BUT_IDX",
"value": 14
},
{
"name": "GEAR_BUT_IDX",
"value": 15
},
{
"name": "FLAPS_DN_BUT_IDX",
"value": 16
}
]
}
}
Feel free to make a PR to add your config to the repository
Have update events.user.txt to work correctly
Adding propeller pitch, but not tested