Primus , autopilot and autopilot dialog updates ...
[fg:toms-fgdata.git] / Aircraft / Citation-Bravo / Systems / autopilot-dlg.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3   <name>autopilot-dlg</name>
4   <layout>vbox</layout>
5
6   <text><label>Flight Director / Autopilot Control</label></text>
7
8   <hrule/>
9   <!-- Autopilot Locks Display-->
10       <halign>center</halign>
11     <text>
12   <label>      Lateral Mode       Vertical Mode       Speed Mode</label>
13   </text>
14
15     <frame>
16    <height>60</height>
17
18 <input>
19     <x>15</x>
20     <y>30</y>
21     <width>100</width>
22     <height>25</height>
23     <border>2</border>
24    <property>autopilot/locks/heading</property>
25     <live>true</live>
26 </input>
27
28 <input>
29     <x>125</x>
30     <y>30</y>
31     <width>100</width>
32     <height>25</height>
33    <property>autopilot/locks/altitude</property>
34     <live>true</live>
35 </input>
36
37 <input>
38     <x>235</x>
39     <y>30</y>
40     <width>100</width>
41     <height>25</height>
42    <property>autopilot/locks/speed</property>
43     <live>true</live>
44 </input>
45
46   <checkbox>
47    <x>20</x>
48    <y>10</y>
49    <width>14</width>
50    <height>14</height>
51    <label>GS armed</label>
52    <property>instrumentation/flightdirector/gs-arm</property>
53    <live>true</live>
54    <binding>
55     <command>dialog-update</command>
56    </binding>
57   </checkbox>
58
59   <checkbox>
60    <x>120</x>
61    <y>10</y>
62    <width>14</width>
63    <height>14</height>
64    <label>Back Course</label>
65    <property>instrumentation/nav/back-course-btn</property>
66    <live>true</live>
67    <binding>
68     <command>dialog-update</command>
69    </binding>
70   </checkbox>
71
72   <checkbox>
73    <x>235</x>
74    <y>10</y>
75    <width>14</width>
76    <height>14</height>
77    <label></label>
78    <property>instrumentation/primus1000/dc550/fms</property>
79    <live>true</live>
80    <binding>
81     <command>dialog-update</command>
82    </binding>
83   </checkbox>
84
85     <button>
86     <x>250</x>
87     <y>10</y>
88    <width>35</width>
89    <height>15</height>
90     <legend>FMS</legend>
91     <binding>
92    <command>nasal</command>
93     <script>bravo.primus.dc550_set("fms");</script>
94     </binding>
95     </button>
96
97     <button>
98     <x>290</x>
99     <y>10</y>
100    <width>35</width>
101    <height>15</height>
102     <legend>NAV</legend>
103     <binding>
104    <command>nasal</command>
105     <script>bravo.primus.dc550_set("nav");</script>
106     </binding>
107     </button>
108
109 </frame>
110
111 <hrule/>
112   <text>
113   <label>Flight Director Buttons</label>
114   </text>
115
116   <!-- Flight Director Push Buttons-->
117
118     <frame>
119     <layout>vbox</layout>
120       <halign>center</halign>
121
122 <group>
123
124     <layout>hbox</layout>
125       <halign>left</halign>
126
127     <button>
128     <x>1</x>
129     <y>1</y>
130    <width>80</width>
131    <height>30</height>
132     <legend>HDG</legend>
133     <binding>
134     <command>nasal</command>
135     <script>bravo.FlDr.set_mode("hdg");</script>
136     </binding>
137     </button>
138
139    <button>
140     <x>1</x>
141     <y>1</y>
142    <width>80</width>
143    <height>30</height>
144     <legend>NAV</legend>
145     <binding>
146     <command>nasal</command>
147     <script>bravo.FlDr.set_mode("nav");</script>
148     </binding>
149    </button>
150
151    <button>
152     <x>1</x>
153     <y>1</y>
154    <width>80</width>
155    <height>30</height>
156     <legend>APPR</legend>
157     <binding>
158      <command>nasal</command>
159     <script>bravo.FlDr.set_mode("apr");</script>
160     </binding>
161    </button>
162
163    <button>
164     <x>1</x>
165     <y>1</y>
166    <width>80</width>
167    <height>30</height>
168     <legend>B/C</legend>
169     <binding>
170      <command>nasal</command>
171     <script>bravo.FlDr.set_mode("bc");</script>
172     </binding>
173    </button>
174
175 <!--
176 <button>
177     <x>1</x>
178     <y>1</y>
179    <width>80</width>
180    <height>30</height>
181     <legend>CLIMB</legend>
182     <binding>
183      <command>nasal</command>
184     <script>bravo.FlDr.set_mode("climb");</script>
185     </binding>
186    </button>
187 -->
188     </group>
189
190     <group>
191     <layout>hbox</layout>
192       <halign>center</halign>
193
194    <button>
195     <x>1</x>
196     <y>1</y>
197    <width>50</width>
198    <height>30</height>
199     <legend>VNAV</legend>
200     <binding>
201     <command>nasal</command>
202     <script>bravo.FlDr.set_mode("vnav");</script>
203     </binding>
204    </button>
205
206     <button>
207     <x>1</x>
208     <y>1</y>
209    <width>50</width>
210    <height>30</height>
211     <legend>ALT</legend>
212     <binding>
213     <command>nasal</command>
214     <script>bravo.FlDr.set_mode("alt")</script>
215     </binding>
216     </button>
217
218    <button>
219     <x>1</x>
220     <y>1</y>
221    <width>50</width>
222    <height>30</height>
223     <legend>VS</legend>
224     <binding>
225      <command>nasal</command>
226     <script>bravo.FlDr.set_mode("vs");</script>
227     </binding>
228    </button>
229
230    <button>
231     <x>1</x>
232     <y>1</y>
233    <width>50</width>
234    <height>30</height>
235     <legend>SPD</legend>
236     <binding>
237      <command>nasal</command>
238     <script>bravo.FlDr.set_mode("ias");</script>
239     </binding>
240    </button>
241
242 <!--
243    <button>
244     <x>1</x>
245     <y>1</y>
246    <width>50</width>
247    <height>30</height>
248     <legend>DCS</legend>
249     <binding>
250      <command>nasal</command>
251     <script>bravo.FlDr.set_mode("dcs");</script>
252     </binding>
253    </button>
254 -->
255 </group>
256 </frame>
257
258   <hrule/>
259   <text>
260   <label>Instrument Settings</label>
261   </text>
262
263     <frame>
264     <width>350</width>
265     <height>140</height>
266       <halign>center</halign>
267
268     <text>
269    <x>5</x>
270    <y>100</y>
271     <label>HDG BUG:</label>
272     </text>
273
274     <button>
275    <x>75</x>
276    <y>100</y>
277    <width>35</width>
278    <height>20</height>
279    <legend>&lt;&lt;</legend>
280    <binding>
281     <command>nasal</command>
282     <script>bravo.FlDr.set_hdg_bug(-10)</script>
283    </binding>
284    <binding>
285     <command>dialog-update</command>
286    </binding>
287   </button>
288
289   <button>
290    <x>110</x>
291    <y>100</y>
292    <width>30</width>
293    <height>20</height>
294    <legend>&lt;</legend>
295    <binding>
296     <command>nasal</command>
297     <script>bravo.FlDr.set_hdg_bug(-1)</script>
298    </binding>
299    <binding>
300     <command>dialog-update</command>
301    </binding>
302   </button>
303
304   <input>
305    <x>150</x>
306    <y>100</y>
307    <width>40</width>
308    <height>20</height>
309    <property>autopilot/settings/heading-bug-deg</property>
310    <live>true</live>
311    <binding>
312     <command>dialog-apply</command>
313    </binding>
314   </input>
315
316   <button>
317    <x>200</x>
318    <y>100</y>
319    <width>30</width>
320    <height>20</height>
321    <legend>&gt;</legend>
322    <binding>
323     <command>nasal</command>
324     <script>bravo.FlDr.set_hdg_bug(1)</script>
325    </binding>
326    <binding>
327     <command>dialog-update</command>
328    </binding>
329   </button>
330
331   <button>
332    <x>230</x>
333    <y>100</y>
334    <width>35</width>
335    <height>20</height>
336    <legend>&gt;&gt;</legend>
337    <binding>
338     <command>nasal</command>
339     <script>bravo.FlDr.set_hdg_bug(10)</script>
340    </binding>
341    <binding>
342     <command>dialog-update</command>
343    </binding>
344   </button>
345
346   <button>
347    <x>280</x>
348    <y>100</y>
349    <width>40</width>
350    <height>20</height>
351    <legend>CNTR</legend>
352    <binding>
353     <command>nasal</command>
354     <script>bravo.FlDr.set_hdg_bug(0)</script>
355    </binding>
356    <binding>
357     <command>dialog-update</command>
358    </binding>
359   </button>
360
361 <!-- Course Set -->
362
363     <text>
364    <x>5</x>
365    <y>75</y>
366     <label>CRS:nav</label>
367     </text>
368
369   <text>
370    <x>50</x>
371    <y>75</y>
372    <label>-99.99</label> <!-- placeholder for width -->
373    <format>% 3.0f</format>
374    <property>instrumentation/primus1000/dc550/nav</property>
375    <live>true</live>
376   </text>
377
378     <button>
379    <x>75</x>
380    <y>75</y>
381    <width>35</width>
382    <height>20</height>
383    <legend>&lt;&lt;</legend>
384    <binding>
385     <command>nasal</command>
386     <script>bravo.FlDr.set_course(-10)</script>
387    </binding>
388    <binding>
389     <command>dialog-update</command>
390    </binding>
391   </button>
392
393   <button>
394    <x>110</x>
395    <y>75</y>
396    <width>30</width>
397    <height>20</height>
398    <legend>&lt;</legend>
399    <binding>
400     <command>nasal</command>
401     <script>bravo.FlDr.set_course(-1)</script>
402    </binding>
403    <binding>
404     <command>dialog-update</command>
405    </binding>
406   </button>
407
408   <input>
409    <x>150</x>
410    <y>75</y>
411    <width>40</width>
412    <height>20</height>
413    <property>instrumentation/flightdirector/crs</property>
414    <live>true</live>
415    <binding>
416     <command>dialog-apply</command>
417    </binding>
418   </input>
419
420   <button>
421    <x>200</x>
422    <y>75</y>
423    <width>30</width>
424    <height>20</height>
425    <legend>&gt;</legend>
426    <binding>
427     <command>nasal</command>
428     <script>bravo.FlDr.set_course(1)</script>
429    </binding>
430    <binding>
431     <command>dialog-update</command>
432    </binding>
433   </button>
434
435   <button>
436    <x>230</x>
437    <y>75</y>
438    <width>35</width>
439    <height>20</height>
440    <legend>&gt;&gt;</legend>
441    <binding>
442     <command>nasal</command>
443     <script>bravo.FlDr.set_course(10)</script>
444    </binding>
445    <binding>
446     <command>dialog-update</command>
447    </binding>
448   </button>
449
450   <button>
451    <x>280</x>
452    <y>75</y>
453    <width>40</width>
454    <height>20</height>
455    <legend>CNTR</legend>
456    <binding>
457     <command>nasal</command>
458     <script>bravo.FlDr.set_course(0)</script>
459    </binding>
460    <binding>
461     <command>dialog-update</command>
462    </binding>
463   </button>
464
465 <!-- ALT set -->
466
467     <text>
468    <x>5</x>
469    <y>50</y>
470         <label>ALT SET:</label>
471     </text>
472   
473   <button>
474    <x>75</x>
475    <y>50</y>
476    <width>35</width>
477    <height>20</height>
478    <legend>&lt;&lt;</legend>
479    <binding>
480     <command>nasal</command>
481     <script>bravo.FlDr.preset_altitude(-1000)</script>
482    </binding>
483   </button>
484
485   <button>
486    <x>110</x>
487    <y>50</y>
488    <width>30</width>
489    <height>20</height>
490    <legend>&lt;</legend>
491    <binding>
492     <command>nasal</command>
493     <script>bravo.FlDr.preset_altitude(-100)</script>
494    </binding>
495   </button>
496
497   <input>
498    <x>142</x>
499    <y>50</y>
500    <width>55</width>
501    <height>20</height>
502    <property>autopilot/settings/target-altitude-ft</property>
503    <live>true</live>
504    <binding>
505     <command>dialog-apply</command>
506    </binding>
507   </input>
508
509   <button>
510    <x>200</x>
511    <y>50</y>
512    <width>30</width>
513    <height>20</height>
514    <border>1</border>
515    <legend>&gt;</legend>
516    <binding>
517        <command>nasal</command>
518     <script>bravo.FlDr.preset_altitude(100)</script>
519 </binding>
520   </button>
521
522   <button>
523    <x>230</x>
524    <y>50</y>
525    <width>35</width>
526    <height>20</height>
527    <border>1</border>
528    <legend>&gt;&gt;</legend>
529    <binding>
530     <command>nasal</command>
531     <script>bravo.FlDr.preset_altitude(1000)</script>
532    </binding>
533   </button>
534
535   <button>
536    <x>275</x>
537    <y>50</y>
538    <width>60</width>
539    <height>20</height>
540    <border>1</border>
541    <legend>RESET</legend>
542    <binding>
543     <command>nasal</command>
544     <script>bravo.FlDr.preset_altitude(0)</script>
545    </binding>
546    <binding>
547     <command>dialog-update</command>
548    </binding>
549   </button>
550
551
552 <!-- IAS set -->
553
554     <text>
555    <x>5</x>
556    <y>25</y>
557         <label>IAS bug:</label>
558     </text>
559   
560   <button>
561    <x>75</x>
562    <y>25</y>
563    <width>35</width>
564    <height>20</height>
565    <legend>&lt;&lt;</legend>
566    <binding>
567     <command>nasal</command>
568     <script>bravo.FlDr.ias_set(-10)</script>
569    </binding>
570   </button>
571
572   <button>
573    <x>110</x>
574    <y>25</y>
575    <width>30</width>
576    <height>20</height>
577    <legend>&lt;</legend>
578    <binding>
579     <command>nasal</command>
580     <script>bravo.FlDr.ias_set(-1)</script>
581    </binding>
582   </button>
583
584   <input>
585    <x>142</x>
586    <y>25</y>
587    <width>55</width>
588    <height>20</height>
589    <property>autopilot/settings/target-speed-kt</property>
590    <live>true</live>
591    <binding>
592     <command>dialog-apply</command>
593    </binding>
594   </input>
595
596   <button>
597    <x>200</x>
598    <y>25</y>
599    <width>30</width>
600    <height>20</height>
601    <border>1</border>
602    <legend>&gt;</legend>
603    <binding>
604        <command>nasal</command>
605     <script>bravo.FlDr.ias_set(1)</script>
606 </binding>
607   </button>
608
609   <button>
610    <x>230</x>
611    <y>25</y>
612    <width>35</width>
613    <height>20</height>
614    <border>1</border>
615    <legend>&gt;&gt;</legend>
616    <binding>
617     <command>nasal</command>
618     <script>bravo.FlDr.ias_set(10)</script>
619    </binding>
620   </button>
621
622   <button>
623    <x>275</x>
624    <y>25</y>
625    <width>60</width>
626    <height>20</height>
627    <border>1</border>
628    <legend>RESET</legend>
629    <binding>
630     <command>nasal</command>
631     <script>bravo.FlDr.ias_set(0)</script>
632    </binding>
633    <binding>
634     <command>dialog-update</command>
635    </binding>
636   </button>
637
638 </frame>
639
640 <hrule/>
641
642 <!-- AP control -->
643       <halign>center</halign>
644     <text>
645         <label>Autopilot Control</label>
646     </text>
647
648     <frame><!-- Pitch Wheel-->
649    <height>100</height>
650
651     <button>
652    <x>10</x>
653    <y>75</y>
654    <width>50</width>
655    <height>20</height>
656    <legend>DN</legend>
657    <binding>
658     <command>nasal</command>
659     <script>bravo.FlDr.pitch_wheel(-1)</script>
660    </binding>
661   </button>
662
663   <input>
664    <x>10</x>
665    <y>50</y>
666    <width>60</width>
667    <height>20</height>
668    <label>V/S</label>
669    <property>autopilot/settings/vertical-speed-fpm</property>
670    <live>true</live>
671    <binding>
672     <command>dialog-apply</command>
673    </binding>
674   </input>
675
676   <input>
677    <x>10</x>
678    <y>30</y>
679    <width>60</width>
680    <height>20</height>
681    <label>PITCH</label>
682    <property>autopilot/settings/target-pitch-deg</property>
683    <live>true</live>
684    <binding>
685     <command>dialog-apply</command>
686    </binding>
687   </input>
688
689     <button>
690    <x>10</x>
691    <y>5</y>
692    <width>50</width>
693    <height>20</height>
694    <legend>UP</legend>
695    <binding>
696     <command>nasal</command>
697     <script>bravo.FlDr.pitch_wheel(1)</script>
698    </binding>
699   </button>
700
701 <button>
702    <x>140</x>
703    <y>65</y>
704    <width>70</width>
705    <height>30</height>
706    <legend>Low Bank</legend>
707    <binding>
708     <command>nasal</command>
709     <script>bravo.FlDr.toggle_autopilot("bank");</script>
710     </binding>
711     </button>
712
713   <text>
714    <x>210</x>
715    <y>70</y>
716    <label>99.99</label> <!-- placeholder for width -->
717    <format>% 2.0f *</format>
718    <property>instrumentation/flightdirector/roll-max</property>
719    <live>true</live>
720   </text>
721
722 <button>
723    <x>120</x>
724    <y>25</y>
725    <width>50</width>
726    <height>30</height>
727    <legend>A / P</legend>
728    <binding>
729         <command>nasal</command>
730         <script>bravo.FlDr.toggle_autopilot("ap");</script>
731     </binding>
732     </button>
733
734   <checkbox>
735    <x>120</x>
736    <y>5</y>
737    <width>14</width>
738    <height>14</height>
739    <label>OFF</label>
740    <property>autopilot/locks/passive-mode</property>
741    <live>true</live>
742    <binding>
743     <command>dialog-update</command>
744    </binding>
745   </checkbox>
746
747   <checkbox>
748    <x>180</x>
749    <y>5</y>
750    <width>14</width>
751    <height>14</height>
752    <label>ON</label>
753    <property>autopilot/locks/yaw-damper</property>
754    <live>true</live>
755    <binding>
756     <command>dialog-update</command>
757    </binding>
758   </checkbox>
759
760 <button>
761    <x>180</x>
762    <y>25</y>
763    <width>50</width>
764    <height>30</height>
765    <legend>Y / D</legend>
766    <binding>
767         <command>nasal</command>
768         <script>bravo.FlDr.toggle_autopilot("yd");</script>
769     </binding>
770     </button>
771
772     <text>
773    <x>270</x>
774    <y>75</y>
775     <label>Roll Knob</label>
776     </text>
777
778   <dial>
779    <x>270</x>
780    <y>20</y>
781    <width>60</width>
782    <property>autopilot/settings/target-roll-deg</property>
783    <min>-30</min>
784    <max>30</max>
785    <wrap>false</wrap>
786    <live>true</live>
787    <binding>
788    <command>dialog-apply</command>
789    </binding>
790   </dial>
791
792   <text>
793    <x>275</x>
794    <y>2</y>
795    <label>-99.99</label> <!-- placeholder for width -->
796    <format>% 2.1f</format>
797    <property>autopilot/settings/target-roll-deg</property>
798    <live>true</live>
799   </text>
800
801     </frame>
802
803 <hrule/>
804
805   <button>
806     <legend>Close</legend>
807     <default>true</default>
808     <key>Esc</key>
809     <padding>10</padding>
810     <binding>
811       <command>dialog-apply</command>
812     </binding>
813     <binding>
814       <command>dialog-close</command>
815     </binding>
816   </button>
817
818 </PropertyList>