Debian Codegraph @

Input/HID/GoFlight/MCP-pro.xml

raw symbols SCIP
1 <PropertyList>
2
3 <name>GoFlight MCP Pro</name>
4 <name>MCP Pro</name>
5 <debug-events type="bool">false</debug-events>
6
7 <nasal>
8 <open>
9 <![CDATA[
10
11 var altitudeAlphanumeric = func() { return goflight.mcp.altitudeData(); }
12 var headingAlphanumeric = func() { return goflight.mcp.headingData(); }
13 var courseAlphanumeric = func() { return goflight.mcp.course1Data(); }
14 var course2Alphanumeric = func() { return goflight.mcp.course2Data(); }
15 var speedAlphanumeric = func() { return goflight.mcp.speedData(); }
16 var vspeedAlphanumeric = func() { return goflight.mcp.vsData(); }
17
18 ]]>
19 </open>
20 </nasal>
21
22 <event>
23 <name>display-brightness</name>
24 <setting>
25 <property>/input/goflight/mcp/brightness</property>
26 </setting>
27 </event>
28
29
30 <event>
31 <name>rel-dial-0</name>
32 <binding>
33 <command>property-adjust</command>
34 <property>/autopilot/settings/heading-bug-deg</property>
35 <wrap type="bool">true</wrap>
36 <min>0</min>
37 <max>359</max>
38 </binding>
39 <interpolater>
40 <mirrored type="bool">true</mirrored>
41 <entry>
42 <ind>0</ind>
43 <dep>0</dep>
44 </entry>
45 <entry>
46 <ind>1</ind>
47 <dep>1</dep>
48 </entry>
49 <entry>
50 <ind>2</ind>
51 <dep>5</dep>
52 </entry>
53 <entry>
54 <ind>3</ind>
55 <dep>10</dep>
56 </entry>
57 <entry>
58 <ind>4</ind>
59 <dep>30</dep>
60 </entry>
61 </interpolater>
62 </event>
63
64 <event>
65 <name>rel-dial-1</name>
66 <binding>
67 <command>property-adjust</command>
68 <property>/instrumentation/nav[0]/radials/selected-deg</property>
69 <wrap type="bool">true</wrap>
70 <min>0</min>
71 <max>359</max>
72 </binding>
73 <interpolater>
74 <mirrored type="bool">true</mirrored>
75 <entry>
76 <ind>0</ind>
77 <dep>0</dep>
78 </entry>
79 <entry>
80 <ind>1</ind>
81 <dep>1</dep>
82 </entry>
83 <entry>
84 <ind>2</ind>
85 <dep>5</dep>
86 </entry>
87 <entry>
88 <ind>3</ind>
89 <dep>10</dep>
90 </entry>
91 <entry>
92 <ind>4</ind>
93 <dep>30</dep>
94 </entry>
95 </interpolater>
96 </event>
97
98 <event>
99 <name>rel-dial-2</name>
100 <binding>
101 <command>property-adjust</command>
102 <property>/autopilot/settings/vertical-speed-fpm</property>
103 <factor type="double">-50</factor>
104 <min>-8000</min>
105 <max>12000</max>
106 </binding>
107 <interpolater>
108 <mirrored type="bool">true</mirrored>
109
110 <entry>
111 <ind>0</ind>
112 <dep>0</dep>
113 </entry>
114 <entry>
115 <ind>1</ind>
116 <dep>1</dep>
117 </entry>
118 <entry>
119 <ind>2</ind>
120 <dep>2</dep>
121 </entry>
122 <entry>
123 <ind>3</ind>
124 <dep>4</dep>
125 </entry>
126 <entry>
127 <ind>4</ind>
128 <dep>10</dep>
129 </entry>
130 </interpolater>
131 </event>
132
133 <event>
134 <name>rel-dial-3</name>
135 <binding>
136 <command>nasal</command>
137 <script>goflight.mcp.adjustSpeed(cmdarg().getNode("offset").getValue())</script>
138 </binding>
139 <interpolater>
140 <mirrored type="bool">true</mirrored>
141
142 <entry>
143 <ind>0</ind>
144 <dep>0</dep>
145 </entry>
146 <entry>
147 <ind>1</ind>
148 <dep>1</dep>
149 </entry>
150 <entry>
151 <ind>2</ind>
152 <dep>5</dep>
153 </entry>
154 <entry>
155 <ind>3</ind>
156 <dep>10</dep>
157 </entry>
158 <entry>
159 <ind>4</ind>
160 <dep>20</dep>
161 </entry>
162 </interpolater>
163
164 </event>
165
166 <event>
167 <name>rel-dial-4</name>
168 <binding>
169 <command>property-adjust</command>
170 <property>/instrumentation/nav[1]/radials/selected-deg</property>
171 <wrap type="bool">true</wrap>
172 <min>0</min>
173 <max>359</max>
174 </binding>
175 <interpolater>
176 <mirrored type="bool">true</mirrored>
177
178 <entry>
179 <ind>0</ind>
180 <dep>0</dep>
181 </entry>
182 <entry>
183 <ind>1</ind>
184 <dep>1</dep>
185 </entry>
186 <entry>
187 <ind>2</ind>
188 <dep>5</dep>
189 </entry>
190 <entry>
191 <ind>3</ind>
192 <dep>10</dep>
193 </entry>
194 <entry>
195 <ind>4</ind>
196 <dep>30</dep>
197 </entry>
198 </interpolater>
199 </event>
200
201 <event>
202 <name>rel-dial-5</name>
203 <interpolater>
204 <mirrored type="bool">true</mirrored>
205
206 <entry>
207 <ind>0</ind>
208 <dep>0</dep>
209 </entry>
210 <entry>
211 <ind>1</ind>
212 <dep>1</dep>
213 </entry>
214 <entry>
215 <ind>2</ind>
216 <dep>10</dep>
217 </entry>
218 <entry>
219 <ind>3</ind>
220 <dep>20</dep>
221 </entry>
222 <entry>
223 <ind>4</ind>
224 <dep>40</dep>
225 </entry>
226 </interpolater>
227 <binding>
228 <command>nasal</command>
229 <script>
230 var x = cmdarg().getNode("offset").getValue();
231 goflight.mcp.adjustAltitude(x * 50);
232 </script>
233 </binding>
234 </event>
235
236 <report>
237 <report-id type="int">9</report-id>
238 <watch>/input/goflight/mcp/refresh</watch>
239 <nasal-function>altitudeAlphanumeric</nasal-function>
240 </report>
241
242 <report>
243 <report-id type="int">7</report-id>
244 <watch>/input/goflight/mcp/refresh-headings</watch>
245 <nasal-function>headingAlphanumeric</nasal-function>
246 </report>
247
248 <report>
249 <report-id type="int">3</report-id>
250 <watch>/input/goflight/mcp/refresh-headings</watch>
251 <nasal-function>courseAlphanumeric</nasal-function>
252 </report>
253
254 <report>
255 <report-id type="int">11</report-id>
256 <watch>/input/goflight/mcp/refresh</watch>
257 <nasal-function>vspeedAlphanumeric</nasal-function>
258 </report>
259
260 <report>
261 <report-id type="int">5</report-id>
262 <watch>/input/goflight/mcp/refresh</watch>
263 <nasal-function>speedAlphanumeric</nasal-function>
264 </report>
265
266 <report>
267 <report-id type="int">13</report-id>
268 <watch>/input/goflight/mcp/refresh-headings</watch>
269 <nasal-function>course2Alphanumeric</nasal-function>
270 </report>
271
272 <!-- LED driver properties - these are generated from individual
273 bool properties by the LEDWatcher helper class above -->
274 <event>
275 <name>led-misc-0</name>
276 <setting>
277 <property>/input/goflight/mcp/led[0]</property>
278 </setting>
279 </event>
280
281 <event>
282 <name>led-misc-1</name>
283 <setting>
284 <property>/input/goflight/mcp/led[1]</property>
285 </setting>
286 </event>
287
288 <event>
289 <name>led-misc-2</name>
290 <setting>
291 <property>/input/goflight/mcp/led[2]</property>
292 </setting>
293 </event>
294
295 <event>
296 <name>led-misc-3</name>
297 <setting>
298 <property>/input/goflight/mcp/led[3]</property>
299 </setting>
300 </event>
301
302 <event>
303 <name>button-1</name>
304 <binding>
305 <command>nasal</command>
306 <script>print("Button 1")</script>
307 </binding>
308 </event>
309
310 <event>
311 <name>button-2</name>
312 <binding>
313 <command>nasal</command>
314 <script>print("Button 2")</script>
315 </binding>enable
316 </event>
317
318 <event>
319 <name>button-3</name>
320 <binding>
321 <command>nasal</command>
322 <script>print("Button 3")</script>
323 </binding>
324 </event>
325
326 <event>
327 <name>button-4</name>
328 <binding>
329 <command>nasal</command>
330 <script>print("Button 4")</script>
331 </binding>
332 </event>
333
334 <event>
335 <name>button-5</name>
336 <binding>
337 <command>nasal</command>
338 <script>print("Button 5")</script>
339 </binding>
340 </event>
341
342 <event>
343 <name>button-6</name>
344 <binding>
345 <command>nasal</command>
346 <script>print("Button 6")</script>
347 </binding>
348 </event>
349
350 <event>
351 <name>button-7</name>
352 <binding>
353 <command>nasal</command>
354 <script>print("Button 7")</script>
355 </binding>
356 </event>
357
358 <event>
359 <name>button-8</name>
360 <binding>
361 <command>nasal</command>
362 <script>print("Button 8")</script>
363 </binding>
364 </event>
365
366 <event>
367 <desc>Speed</desc>
368 <name>button-9</name>
369 <binding>
370 <command>goflight-mcp-button</command>
371 <button>speed</button>
372 </binding>
373 </event>
374
375 <event>
376 <name>button-10</name>
377 <desc>Level Change</desc>
378 <binding>
379 <command>goflight-mcp-button</command>
380 <button>level-change</button>
381 </binding>
382 </event>
383
384 <event>
385 <name>button-11</name>
386 <desc>Heading</desc>
387 <binding>
388 <command>goflight-mcp-button</command>
389 <button>heading</button>
390 </binding>
391 </event>
392
393 <event>
394 <name>button-12</name>
395 <desc>Approach</desc>
396 <binding>
397 <command>goflight-mcp-button</command>
398 <button>approach</button>
399 </binding>
400 </event>
401
402 <event>
403 <name>button-13</name>
404 <desc>Altitude</desc>
405 <binding>
406 <command>goflight-mcp-button</command>
407 <button>altitude-hold</button>
408 </binding>
409 </event>
410
411 <event>
412 <name>button-14</name>
413 <desc>Vertical Speed</desc>
414 <binding>
415 <command>goflight-mcp-button</command>
416 <button>vs</button>
417 </binding>
418 </event>
419
420 <event>
421 <name>button-15</name>
422 <desc>Disengage Bar</desc>
423 <binding>
424 <command>property-assign</command>
425 <property>/input/goflight/mcp/ap-disengage</property>
426 <value>1</value>
427 </binding>
428 <mod-up>
429 <binding>
430 <command>property-assign</command>
431 <property>/input/goflight/mcp/ap-disengage</property>
432 <value>0</value>
433 </binding>
434 </mod-up>
435 </event>
436
437
438 <event>
439 <name>button-16</name>
440 <desc>F/O FD Enable</desc>
441 <binding>
442 <command>property-assign</command>
443 <property>/input/goflight/mcp/fo-fd-enabled</property>
444 <value>1</value>
445 </binding>
446 <mod-up>
447 <binding>
448 <command>property-assign</command>
449 <property>/input/goflight/mcp/fo-fd-enabled</property>
450 <value>0</value>
451 </binding>
452 </mod-up>
453 </event>
454
455 <event>
456 <name>button-17</name>
457 <desc>Altitude Intervention</desc>
458 <binding>
459 <command>goflight-mcp-button</command>
460 <button>altitude-intervention</button>
461 </binding>
462 </event>
463
464 <event>
465 <name>button-18</name>
466 <desc>CWS-A</desc>
467 <binding>
468 <command>goflight-mcp-button</command>
469 <button>cws-a</button>
470 </binding>
471 </event>
472
473 <event>
474 <name>button-19</name>
475 <desc>CWS-B</desc>
476 <binding>
477 <command>goflight-mcp-button</command>
478 <button>cws-b</button>
479 </binding>
480 </event>
481
482 <event>
483 <name>button-20</name>
484 <desc>IAS knob push</desc>
485 <binding>
486 <command>goflight-mcp-button</command>
487 <button>speed-push</button>
488 </binding>
489 </event>
490
491 <event>
492 <name>button-21</name>
493 <desc>HDG knob push</desc>
494 <binding>
495 <command>goflight-mcp-button</command>
496 <button>heading-push</button>
497 </binding>
498 </event>
499
500 <event>
501 <name>button-22</name>
502 <desc>Altitude Knob Push</desc>
503 <binding>
504 <command>goflight-mcp-button</command>
505 <button>altitude-select</button>
506 </binding>
507 </event>
508
509 <event>
510 <name>button-23</name>
511 <desc>Captain's FD Enable</desc>
512 <binding>
513 <command>property-assign</command>
514 <property>/input/goflight/mcp/captain-fd-enabled</property>
515 <value>1</value>
516 </binding>
517 <mod-up>
518 <binding>
519 <command>property-assign</command>
520 <property>/input/goflight/mcp/captain-fd-enabled</property>
521 <value>0</value>
522 </binding>
523 </mod-up>
524 </event>
525
526 <event>
527 <name>button-24</name>
528 <desc>N1 select</desc>
529 <binding>
530 <command>goflight-mcp-button</command>
531 <button>n1</button>
532 </binding>
533 </event>
534
535 <event>
536 <name>button-25</name>
537 <desc>VNAV</desc>
538 <binding>
539 <command>goflight-mcp-button</command>
540 <button>vnav</button>
541 </binding>
542 </event>
543
544 <event>
545 <name>button-26</name>
546 <desc>LNAV</desc>
547 <binding>
548 <command>goflight-mcp-button</command>
549 <button>lnav</button>
550 </binding>
551 </event>
552
553 <event>
554 <name>button-27</name>
555 <desc>CMD A</desc>
556 <binding>
557 <command>goflight-mcp-button</command>
558 <button>command-a</button>
559 </binding>
560 </event>
561
562 <event>
563 <name>button-28</name>
564 <desc>CMD B</desc>
565 <binding>
566 <command>goflight-mcp-button</command>
567 <button>command-b</button>
568 </binding>
569 </event>
570
571 <event>
572 <name>button-29</name>
573 <desc>AT arm</desc>
574 <binding>
575 <command>property-assign</command>
576 <property>/input/goflight/mcp/autothrottle-armed</property>
577 <value>1</value>
578 </binding>
579 <mod-up>
580 <binding>
581 <command>property-assign</command>
582 <property>/input/goflight/mcp/autothrottle-armed</property>
583 <value>0</value>
584 </binding>
585 </mod-up>
586 </event>
587
588 <event>
589 <name>button-30</name>
590 <desc>Soeed crossover</desc>
591 <binding>
592 <command>goflight-mcp-button</command>
593 <button>speed-crossover</button>
594 </binding>
595 </event>
596
597 <event>
598 <name>button-31</name>
599 <desc>Speed intervention</desc>
600 <binding>
601 <command>goflight-mcp-button</command>
602 <button>speed-intervention</button>
603 </binding>
604 </event>
605
606 <event>
607 <name>button-32</name>
608 <desc>VOR / Localizer</desc>
609 <binding>
610 <command>goflight-mcp-button</command>
611 <button>vor</button>
612 </binding>
613 </event>
614 </PropertyList>