The new led font is now antialiased (`a la Andy) and has
[fg:toms-fgdata.git] / Aircraft / Instruments / autopilot.xml
1 <?xml version="1.0"?>
2
3 <!--
4 Modularized lighted buttons added March 5 2001
5 by John Check, <j4strngs@rockfish.net>
6 Wing leveler and climb/descent added Feb 2001
7 by Curtis Olson, <curt@infoplane.com>
8 APR by Jim Wilson <jimw@kelcomaine.com> Feb 2002
9 _______________________________________________________________________________
10 Default autopilot instrument.
11
12 Started summer 2000 by David Megginson, david@megginson.com.
13
14 This is an instrument configuration file for the open-source flight
15 simulator FlightGear (www.flightgear.org).  The file is an XML-encoded
16 FlightGear property list defining the instrument's layers and actions.
17
18 Each instrument is composed of layers stacked on top of each other.
19 A layer may be a texture (with transparent parts to show the layers
20 underneath), text, or a special layer that switches between two
21 others (say, to turn an indicator light on or off).  Each layer can
22 move independently in proportion to a property value, and text
23 can be generated from property values as well: all of the layer's
24 movements are defined as transformations.
25
26 Actions are hotspots on the instrument that will respond to a mouse
27 click.  Actions always modify the values of properties, either by
28 adjusting them, toggling them, or swaping them with other
29 properties' values.
30 -->
31
32 <PropertyList>
33  <name>autopilot</name>
34  <w-base>256</w-base>
35  <h-base>32</h-base>
36
37  <layers>
38
39   <layer>
40    <name>background</name>
41    <texture>
42     <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
43     <x1>0.0</x1>
44     <x2>1.0</x2>
45     <y1>0.375</y1>
46     <y2>0.5</y2>
47    </texture>
48    <w>256</w>
49    <h>32</h>
50   </layer>
51
52   <layer>
53    <name>WL button</name>
54    <type>switch</type>
55    <property>/autopilot/locks/wing-leveler</property>
56    <layer>
57     <name>WL on</name>
58     <texture>
59      <path>Aircraft/Instruments/Textures/blister.rgb</path>
60      <x1>0.0</x1>
61      <x2>0.21875</x2>
62      <y1>0.328125</y1>
63      <y2>0.4921875</y2>
64     </texture>
65     <w>32</w>
66     <h>16</h>
67    </layer>
68    <layer>
69     <name>WL off</name>
70     <texture>
71      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
72      <x1>0.0</x1>
73      <x2>0.21875</x2>
74      <y1>0.1640625</y1>
75      <y2>0.328125</y2>
76     </texture>
77     <w>32</w>
78     <h>16</h>
79    </layer>
80    <transformations>
81     <transformation>
82      <type>x-shift</type>
83      <offset>-76</offset>
84     </transformation>
85    </transformations>
86   </layer>
87   <layer>
88     <name>WL top</name>
89     <texture>
90      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
91      <x1>0.0</x1>
92      <x2>0.21484375</x2>
93      <y1>0.0</y1>
94      <y2>0.16796875</y2>
95     </texture>
96     <w>32</w>
97     <h>16</h>
98    <transformations>
99     <transformation>
100      <type>x-shift</type>
101      <offset>-76</offset>
102     </transformation>
103    </transformations>
104   </layer> 
105   <layer>
106    <name>WL label</name>
107     <texture>
108      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
109      <x1>0.421875</x1>
110      <x2>0.546875</x2>
111      <y1>0.0675</y1>
112      <y2>0.125</y2>
113     </texture>
114     <w>20</w>
115     <h>8</h>
116    <transformations>
117     <transformation>
118      <type>x-shift</type>
119      <offset>-76</offset>
120     </transformation>
121    </transformations>
122    </layer>  
123
124   <layer>
125    <name>HDG button</name>
126    <type>switch</type>
127    <property>/autopilot/locks/heading</property>
128    <layer>
129     <name>HDG on</name>
130     <texture>
131      <path>Aircraft/Instruments/Textures/blister.rgb</path>
132      <x1>0.0</x1>
133      <x2>0.21484375</x2>
134      <y1>0.328125</y1>
135      <y2>0.4921875</y2>
136     </texture>
137     <w>32</w>
138     <h>16</h>
139    </layer>
140    <layer>
141     <name>HDG off</name>
142     <texture>
143      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
144      <x1>0.0</x1>
145      <x2>0.21484375</x2>
146      <y1>0.1640625</y1>
147      <y2>0.328125</y2>
148     </texture>
149     <w>32</w>
150     <h>16</h>
151    </layer>
152    <transformations>
153     <transformation>
154      <type>x-shift</type>
155      <offset>-44</offset>
156     </transformation>
157    </transformations>
158   </layer>
159   <layer>
160     <name>HDG top</name>
161     <texture>
162      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
163      <x1>0.0</x1>
164      <x2>0.21484375</x2>
165      <y1>0.0</y1>
166      <y2>0.16796875</y2>
167     </texture>
168     <w>32</w>
169     <h>16</h>
170    <transformations>
171     <transformation>
172      <type>x-shift</type>
173      <offset>-44</offset>
174     </transformation>
175    </transformations>
176   </layer> 
177   <layer>
178    <name>HDG label</name>
179     <texture>
180      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
181      <x1>0.4140625</x1>
182      <x2>0.609375</x2>
183      <y1>0.0078125</y1>
184      <y2>0.0703125</y2>
185     </texture>
186     <w>20</w>
187     <h>8</h>
188    <transformations>
189     <transformation>
190      <type>x-shift</type>
191      <offset>-44</offset>
192     </transformation>
193    </transformations>
194    </layer>  
195
196   <layer>
197    <name>NAV button</name>
198    <type>switch</type>
199    <property>/autopilot/locks/nav[0]</property>
200    <layer>
201     <name>NAV on</name>
202     <texture>
203      <path>Aircraft/Instruments/Textures/blister.rgb</path>
204      <x1>0.0</x1>
205      <x2>0.21484375</x2>
206      <y1>0.328125</y1>
207      <y2>0.4921875</y2>
208     </texture>
209     <w>32</w>
210     <h>16</h>
211    </layer>
212    <layer>
213     <name>NAV off</name>
214     <texture>
215      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
216      <x1>0.0</x1>
217      <x2>0.21484375</x2>
218      <y1>0.1640625</y1>
219      <y2>0.328125</y2>
220     </texture>
221     <w>32</w>
222     <h>16</h>
223    </layer>
224    <transformations>
225     <transformation>
226      <type>x-shift</type>
227      <offset>-12</offset>
228     </transformation>
229    </transformations>
230   </layer>
231   <layer>
232     <name>NAV top</name>
233     <texture>
234      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
235      <x1>0.0</x1>
236      <x2>0.21484375</x2>
237      <y1>0.0</y1>
238      <y2>0.16796875</y2>
239     </texture>
240     <w>32</w>
241     <h>16</h>
242    <transformations>
243     <transformation>
244      <type>x-shift</type>
245      <offset>-12</offset>
246     </transformation>
247    </transformations>
248   </layer> 
249   <layer>
250    <name>NAV label</name>
251     <texture>
252      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
253      <x1>0.21875</x1>
254      <x2>0.421875</x2>
255      <y1>0.0078125</y1>
256      <y2>0.0703125</y2>
257     </texture>
258     <w>20</w>
259     <h>8</h>
260    <transformations>
261     <transformation>
262      <type>x-shift</type>
263      <offset>-12</offset>
264     </transformation>
265    </transformations>
266    </layer>  
267
268   <layer>
269    <name>APR button</name>
270    <type>switch</type>
271    <property>/autopilot/locks/glide-slope[0]</property>
272    <layer>
273     <name>APR on</name>
274     <texture>
275      <path>Aircraft/Instruments/Textures/blister.rgb</path>
276      <x1>0.0</x1>
277      <x2>0.21484375</x2>
278      <y1>0.328125</y1>
279      <y2>0.4921875</y2>
280     </texture>
281     <w>32</w>
282     <h>16</h>
283    </layer>
284    <layer>
285     <name>APR off</name>
286     <texture>
287      <path>Aircraft/Instruments/Textures/blister.rgb</path>
288      <x1>0.0</x1>
289      <x2>0.21484375</x2>
290      <y1>0.1640625</y1>
291      <y2>0.328125</y2>
292     </texture>
293     <w>32</w>
294     <h>16</h>
295    </layer>
296    <transformations>
297     <transformation>
298      <type>x-shift</type>
299      <offset>20</offset>
300     </transformation>
301    </transformations>
302   </layer>
303   <layer>
304     <name>APR top</name>
305     <texture>
306      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
307      <x1>0.0</x1>
308      <x2>0.21484375</x2>
309      <y1>0.0</y1>
310      <y2>0.16796875</y2>
311     </texture>
312     <w>32</w>
313     <h>16</h>
314    <transformations>
315     <transformation>
316      <type>x-shift</type>
317      <offset>20</offset>
318     </transformation>
319    </transformations>
320   </layer> 
321   <layer>
322    <name>APR label</name>
323     <texture>
324      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
325      <x1>0.6171875</x1>
326      <x2>0.796875</x2>
327      <y1>0.0078125</y1>
328      <y2>0.0703125</y2>
329     </texture>
330     <w>20</w>
331     <h>8</h>
332    <transformations>
333     <transformation>
334      <type>x-shift</type>
335      <offset>20</offset>
336     </transformation>
337    </transformations>
338    </layer>
339
340   <layer>
341    <name>ALT button</name>
342    <type>switch</type>
343    <property>/autopilot/locks/altitude</property>
344    <layer>
345     <name>ALT on</name>
346     <texture>
347      <path>Aircraft/Instruments/Textures/blister.rgb</path>
348      <x1>0.0</x1>
349      <x2>0.21484375</x2>
350      <y1>0.328125</y1>
351      <y2>0.4921875</y2>
352     </texture>
353     <w>32</w>
354     <h>16</h>
355    </layer>
356    <layer>
357     <name>ALT off</name>
358     <texture>
359      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
360      <x1>0.0</x1>
361      <x2>0.21484375</x2>
362      <y1>0.1640625</y1>
363      <y2>0.328125</y2>
364     </texture>
365     <w>32</w>
366     <h>16</h>
367    </layer>
368    <transformations>
369     <transformation>
370      <type>x-shift</type>
371      <offset>52</offset>
372     </transformation>
373    </transformations>
374   </layer>
375   <layer>
376     <name>ALT top</name>
377     <texture>
378      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
379      <x1>0.0</x1>
380      <x2>0.21484375</x2>
381      <y1>0.0</y1>
382      <y2>0.16796875</y2>
383     </texture>
384     <w>32</w>
385     <h>16</h>
386    <transformations>
387     <transformation>
388      <type>x-shift</type>
389      <offset>52</offset>
390     </transformation>
391    </transformations>
392   </layer> 
393   <layer>
394    <name>ALT label</name>
395     <texture>
396      <path>Aircraft/Instruments/Textures/blister.rgb</path> 
397      <x1>0.21875</x1>
398      <x2>0.421875</x2>
399      <y1>0.0675</y1>
400      <y2>0.125</y2>
401     </texture>
402     <w>20</w>
403     <h>8</h>
404    <transformations>
405     <transformation>
406      <type>x-shift</type>
407      <offset>52</offset>
408     </transformation>
409    </transformations>
410    </layer>  
411
412   <layer>
413    <name>button</name>
414    <texture>
415     <path>Aircraft/Instruments/Textures/blister.rgb</path>
416     <x1>0.0</x1>
417     <x2>0.25</x2>
418     <y1>0.75</y1>
419     <y2>1.0</y2>
420    </texture>
421    <w>15</w>
422    <h>15</h>
423    <transformations>
424     <transformation>
425      <type>x-shift</type>
426      <offset>76</offset>
427     </transformation>
428    </transformations>
429   </layer>
430   <layer>
431    <name>target climb rate</name>
432    <type>text</type>
433    <font>led</font>
434    <point-size>5</point-size>
435    <color>
436     <red>1.0</red>
437     <green>0.5</green>
438     <blue>0.0</blue>
439    </color>
440    <chunks>
441     <chunk>
442      <type>number-value</type>
443      <property>/autopilot/settings/altitude-ft</property>
444      <format>%05.0f</format>
445     </chunk>
446    </chunks>
447    <transformations>
448     <transformation>
449      <type>x-shift</type>
450      <offset>85</offset>
451     </transformation>
452     <transformation>
453      <type>y-shift</type>
454      <offset>-5</offset>
455     </transformation>
456    </transformations>
457   </layer>
458   
459  </layers>
460
461  <actions>
462
463   <action>
464    <name>toggle wing leveler lock</name>
465    <button>0</button>
466    <x>-92</x>
467    <y>-8</y>
468    <w>32</w>
469    <h>16</h>
470    <binding>
471     <command>property-toggle</command>
472     <property>/autopilot/locks/wing-leveler</property>
473    </binding>
474   </action>
475
476   <action>
477    <name>toggle heading lock</name>
478    <button>0</button>
479    <x>-60</x>
480    <y>-8</y>
481    <w>32</w>
482    <h>16</h>
483    <binding>
484     <command>property-toggle</command>
485     <property>/autopilot/locks/heading</property>
486    </binding>
487   </action>
488
489   <action>
490    <name>toggle nav1 lock</name>
491    <button>0</button>
492    <x>-28</x>
493    <y>-8</y>
494    <w>32</w>
495    <h>16</h>
496    <binding>
497     <command>property-toggle</command>
498     <property>/autopilot/locks/nav[0]</property>
499    </binding>
500   </action>
501
502   <action>
503    <name>toggle apr/nav1 lock</name>
504    <button>0</button>
505    <x>4</x>
506    <y>-8</y>
507    <w>32</w>
508    <h>16</h>
509    <binding>
510     <command>property-toggle</command>
511     <property>/autopilot/locks/glide-slope[0]</property>
512    </binding>
513   </action>
514
515   <action>
516    <name>toggle altitude lock</name>
517    <button>0</button>
518    <x>36</x>
519    <y>-8</y>
520    <w>32</w>
521    <h>16</h>
522    <binding>
523     <command>property-toggle</command>
524     <property>/autopilot/locks/altitude</property>
525    </binding>
526   </action>
527
528   <action>
529    <name>decrease climb rate</name>
530    <button>0</button>
531    <x>70</x>
532    <y>-8</y>
533    <w>8</w>
534    <h>16</h>
535    <binding>
536     <command>property-adjust</command>
537     <property>/autopilot/settings/altitude-ft</property>
538     <step>-100</step>
539     <min>0</min>
540     <max>99900</max>
541     <wrap>0</wrap>
542    </binding>
543   </action>
544
545   <action>
546    <name>large decrease climb rate</name>
547    <button>1</button>
548    <x>70</x>
549    <y>-8</y>
550    <w>8</w>
551    <h>16</h>
552    <binding>
553     <command>property-adjust</command>
554     <property>/autopilot/settings/altitude-ft</property>
555     <step>-1000</step>
556     <min>0</min>
557     <max>99900</max>
558     <wrap>0</wrap>
559    </binding>
560   </action>
561
562   <action>
563    <name>increase climb rate</name>
564    <button>0</button>
565    <x>78</x>
566    <y>-8</y>
567    <w>8</w>
568    <h>16</h>
569    <binding>
570     <command>property-adjust</command>
571     <property>/autopilot/settings/altitude-ft</property>
572     <step>100</step>
573     <min>0</min>
574     <max>99900</max>
575     <wrap>0</wrap>
576    </binding>
577   </action>
578
579   <action>
580    <name>large increase climb rate</name>
581    <button>1</button>
582    <x>78</x>
583    <y>-8</y>
584    <w>8</w>
585    <h>16</h>
586    <binding>
587     <command>property-adjust</command>
588     <property>/autopilot/settings/altitude-ft</property>
589     <step>1000</step>
590     <min>0</min>
591     <max>99900</max>
592     <wrap>0</wrap>
593    </binding>
594   </action>
595
596  </actions>
597
598 </PropertyList>
599
600