Debian Codegraph @

Aircraft/Instruments/autopilot.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Modularized lighted buttons added March 5 2001
5 by John Check, <[email protected]>
6 Wing leveler and climb/descent added Feb 2001
7 by Curtis Olson, <[email protected]>
8 APR by Jim Wilson <[email protected]> Feb 2002
9 _______________________________________________________________________________
10 Default autopilot instrument.
11
12 Started summer 2000 by David Megginson, [email protected].
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 <layer>
56 <condition>
57 <equals>
58 <property>/autopilot/locks/heading</property>
59 <value>wing-leveler</value>
60 </equals>
61 </condition>
62 <name>WL on</name>
63 <texture>
64 <path>Aircraft/Instruments/Textures/blister.rgb</path>
65 <x1>0.0</x1>
66 <x2>0.21875</x2>
67 <y1>0.328125</y1>
68 <y2>0.4921875</y2>
69 </texture>
70 <w>32</w>
71 <h>16</h>
72 </layer>
73 <layer>
74 <name>WL off</name>
75 <texture>
76 <path>Aircraft/Instruments/Textures/blister.rgb</path>
77 <x1>0.0</x1>
78 <x2>0.21875</x2>
79 <y1>0.1640625</y1>
80 <y2>0.328125</y2>
81 </texture>
82 <w>32</w>
83 <h>16</h>
84 </layer>
85 <transformations>
86 <transformation>
87 <type>x-shift</type>
88 <offset>-76</offset>
89 </transformation>
90 </transformations>
91 </layer>
92 <layer>
93 <name>WL top</name>
94 <texture>
95 <path>Aircraft/Instruments/Textures/blister.rgb</path>
96 <x1>0.0</x1>
97 <x2>0.21484375</x2>
98 <y1>0.0</y1>
99 <y2>0.16796875</y2>
100 </texture>
101 <w>32</w>
102 <h>16</h>
103 <transformations>
104 <transformation>
105 <type>x-shift</type>
106 <offset>-76</offset>
107 </transformation>
108 </transformations>
109 </layer>
110 <layer>
111 <name>WL label</name>
112 <texture>
113 <path>Aircraft/Instruments/Textures/blister.rgb</path>
114 <x1>0.421875</x1>
115 <x2>0.546875</x2>
116 <y1>0.0675</y1>
117 <y2>0.125</y2>
118 </texture>
119 <w>20</w>
120 <h>8</h>
121 <transformations>
122 <transformation>
123 <type>x-shift</type>
124 <offset>-76</offset>
125 </transformation>
126 </transformations>
127 </layer>
128
129 <layer>
130 <name>HDG button</name>
131 <type>switch</type>
132 <layer>
133 <condition>
134 <equals>
135 <property>/autopilot/locks/heading</property>
136 <value>dg-heading-hold</value>
137 </equals>
138 </condition>
139 <name>HDG on</name>
140 <texture>
141 <path>Aircraft/Instruments/Textures/blister.rgb</path>
142 <x1>0.0</x1>
143 <x2>0.21484375</x2>
144 <y1>0.328125</y1>
145 <y2>0.4921875</y2>
146 </texture>
147 <w>32</w>
148 <h>16</h>
149 </layer>
150 <layer>
151 <name>HDG off</name>
152 <texture>
153 <path>Aircraft/Instruments/Textures/blister.rgb</path>
154 <x1>0.0</x1>
155 <x2>0.21484375</x2>
156 <y1>0.1640625</y1>
157 <y2>0.328125</y2>
158 </texture>
159 <w>32</w>
160 <h>16</h>
161 </layer>
162 <transformations>
163 <transformation>
164 <type>x-shift</type>
165 <offset>-44</offset>
166 </transformation>
167 </transformations>
168 </layer>
169 <layer>
170 <name>HDG top</name>
171 <texture>
172 <path>Aircraft/Instruments/Textures/blister.rgb</path>
173 <x1>0.0</x1>
174 <x2>0.21484375</x2>
175 <y1>0.0</y1>
176 <y2>0.16796875</y2>
177 </texture>
178 <w>32</w>
179 <h>16</h>
180 <transformations>
181 <transformation>
182 <type>x-shift</type>
183 <offset>-44</offset>
184 </transformation>
185 </transformations>
186 </layer>
187 <layer>
188 <name>HDG label</name>
189 <texture>
190 <path>Aircraft/Instruments/Textures/blister.rgb</path>
191 <x1>0.4140625</x1>
192 <x2>0.609375</x2>
193 <y1>0.0078125</y1>
194 <y2>0.0703125</y2>
195 </texture>
196 <w>20</w>
197 <h>8</h>
198 <transformations>
199 <transformation>
200 <type>x-shift</type>
201 <offset>-44</offset>
202 </transformation>
203 </transformations>
204 </layer>
205
206 <layer>
207 <name>NAV button</name>
208 <type>switch</type>
209 <layer>
210 <condition>
211 <equals>
212 <property>/autopilot/locks/heading</property>
213 <value>nav1-hold</value>
214 </equals>
215 </condition>
216 <name>NAV on</name>
217 <texture>
218 <path>Aircraft/Instruments/Textures/blister.rgb</path>
219 <x1>0.0</x1>
220 <x2>0.21484375</x2>
221 <y1>0.328125</y1>
222 <y2>0.4921875</y2>
223 </texture>
224 <w>32</w>
225 <h>16</h>
226 </layer>
227 <layer>
228 <name>NAV off</name>
229 <texture>
230 <path>Aircraft/Instruments/Textures/blister.rgb</path>
231 <x1>0.0</x1>
232 <x2>0.21484375</x2>
233 <y1>0.1640625</y1>
234 <y2>0.328125</y2>
235 </texture>
236 <w>32</w>
237 <h>16</h>
238 </layer>
239 <transformations>
240 <transformation>
241 <type>x-shift</type>
242 <offset>-12</offset>
243 </transformation>
244 </transformations>
245 </layer>
246 <layer>
247 <name>NAV top</name>
248 <texture>
249 <path>Aircraft/Instruments/Textures/blister.rgb</path>
250 <x1>0.0</x1>
251 <x2>0.21484375</x2>
252 <y1>0.0</y1>
253 <y2>0.16796875</y2>
254 </texture>
255 <w>32</w>
256 <h>16</h>
257 <transformations>
258 <transformation>
259 <type>x-shift</type>
260 <offset>-12</offset>
261 </transformation>
262 </transformations>
263 </layer>
264 <layer>
265 <name>NAV label</name>
266 <texture>
267 <path>Aircraft/Instruments/Textures/blister.rgb</path>
268 <x1>0.21875</x1>
269 <x2>0.421875</x2>
270 <y1>0.0078125</y1>
271 <y2>0.0703125</y2>
272 </texture>
273 <w>20</w>
274 <h>8</h>
275 <transformations>
276 <transformation>
277 <type>x-shift</type>
278 <offset>-12</offset>
279 </transformation>
280 </transformations>
281 </layer>
282
283 <layer>
284 <name>APR button</name>
285 <type>switch</type>
286 <layer>
287 <condition>
288 <equals>
289 <property>/autopilot/locks/altitude</property>
290 <value>gs1-hold</value>
291 </equals>
292 </condition>
293 <name>APR on</name>
294 <texture>
295 <path>Aircraft/Instruments/Textures/blister.rgb</path>
296 <x1>0.0</x1>
297 <x2>0.21484375</x2>
298 <y1>0.328125</y1>
299 <y2>0.4921875</y2>
300 </texture>
301 <w>32</w>
302 <h>16</h>
303 </layer>
304 <layer>
305 <name>APR off</name>
306 <texture>
307 <path>Aircraft/Instruments/Textures/blister.rgb</path>
308 <x1>0.0</x1>
309 <x2>0.21484375</x2>
310 <y1>0.1640625</y1>
311 <y2>0.328125</y2>
312 </texture>
313 <w>32</w>
314 <h>16</h>
315 </layer>
316 <transformations>
317 <transformation>
318 <type>x-shift</type>
319 <offset>20</offset>
320 </transformation>
321 </transformations>
322 </layer>
323 <layer>
324 <name>APR top</name>
325 <texture>
326 <path>Aircraft/Instruments/Textures/blister.rgb</path>
327 <x1>0.0</x1>
328 <x2>0.21484375</x2>
329 <y1>0.0</y1>
330 <y2>0.16796875</y2>
331 </texture>
332 <w>32</w>
333 <h>16</h>
334 <transformations>
335 <transformation>
336 <type>x-shift</type>
337 <offset>20</offset>
338 </transformation>
339 </transformations>
340 </layer>
341 <layer>
342 <name>APR label</name>
343 <texture>
344 <path>Aircraft/Instruments/Textures/blister.rgb</path>
345 <x1>0.6171875</x1>
346 <x2>0.796875</x2>
347 <y1>0.0078125</y1>
348 <y2>0.0703125</y2>
349 </texture>
350 <w>20</w>
351 <h>8</h>
352 <transformations>
353 <transformation>
354 <type>x-shift</type>
355 <offset>20</offset>
356 </transformation>
357 </transformations>
358 </layer>
359
360 <layer>
361 <name>ALT button</name>
362 <type>switch</type>
363 <layer>
364 <condition>
365 <equals>
366 <property>/autopilot/locks/altitude</property>
367 <value>altitude-hold</value>
368 </equals>
369 </condition>
370 <name>ALT on</name>
371 <texture>
372 <path>Aircraft/Instruments/Textures/blister.rgb</path>
373 <x1>0.0</x1>
374 <x2>0.21484375</x2>
375 <y1>0.328125</y1>
376 <y2>0.4921875</y2>
377 </texture>
378 <w>32</w>
379 <h>16</h>
380 </layer>
381 <layer>
382 <name>ALT off</name>
383 <texture>
384 <path>Aircraft/Instruments/Textures/blister.rgb</path>
385 <x1>0.0</x1>
386 <x2>0.21484375</x2>
387 <y1>0.1640625</y1>
388 <y2>0.328125</y2>
389 </texture>
390 <w>32</w>
391 <h>16</h>
392 </layer>
393 <transformations>
394 <transformation>
395 <type>x-shift</type>
396 <offset>52</offset>
397 </transformation>
398 </transformations>
399 </layer>
400 <layer>
401 <name>ALT top</name>
402 <texture>
403 <path>Aircraft/Instruments/Textures/blister.rgb</path>
404 <x1>0.0</x1>
405 <x2>0.21484375</x2>
406 <y1>0.0</y1>
407 <y2>0.16796875</y2>
408 </texture>
409 <w>32</w>
410 <h>16</h>
411 <transformations>
412 <transformation>
413 <type>x-shift</type>
414 <offset>52</offset>
415 </transformation>
416 </transformations>
417 </layer>
418 <layer>
419 <name>ALT label</name>
420 <texture>
421 <path>Aircraft/Instruments/Textures/blister.rgb</path>
422 <x1>0.21875</x1>
423 <x2>0.421875</x2>
424 <y1>0.0675</y1>
425 <y2>0.125</y2>
426 </texture>
427 <w>20</w>
428 <h>8</h>
429 <transformations>
430 <transformation>
431 <type>x-shift</type>
432 <offset>52</offset>
433 </transformation>
434 </transformations>
435 </layer>
436
437 <layer>
438 <name>button</name>
439 <texture>
440 <path>Aircraft/Instruments/Textures/blister.rgb</path>
441 <x1>0.0</x1>
442 <x2>0.25</x2>
443 <y1>0.75</y1>
444 <y2>1.0</y2>
445 </texture>
446 <w>15</w>
447 <h>15</h>
448 <transformations>
449 <transformation>
450 <type>x-shift</type>
451 <offset>76</offset>
452 </transformation>
453 </transformations>
454 </layer>
455 <layer>
456 <name>target climb rate</name>
457 <type>text</type>
458 <font>led</font>
459 <point-size>5</point-size>
460 <color>
461 <red>1.0</red>
462 <green>0.5</green>
463 <blue>0.0</blue>
464 </color>
465 <chunks>
466 <chunk>
467 <type>number-value</type>
468 <property>/autopilot/settings/target-altitude-ft</property>
469 <format>%05.0f</format>
470 </chunk>
471 </chunks>
472 <transformations>
473 <transformation>
474 <type>x-shift</type>
475 <offset>85</offset>
476 </transformation>
477 <transformation>
478 <type>y-shift</type>
479 <offset>-5</offset>
480 </transformation>
481 </transformations>
482 </layer>
483
484 </layers>
485
486 <actions>
487
488 <action>
489 <name>toggle wing leveler lock</name>
490 <button>0</button>
491 <x>-92</x>
492 <y>-8</y>
493 <w>32</w>
494 <h>16</h>
495 <binding>
496 <command>nasal</command>
497 <script>
498 node = props.globals.getNode("/autopilot/locks/heading", 1);
499 if ( node.getValue() == "wing-leveler" ) {
500 node.setValue( "" );
501 } else {
502 node.setValue( "wing-leveler" );
503 }
504 </script>
505 </binding>
506 </action>
507
508 <action>
509 <name>toggle heading lock</name>
510 <button>0</button>
511 <x>-60</x>
512 <y>-8</y>
513 <w>32</w>
514 <h>16</h>
515 <binding>
516 <command>nasal</command>
517 <script>
518 node = props.globals.getNode("/autopilot/locks/heading", 1);
519 if ( node.getValue() == "dg-heading-hold" ) {
520 node.setValue( "" );
521 } else {
522 node.setValue( "dg-heading-hold" );
523 }
524 </script>
525 </binding>
526 </action>
527
528 <action>
529 <name>toggle nav1 lock</name>
530 <button>0</button>
531 <x>-28</x>
532 <y>-8</y>
533 <w>32</w>
534 <h>16</h>
535 <binding>
536 <command>nasal</command>
537 <script>
538 node = props.globals.getNode("/autopilot/locks/heading", 1);
539 if ( node.getValue() == "nav1-hold" ) {
540 node.setValue( "" );
541 } else {
542 node.setValue( "nav1-hold" );
543 }
544 </script>
545 </binding>
546 </action>
547
548 <action>
549 <name>toggle apr/nav1 lock</name>
550 <button>0</button>
551 <x>4</x>
552 <y>-8</y>
553 <w>32</w>
554 <h>16</h>
555 <binding>
556 <command>nasal</command>
557 <script>
558 node = props.globals.getNode("/autopilot/locks/altitude", 1);
559 if ( node.getValue() == "gs1-hold" ) {
560 node.setValue( "" );
561 } else {
562 node.setValue( "gs1-hold" );
563 }
564 </script>
565 </binding>
566 </action>
567
568 <action>
569 <name>toggle altitude lock</name>
570 <button>0</button>
571 <x>36</x>
572 <y>-8</y>
573 <w>32</w>
574 <h>16</h>
575 <binding>
576 <command>nasal</command>
577 <script>
578 node = props.globals.getNode("/autopilot/locks/altitude", 1);
579 if ( node.getValue() == "altitude-hold" ) {
580 node.setValue( "" );
581 } else {
582 node.setValue( "altitude-hold" );
583 }
584 </script>
585 </binding>
586 </action>
587
588 <action>
589 <name>decrease climb rate</name>
590 <button>0</button>
591 <x>70</x>
592 <y>-8</y>
593 <w>8</w>
594 <h>16</h>
595 <binding>
596 <command>property-adjust</command>
597 <property>/autopilot/settings/target-altitude-ft</property>
598 <step>-100</step>
599 <min>0</min>
600 <max>99900</max>
601 <wrap>0</wrap>
602 </binding>
603 </action>
604
605 <action>
606 <name>large decrease climb rate</name>
607 <button>1</button>
608 <x>70</x>
609 <y>-8</y>
610 <w>8</w>
611 <h>16</h>
612 <binding>
613 <command>property-adjust</command>
614 <property>/autopilot/settings/target-altitude-ft</property>
615 <step>-1000</step>
616 <min>0</min>
617 <max>99900</max>
618 <wrap>0</wrap>
619 </binding>
620 </action>
621
622 <action>
623 <name>increase climb rate</name>
624 <button>0</button>
625 <x>78</x>
626 <y>-8</y>
627 <w>8</w>
628 <h>16</h>
629 <binding>
630 <command>property-adjust</command>
631 <property>/autopilot/settings/target-altitude-ft</property>
632 <step>100</step>
633 <min>0</min>
634 <max>99900</max>
635 <wrap>0</wrap>
636 </binding>
637 </action>
638
639 <action>
640 <name>large increase climb rate</name>
641 <button>1</button>
642 <x>78</x>
643 <y>-8</y>
644 <w>8</w>
645 <h>16</h>
646 <binding>
647 <command>property-adjust</command>
648 <property>/autopilot/settings/target-altitude-ft</property>
649 <step>1000</step>
650 <min>0</min>
651 <max>99900</max>
652 <wrap>0</wrap>
653 </binding>
654 </action>
655
656 </actions>
657
658 </PropertyList>