aboutsummaryrefslogtreecommitdiff
path: root/profile.yaml
blob: 89ba6905e84480328c99a36ccb29e44d85ca2b67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
---
# 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:
    - text: Thr.
      inc:
        xplane_cmd: sim/engines/throttle_up
      dec:
        xplane_cmd: sim/engines/throttle_down
      pressed:
        xplane_cmd: sim/engines/throttle_full
    - text: Prop
      color_bg: '#0000ff'
      inc:
        xplane_cmd: sim/engines/prop_up
      dec:
        xplane_cmd: sim/engines/prop_down
    - text: 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:
    - text: 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
    - text: ALT
      inc:
        xplane_cmd: sim/GPS/g1000n1_alt_inner_up
      dec:
        xplane_cmd: sim/GPS/g1000n1_alt_inner_down
    - text: 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:
    - display:
        type: meter
        freq: 6
        source:
          - xplane_dataref: sim/flightmodel/controls/flaprat
        min: 0
        max: 1
        stops:
          - color: 'gray'
            value_begin: 0
            value_end: 0.2
          - color: 'gray'
            value_begin: 0.4
            value_end: 0.6
          - color: 'gray'
            value_begin: 0.8
            value_end: 1
        formatter: '${$d[0] != null ? ($d[0] * 100).toFixed(0) : "X"}%'
    - display:
        type: meter
        freq: 1,
        source:
          - xplane_dataref: sim/cockpit2/engine/indicators/MPR_in_hg[0]
        min: 10
        max: 30
        formatter: '${$d[0] != null ? $d[0].toFixed(2) : "X"}'
        stops:
          - color: 'green'
            value_begin: 13
            value_end: 30
    - display:
        type: meter
        freq: 1,
        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
    - text: Flaps
      text2: 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
          - xplane_dataref: sim/cockpit2/radios/indicators/hsi_vdef_dots_pilot
          - xplane_dataref: sim/cockpit2/radios/indicators/hsi_flag_glideslope_pilot

        src:
          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 # alt
          - xplane_dataref: sim/cockpit2/gauges/indicators/vvi_fpm_pilot # vs
          - xplane_dataref: sim/cockpit/autopilot/altitude
    - text: Flaps
      text2: 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
        formatter: '${($d[0] & 2) ? "HDG" : (($d[0] & 0x200) ? "NAV" : "ROL")} ${($d[0] & 0x10) ? "VS" : (($d[0] & 0x40) ? "FLC" : (($d[0] & 0x4000) ? "ALT" : "PIT"))}'
        formatter2: '${$d[1] == 0 ? "NAV1" : ($d[1] == 1 ? "NAV2" : ($d[1] == 2 ? "GPS" : "X"))}'
        size: 16
        size2: 16
    - display:
        type: hsi
        freq: 12
        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/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
        hdg: 0
        src: 1
        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
        formatter: '${$d[0] != null ? $d[0].toFixed(0).padStart(3, "0") : "xxx"}'
        formatter2: 'HDG ${$d[1] != null ? $d[1].toFixed(0).padStart(3, "0") : "xxx"}'
        formatter3: 'CRS ${($d[2] == 2 ? $d[3] : ($d[2] == 0 ? $d[4] : ($d[2] == 1 ? $d[5] : 0))).toFixed(0).padStart(3, "0")}'
        color_fg2: 'cyan'
        color_fg3: '${($d[2] == 2 ? "magenta" : ($d[2] == 0 ? "#2dfe54" : ($d[2] == 1 ? "#2dfe54" : "magenta")))}'
        size2: 16
        size3: 16
    - text: Brake
      pressed:
        xplane_cmd: sim/flight_controls/brakes_toggle_regular

# Page 1
- right:
    - text: 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
    - text: ALT
      inc:
        xplane_cmd: sim/GPS/g1000n1_alt_inner_up
      dec:
        xplane_cmd: sim/GPS/g1000n1_alt_inner_down
    - text: 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:
    - text: AP
      pressed:
        xplane_cmd: sim/GPS/g1000n1_ap
    - text: FD
      pressed:
        xplane_cmd: sim/GPS/g1000n1_fd
    - text: HDG
      pressed:
        xplane_cmd: sim/GPS/g1000n1_hdg
    - text: ALT
      pressed:
        xplane_cmd: sim/GPS/g1000n1_alt
    - text: NAV
      pressed:
        xplane_cmd: sim/GPS/g1000n1_nav
    - text: VNV
      pressed:
        xplane_cmd: sim/GPS/g1000n1_vnv
    - text: APR
      pressed:
        xplane_cmd: sim/GPS/g1000n1_apr
    - text: BC
      pressed:
        xplane_cmd: sim/GPS/g1000n1_bc
    - text: VS
      pressed:
        xplane_cmd: sim/GPS/g1000n1_vs
    - text: UP
      pressed:
        xplane_cmd: sim/GPS/g1000n1_nose_up
    - text: FLC
      pressed:
        xplane_cmd: sim/GPS/g1000n1_flc
    - text: DN
      pressed:
        xplane_cmd: sim/GPS/g1000n1_nose_down
  color: '#1a62fd'

# Page 2
- left:
    # left knob labels
    - text: 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
    - text: 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
    - text: BARO
      inc:
        xplane_cmd: sim/GPS/g1000n1_baro_up
      dec:
        xplane_cmd: sim/GPS/g1000n1_baro_down
  right:
    # right knob labels
    - text: 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
    - text: 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:
    # 12 touchable keys from left to right, top to bottom
    - text: -D->
      pressed:
        xplane_cmd: sim/GPS/g1000n1_direct
    - text: MENU
      pressed:
        xplane_cmd: sim/GPS/g1000n1_menu
    - text: -D->
      pressed:
        xplane_cmd: sim/GPS/g1000n3_direct
    - text: MENU
      pressed:
        xplane_cmd: sim/GPS/g1000n3_menu
    - text: FPL
      pressed:
        xplane_cmd: sim/GPS/g1000n1_fpl
    - text: PROC
      pressed:
        xplane_cmd: sim/GPS/g1000n1_proc
    - text: FPL
      pressed:
        xplane_cmd: sim/GPS/g1000n3_fpl
    - text: PROC
      pressed:
        xplane_cmd: sim/GPS/g1000n3_proc
    - text: CLR
      pressed:
        xplane_cmd: sim/GPS/g1000n1_clr
    - text: ENT
      pressed:
        xplane_cmd: sim/GPS/g1000n1_ent
    - text: CLR
      pressed:
        xplane_cmd: sim/GPS/g1000n3_clr
    - text: ENT
      pressed:
        xplane_cmd: sim/GPS/g1000n3_ent
  color: 'yellow'

# Page 3
- left:
    - text: 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
    - text: 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:
    - text: 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
    - text: 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:
    - text: <-COM
      pressed:
        xplane_cmd: sim/GPS/g1000n1_com_ff
    - text: <-NAV
      pressed:
        xplane_cmd: sim/GPS/g1000n1_nav_ff
    - ''
    - ''
    - text: COM1
      text2: Mic
      pressed:
        xplane_cmd: sim/audio_panel/transmit_audio_com1
    - text: COM1
      pressed:
        xplane_cmd: sim/audio_panel/monitor_audio_com1
    - ''
    - ''
    - text: COM2
      text2: Mic
      pressed:
        xplane_cmd: sim/audio_panel/transmit_audio_com2
    - text: COM2
      pressed:
        xplane_cmd: sim/audio_panel/monitor_audio_com2
    - ''
    - ''
  color: 'white'