blob: 691b6ad90276f63c57286c332fa302698cab2ea9 (
plain) (
tree)
|
|
---
# This is the profile that I created for my own setup (good for DA40 with G1000 in X-Plane).
# for xplane_cmd, refer to /Resources/plugins/Commands.txt under your X-Plane installation
# for xplane_dataref, refer to /Resources/plugins/DataRefs.txt
#
# Page 0
- left:
# left knob labels from top to bottom
- label: Thr.
inc:
xplane_cmd: sim/engines/throttle_up
dec:
xplane_cmd: sim/engines/throttle_down
pressed:
xplane_cmd: sim/engines/throttle_full
- label: Prop
color_bg: '#0000ff'
inc:
xplane_cmd: sim/engines/prop_up
dec:
xplane_cmd: sim/engines/prop_down
- label: Mix.
inc:
xplane_cmd: sim/engines/mixture_up
dec:
xplane_cmd: sim/engines/mixture_down
pressed:
xplane_cmd: sim/engines/mixture_max
color_bg: '#ff0000'
right:
# right knob labels
- label: HDG
inc:
xplane_cmd: sim/GPS/g1000n1_hdg_up
dec:
xplane_cmd: sim/GPS/g1000n1_hdg_down
pressed:
xplane_cmd: sim/GPS/g1000n1_hdg_sync
- label: ALT
inc:
xplane_cmd: sim/GPS/g1000n1_alt_inner_up
dec:
xplane_cmd: sim/GPS/g1000n1_alt_inner_down
- label: CRS
inc:
xplane_cmd: sim/GPS/g1000n1_crs_up
dec:
xplane_cmd: sim/GPS/g1000n1_crs_down
pressed:
xplane_cmd: sim/GPS/g1000n1_crs_sync
keys:
# 12 touchable keys from left to right, top to bottom
- display:
# a "display" key only shows some live data, rather than functioning as a pressable key
# "type" indicates which template for the display to use (one of meter/text/bar/attitude/ias/alt/hsi)
# here, "bar" is a bar chart that draws several (practically <= 4) bars from left to right showing some stats
type: bar
# update frequency of the display
freq: 6
source:
- xplane_dataref: sim/cockpit2/engine/actuators/throttle_ratio[0]
- xplane_dataref: sim/cockpit2/engine/actuators/prop_ratio[0]
- xplane_dataref: sim/cockpit2/engine/actuators/mixture_ratio[0]
- xplane_dataref: sim/flightmodel/controls/flaprat
label:
- T
- P
- M
- F
# font size for each bar
size:
- 12
- 12
- 12
- 12
exp:
- '$d'
- '1 - $d'
- '$d'
- '$d'
# value expression written in a JS template literal (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
# for each bar, should result in [0, 1]. Note $d is the array that
# contains the fmt from "source"
fmt:
- '${$d[0] != null ? ($d[0] * 100).toFixed(0) : "X"}%'
- '${$d[1] != null ? ($d[1] * 100).toFixed(0) : "X"}%'
- '${$d[2] != null ? ($d[2] * 100).toFixed(0) : "X"}%'
- '${$d[3] != null ? ($d[3] * 100).toFixed(0) : "X"}%'
# bar colors
color_fg:
- white
- blue
- red
- gray
- display:
# meter is a arc-style display that could be used to show RPM/power/speed, etc.
type: meter
freq: 6
source:
- xplane_dataref: sim/cockpit2/engine/indicators/MPR_in_hg[0]
min: 10
max: 30
fmt: '${$d[0] != null ? $d[0].toFixed(1) : "X"}'
# stops define the segmented arcs that the needle can point to at different angles
stops:
- color: 'green'
value_begin: 13
value_end: 30
- display:
type: meter
freq: 6
source:
- xplane_dataref: sim/cockpit2/engine/indicators/engine_speed_rpm[0]
min: 0
max: 3000
stops:
- color: 'green'
value_begin: 500
value_end: 2400
- color: 'yellow'
value_begin: 2400
value_end: 2700
- color: 'red'
value_begin: 2700
value_end: 3000
- label:
- Flaps
- Up
pressed:
xplane_cmd: sim/flight_controls/flaps_up
- display:
type: ias
freq: 24
source:
- xplane_dataref: sim/cockpit2/gauges/indicators/airspeed_kts_pilot
- display:
type: attitude
freq: 24
source:
- xplane_dataref: sim/cockpit/gyros/the_ind_ahars_pilot_deg # pitch
- xplane_dataref: sim/cockpit/gyros/phi_ind_ahars_pilot_deg # roll
- xplane_dataref: sim/cockpit2/radios/actuators/HSI_source_select_pilot # navigation source for HSI
- xplane_dataref: sim/cockpit2/radios/indicators/hsi_vdef_dots_pilot
- xplane_dataref: sim/cockpit2/radios/indicators/hsi_flag_glideslope_pilot
# navs contains the mapping from the HSI source value (source[2]) to the index in source[] array
navs:
2:
def: 3
received: 4
0:
def: 3
received: 4
1:
def: 3
received: 4
- display:
type: alt
freq: 24
source:
- xplane_dataref: sim/cockpit2/gauges/indicators/altitude_ft_pilot # altitude
- xplane_dataref: sim/cockpit2/gauges/indicators/vvi_fpm_pilot # vertical speed
- xplane_dataref: sim/cockpit/autopilot/altitude # altitude bug
- label:
- Flaps
- Down
pressed:
xplane_cmd: sim/flight_controls/flaps_down
- display:
type: text
source:
- xplane_dataref: sim/cockpit/autopilot/autopilot_state
- xplane_dataref: sim/cockpit2/radios/actuators/HSI_source_select_pilot
fmt:
- '${($d[0] & 2) ? "HDG" : (($d[0] & 0x200) ? "NAV" : "ROL")} ${($d[0] & 0x10) ? "VS" : (($d[0] & 0x40) ? "FLC" : (($d[0] & 0x4000) ? "ALT" : "PIT"))}'
- '${$d[1] == 0 ? "NAV1" : ($d[1] == 1 ? "NAV2" : ($d[1] == 2 ? "GPS" : "X"))}'
size:
- 16
- 16
- display:
type: hsi
freq: 12
source:
- xplane_dataref: sim/cockpit2/gauges/indicators/heading_AHARS_deg_mag_pilot # current heading
- xplane_dataref: sim/cockpit2/autopilot/heading_dial_deg_mag_pilot # heading bug
- xplane_dataref: sim/cockpit2/radios/actuators/HSI_source_select_pilot # navigation source for HSI
- xplane_dataref: sim/cockpit2/radios/indicators/hsi_hdef_dots_pilot
- xplane_dataref: sim/cockpit2/radios/indicators/hsi_display_horizontal_pilot
- xplane_dataref: sim/cockpit/radios/gps_course_degtm
- xplane_dataref: sim/cockpit2/radios/actuators/nav1_obs_deg_mag_pilot
- xplane_dataref: sim/cockpit2/radios/actuators/nav2_obs_deg_mag_pilot
navs:
2:
crs: 5
def: 3
received: 4
color: magenta
0:
crs: 6
def: 3
received: 4
color: '#2dfe54'
1:
crs: 7
def: 3
received: 4
color: '#2dfe54'
- display:
type: text
freq: 6
source:
- xplane_dataref: sim/cockpit2/gauges/indicators/heading_AHARS_deg_mag_pilot
- xplane_dataref: sim/cockpit2/autopilot/heading_dial_deg_mag_pilot
- xplane_dataref: sim/cockpit2/radios/actuators/HSI_source_select_pilot
- xplane_dataref: sim/cockpit/radios/gps_course_degtm
- xplane_dataref: sim/cockpit2/radios/actuators/nav1_obs_deg_mag_pilot
- xplane_dataref: sim/cockpit2/radios/actuators/nav2_obs_deg_mag_pilot
fmt:
- '${$d[0] != null ? $d[0].toFixed(0).padStart(3, "0") : "000"}'
- 'HDG ${$d[1] != null ? $d[1].toFixed(0).padStart(3, "0") : "000"}'
- 'CRS ${($d[2] == 2 ? $d[3] : ($d[2] == 0 ? $d[4] : ($d[2] == 1 ? $d[5] : 0))).toFixed(0).padStart(3, "0")}'
color_fg:
- white
- cyan
- '${($d[2] == 2 ? "magenta" : ($d[2] == 0 ? "#2dfe54" : ($d[2] == 1 ? "#2dfe54" : "magenta")))}'
size:
- null
- 16
- 16
- label: Brake
pressed:
xplane_cmd: sim/flight_controls/brakes_toggle_regular
# Page 1
- right:
- label: HDG
inc:
xplane_cmd: sim/GPS/g1000n1_hdg_up
dec:
xplane_cmd: sim/GPS/g1000n1_hdg_down
pressed:
xplane_cmd: sim/GPS/g1000n1_hdg_sync
- label: ALT
inc:
xplane_cmd: sim/GPS/g1000n1_alt_inner_up
dec:
xplane_cmd: sim/GPS/g1000n1_alt_inner_down
- label: CRS
inc:
xplane_cmd: sim/GPS/g1000n1_crs_up
dec:
xplane_cmd: sim/GPS/g1000n1_crs_down
pressed:
xplane_cmd: sim/GPS/g1000n1_crs_sync
keys:
- label: AP
pressed:
xplane_cmd: sim/GPS/g1000n1_ap
- label: FD
pressed:
xplane_cmd: sim/GPS/g1000n1_fd
- label: HDG
pressed:
xplane_cmd: sim/GPS/g1000n1_hdg
- label: ALT
pressed:
xplane_cmd: sim/GPS/g1000n1_alt
- label: NAV
pressed:
xplane_cmd: sim/GPS/g1000n1_nav
- label: VNV
pressed:
xplane_cmd: sim/GPS/g1000n1_vnv
- label: APR
pressed:
xplane_cmd: sim/GPS/g1000n1_apr
- label: BC
pressed:
xplane_cmd: sim/GPS/g1000n1_bc
- label: VS
pressed:
xplane_cmd: sim/GPS/g1000n1_vs
- label: UP
pressed:
xplane_cmd: sim/GPS/g1000n1_nose_up
- label: FLC
pressed:
xplane_cmd: sim/GPS/g1000n1_flc
- label: DN
pressed:
xplane_cmd: sim/GPS/g1000n1_nose_down
color: '#1a62fd'
# Page 2
- left:
- label: FMS out
size: 20
inc:
xplane_cmd: sim/GPS/g1000n1_fms_outer_up
dec:
xplane_cmd: sim/GPS/g1000n1_fms_outer_down
pressed:
xplane_cmd: sim/GPS/g1000n1_cursor
- label: FMS in
size: 20
inc:
xplane_cmd: sim/GPS/g1000n1_fms_inner_up
dec:
xplane_cmd: sim/GPS/g1000n1_fms_inner_down
pressed:
xplane_cmd: sim/GPS/g1000n1_cursor
- label: BARO
inc:
xplane_cmd: sim/GPS/g1000n1_baro_up
dec:
xplane_cmd: sim/GPS/g1000n1_baro_down
right:
- label: FMS out
size: 20
inc:
xplane_cmd: sim/GPS/g1000n3_fms_outer_up
dec:
xplane_cmd: sim/GPS/g1000n3_fms_outer_down
pressed:
xplane_cmd: sim/GPS/g1000n3_cursor
- label: FMS in
size: 20
inc:
xplane_cmd: sim/GPS/g1000n3_fms_inner_up
dec:
xplane_cmd: sim/GPS/g1000n3_fms_inner_down
pressed:
xplane_cmd: sim/GPS/g1000n3_cursor
-
keys:
- label: -D->
pressed:
xplane_cmd: sim/GPS/g1000n1_direct
- label: MENU
pressed:
xplane_cmd: sim/GPS/g1000n1_menu
- label: -D->
pressed:
xplane_cmd: sim/GPS/g1000n3_direct
- label: MENU
pressed:
xplane_cmd: sim/GPS/g1000n3_menu
- label: FPL
pressed:
xplane_cmd: sim/GPS/g1000n1_fpl
- label: PROC
pressed:
xplane_cmd: sim/GPS/g1000n1_proc
- label: FPL
pressed:
xplane_cmd: sim/GPS/g1000n3_fpl
- label: PROC
pressed:
xplane_cmd: sim/GPS/g1000n3_proc
- label: CLR
pressed:
xplane_cmd: sim/GPS/g1000n1_clr
- label: ENT
pressed:
xplane_cmd: sim/GPS/g1000n1_ent
- label: CLR
pressed:
xplane_cmd: sim/GPS/g1000n3_clr
- label: ENT
pressed:
xplane_cmd: sim/GPS/g1000n3_ent
color: 'yellow'
# Page 3
- left:
- label: COM in
size: 20
inc:
xplane_cmd: sim/GPS/g1000n1_com_inner_up
dec:
xplane_cmd: sim/GPS/g1000n1_com_inner_down
pressed:
xplane_cmd: sim/GPS/g1000n1_com12
- label: COM out
size: 20
inc:
xplane_cmd: sim/GPS/g1000n1_com_outer_up
dec:
xplane_cmd: sim/GPS/g1000n1_com_outer_down
pressed:
xplane_cmd: sim/GPS/g1000n1_com12
-
right:
- label: NAV in
size: 20
inc:
xplane_cmd: sim/GPS/g1000n1_nav_inner_up
dec:
xplane_cmd: sim/GPS/g1000n1_nav_inner_down
pressed:
xplane_cmd: sim/GPS/g1000n1_nav12
- label: NAV out
size: 20
inc:
xplane_cmd: sim/GPS/g1000n1_nav_outer_up
dec:
xplane_cmd: sim/GPS/g1000n1_nav_outer_down
pressed:
xplane_cmd: sim/GPS/g1000n1_nav12
-
keys:
- label: <-COM
pressed:
xplane_cmd: sim/GPS/g1000n1_com_ff
- label: <-NAV
pressed:
xplane_cmd: sim/GPS/g1000n1_nav_ff
-
-
- label:
- COM1
- Mic
pressed:
xplane_cmd: sim/audio_panel/transmit_audio_com1
- label: COM1
pressed:
xplane_cmd: sim/audio_panel/monitor_audio_com1
-
-
- label:
- COM2
- Mic
pressed:
xplane_cmd: sim/audio_panel/transmit_audio_com2
- label: COM2
pressed:
xplane_cmd: sim/audio_panel/monitor_audio_com2
-
-
color: 'white'
|