Debian Codegraph @

Aircraft/Instruments/dme.xml

raw symbols SCIP
1 <?xml version="1.01"?>
2
3 <!--
4 Default DME instrument.
5
6 Started summer 2000 by David Megginson, [email protected].
7
8 This is an instrument configuration file for the open-source flight
9 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
10 FlightGear property list defining the instrument's layers and actions.
11
12 Each instrument is composed of layers stacked on top of each other.
13 A layer may be a texture (with transparent parts to show the layers
14 underneath), text, or a special layer that switches between two
15 others (say, to turn an indicator light on or off). Each layer can
16 move independently in proportion to a property value, and text
17 can be generated from property values as well: all of the layer's
18 movements are defined as transformations.
19
20 Actions are hotspots on the instrument that will respond to a mouse
21 click. Actions always modify the values of properties, either by
22 adjusting them, toggling them, or swaping them with other
23 properties' values.
24 -->
25 <!--
26 Dave Perry added a check for dme voltage greater than 8.0 volts so
27 that the dme text does not light up if there is no power supplied.
28 This allows more realistic implementation of master switches or
29 avionics master switches as is done in pa24-electrical.nas. This
30 change has no affect on the c172p since this voltage is 28 volts
31 all the time in that electrical system.
32 -->
33 <PropertyList>
34 <name>DME</name>
35 <w-base>128</w-base>
36 <h-base>64</h-base>
37
38 <layers>
39
40 <layer>
41 <name>background</name>
42 <texture>
43 <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
44 <x1>0.0</x1>
45 <x2>0.49609375</x2>
46 <y1>0.0</y1>
47 <y2>0.23828125</y2>
48 </texture>
49 </layer>
50
51 <layer>
52 <name>distance to station</name>
53 <type>switch</type>
54 <w>128</w>
55 <h>64</h>
56
57 <layer>
58 <condition>
59 <equals>
60 <property>/instrumentation/dme/switch-position</property>
61 <value type="int">0</value>
62 </equals>
63 </condition>
64 <type>group</type>
65 </layer>
66
67 <layer>
68 <condition>
69 <and>
70 <greater-than>
71 <property>/systems/electrical/outputs/dme</property>
72 <value>8.0</value>
73 </greater-than>
74 <not>
75 <property>/instrumentation/dme/in-range</property>
76 </not>
77 </and>
78 </condition>
79 <name>display</name>
80 <type>text</type>
81 <font>led</font>
82 <point-size>6</point-size>
83 <color>
84 <red>1.0</red>
85 <green>0.5</green>
86 <blue>0.0</blue>
87 </color>
88 <chunks>
89 <chunk>
90 <type>literal</type>
91 <text>---.--</text>
92 </chunk>
93 </chunks>
94 </layer>
95
96 <layer>
97 <name>display</name>
98 <condition>
99 <and>
100 <greater-than>
101 <property>/systems/electrical/outputs/dme</property>
102 <value>8.0</value>
103 </greater-than>
104 <greater-than>
105 <property>/instrumentation/dme/indicated-distance-nm</property>
106 <value type="double">999.99</value>
107 </greater-than>
108 </and>
109 </condition>
110 <type>text</type>
111 <font>led</font>
112 <point-size>6</point-size>
113 <color>
114 <red>1.0</red>
115 <green>0.5</green>
116 <blue>0.0</blue>
117 </color>
118 <chunks>
119 <chunk>
120 <type>literal</type>
121 <text>999.99</text>
122 </chunk>
123 </chunks>
124 </layer>
125
126 <layer>
127 <name>display</name>
128 <condition>
129 <greater-than>
130 <property>/systems/electrical/outputs/dme</property>
131 <value>8.0</value>
132 </greater-than>
133 </condition>
134 <type>text</type>
135 <font>led</font>
136 <point-size>6</point-size>
137 <color>
138 <red>1.0</red>
139 <green>0.5</green>
140 <blue>0.0</blue>
141 </color>
142 <chunks>
143 <chunk>
144 <type>number-value</type>
145 <property>/instrumentation/dme/indicated-distance-nm</property>
146 <format>%5.1f</format>
147 </chunk>
148 </chunks>
149 </layer>
150 <transformations>
151 <transformation>
152 <type>x-shift</type>
153 <offset>-50</offset>
154 </transformation>
155 <transformation>
156 <type>y-shift</type>
157 <offset>11</offset>
158 </transformation>
159 </transformations>
160 </layer>
161
162 <layer>
163 <name>ground speed towards station</name>
164 <condition>
165 <greater-than>
166 <property>/systems/electrical/outputs/dme</property>
167 <value>8.0</value>
168 </greater-than>
169 </condition>
170 <type>switch</type>
171
172 <layer>
173 <condition>
174 <equals>
175 <property>/instrumentation/dme/switch-position</property>
176 <value type="int">0</value>
177 </equals>
178 </condition>
179 <type>group</type>
180 </layer>
181
182 <layer>
183 <condition>
184 <and>
185 <greater-than>
186 <property>/systems/electrical/outputs/dme</property>
187 <value>8.0</value>
188 </greater-than>
189 <not>
190 <property>/instrumentation/dme/in-range</property>
191 </not>
192 </and>
193 </condition>
194 <name>display</name>
195 <type>text</type>
196 <font>led</font>
197 <point-size>6</point-size>
198 <color>
199 <red>1.0</red>
200 <green>0.5</green>
201 <blue>0.0</blue>
202 </color>
203 <chunks>
204 <chunk>
205 <type>literal</type>
206 <text>---</text>
207 </chunk>
208 </chunks>
209 </layer>
210
211 <layer>
212 <condition>
213 <and>
214 <greater-than>
215 <property>/systems/electrical/outputs/dme</property>
216 <value>8.0</value>
217 </greater-than>
218 <greater-than>
219 <property>/instrumentation/dme/indicated-ground-speed-kt</property>
220 <value type="double">999</value>
221 </greater-than>
222 </and>
223 </condition>
224 <name>display</name>
225 <type>text</type>
226 <font>led</font>
227 <point-size>6</point-size>
228 <color>
229 <red>1.0</red>
230 <green>0.5</green>
231 <blue>0.0</blue>
232 </color>
233 <chunks>
234 <chunk>
235 <type>literal</type>
236 <text>999</text>
237 </chunk>
238 </chunks>
239 </layer>
240
241 <layer>
242 <condition>
243 <greater-than>
244 <property>/systems/electrical/outputs/dme</property>
245 <value>8.0</value>
246 </greater-than>
247 </condition>
248 <type>text</type>
249 <font>led</font>
250 <point-size>6</point-size>
251 <color>
252 <red>1.0</red>
253 <green>0.5</green>
254 <blue>0.0</blue>
255 </color>
256 <chunks>
257 <chunk>
258 <type>number-value</type>
259 <property>/instrumentation/dme/indicated-ground-speed-kt</property>
260 <format>%3.0f</format>
261 </chunk>
262 </chunks>
263 </layer>
264
265 <transformations>
266 <transformation>
267 <type>y-shift</type>
268 <offset>11</offset>
269 </transformation>
270 </transformations>
271 </layer>
272
273 <layer>
274 <name>time to station</name>
275 <type>switch</type>
276
277 <layer>
278 <condition>
279 <equals>
280 <property>/instrumentation/dme/switch-position</property>
281 <value type="int">0</value>
282 </equals>
283 </condition>
284 <type>group</type>
285 </layer>
286
287 <layer>
288 <condition>
289 <and>
290 <greater-than>
291 <property>/systems/electrical/outputs/dme</property>
292 <value>8.0</value>
293 </greater-than>
294 <not>
295 <property>/instrumentation/dme/in-range</property>
296 </not>
297 </and>
298 </condition>
299 <name>display</name>
300 <type>text</type>
301 <font>led</font>
302 <point-size>6</point-size>
303 <color>
304 <red>1.0</red>
305 <green>0.5</green>
306 <blue>0.0</blue>
307 </color>
308 <chunks>
309 <chunk>
310 <type>literal</type>
311 <text>--</text>
312 </chunk>
313 </chunks>
314 </layer>
315
316 <layer>
317 <condition>
318 <and>
319 <greater-than>
320 <property>/systems/electrical/outputs/dme</property>
321 <value>8.0</value>
322 </greater-than>
323 <greater-than>
324 <property>/instrumentation/dme/indicated-time-min</property>
325 <value type="double">99</value>
326 </greater-than>
327 </and>
328 </condition>
329 <name>display</name>
330 <type>text</type>
331 <font>led</font>
332 <point-size>6</point-size>
333 <color>
334 <red>1.0</red>
335 <green>0.5</green>
336 <blue>0.0</blue>
337 </color>
338 <chunks>
339 <chunk>
340 <type>literal</type>
341 <text>99</text>
342 </chunk>
343 </chunks>
344 </layer>
345
346 <layer>
347 <condition>
348 <greater-than>
349 <property>/systems/electrical/outputs/dme</property>
350 <value>8.0</value>
351 </greater-than>
352 </condition>
353 <type>text</type>
354 <font>led</font>
355 <point-size>6</point-size>
356 <color>
357 <red>1.0</red>
358 <green>0.5</green>
359 <blue>0.0</blue>
360 </color>
361 <chunks>
362 <chunk>
363 <type>number-value</type>
364 <property>/instrumentation/dme/indicated-time-min</property>
365 <format>%02.0f</format>
366 </chunk>
367 </chunks>
368 </layer>
369
370 <transformations>
371 <transformation>
372 <type>y-shift</type>
373 <offset>11</offset>
374 </transformation>
375 <transformation>
376 <type>x-shift</type>
377 <offset>33</offset>
378 </transformation>
379 </transformations>
380 </layer>
381
382 <layer>
383 <name>knob</name>
384 <texture>
385 <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
386 <x1>0.53125</x1>
387 <x2>0.59765625</x2>
388 <y1>0.05859375</y1>
389 <y2>0.1484375</y2>
390 </texture>
391 <w>16</w>
392 <h>20</h>
393 <transformations>
394 <transformation>
395 <type>y-shift</type>
396 <offset>-24</offset>
397 </transformation>
398 <transformation>
399 <type>rotation</type>
400 <property>/instrumentation/dme/switch-position</property>
401 <min>0</min>
402 <max>3</max>
403 <scale>45</scale>
404 <offset>-90</offset>
405 </transformation>
406 <transformation>
407 <type>y-shift</type>
408 <offset>-4.0</offset>
409 </transformation>
410 </transformations>
411 </layer>
412
413 </layers>
414
415 <actions>
416
417 <action>
418 <name>Setup</name>
419 <binding>
420 <condition>
421 <equals>
422 <property>/instrumentation/dme/switch-position</property>
423 <value type="int">1</value>
424 </equals>
425 </condition>
426 <command>property-assign</command>
427 <property>/instrumentation/dme/frequencies/source</property>
428 <value>/instrumentation/nav[0]/frequencies/selected-mhz</value>
429 </binding>
430 <binding>
431 <condition>
432 <equals>
433 <property>/instrumentation/dme/switch-position</property>
434 <value type="int">2</value>
435 </equals>
436 </condition>
437 <command>property-assign</command>
438 <property>/instrumentation/dme/frequencies/source</property>
439 <value>/instrumentation/dme/frequencies/selected-mhz</value>
440 </binding>
441 <binding>
442 <condition>
443 <equals>
444 <property>/instrumentation/dme/switch-position</property>
445 <value type="int">3</value>
446 </equals>
447 </condition>
448 <command>property-assign</command>
449 <property>/instrumentation/dme/frequencies/source</property>
450 <value>/instrumentation/nav[1]/frequencies/selected-mhz</value>
451 </binding>
452 </action>
453
454 <action>
455 <name>Rotate knob left</name>
456 <button>0</button>
457 <x>-32</x>
458 <y>-32</y>
459 <w>32</w>
460 <h>32</h>
461 <binding>
462 <command>property-adjust</command>
463 <property>/instrumentation/dme/switch-position</property>
464 <step>-1</step>
465 <min>0</min>
466 <max>3</max>
467 <wrap>0</wrap>
468 </binding>
469 <binding>
470 <condition>
471 <equals>
472 <property>/instrumentation/dme/switch-position</property>
473 <value type="int">1</value>
474 </equals>
475 </condition>
476 <command>property-assign</command>
477 <property>/instrumentation/dme/frequencies/source</property>
478 <value>/instrumentation/nav[0]/frequencies/selected-mhz</value>
479 </binding>
480 <binding>
481 <condition>
482 <equals>
483 <property>/instrumentation/dme/switch-position</property>
484 <value type="int">2</value>
485 </equals>
486 </condition>
487 <command>property-assign</command>
488 <property>/instrumentation/dme/frequencies/source</property>
489 <value>/instrumentation/dme/frequencies/selected-mhz</value>
490 </binding>
491 <binding>
492 <condition>
493 <equals>
494 <property>/instrumentation/dme/switch-position</property>
495 <value type="int">2</value>
496 </equals>
497 </condition>
498 <command>property-assign</command>
499 <property>/instrumentation/dme/frequencies/selected-mhz</property>
500 <property>/instrumentation/nav[1]/frequencies/selected-mhz</property>
501 </binding>
502 </action>
503
504 <action>
505 <name>Rotate knob right</name>
506 <button>0</button>
507 <x>0</x>
508 <y>-32</y>
509 <w>32</w>
510 <h>32</h>
511 <binding>
512 <command>property-adjust</command>
513 <property>/instrumentation/dme/switch-position</property>
514 <step>1</step>
515 <min>0</min>
516 <max>3</max>
517 <wrap>0</wrap>
518 </binding>
519 <binding>
520 <condition>
521 <equals>
522 <property>/instrumentation/dme/switch-position</property>
523 <value type="int">1</value>
524 </equals>
525 </condition>
526 <command>property-assign</command>
527 <property>/instrumentation/dme/frequencies/source</property>
528 <value>/instrumentation/nav[0]/frequencies/selected-mhz</value>
529 </binding>
530 <binding>
531 <condition>
532 <equals>
533 <property>/instrumentation/dme/switch-position</property>
534 <value type="int">2</value>
535 </equals>
536 </condition>
537 <command>property-assign</command>
538 <property>/instrumentation/dme/frequencies/source</property>
539 <value>/instrumentation/dme/frequencies/selected-mhz</value>
540 </binding>
541 <binding>
542 <condition>
543 <equals>
544 <property>/instrumentation/dme/switch-position</property>
545 <value type="int">2</value>
546 </equals>
547 </condition>
548 <command>property-assign</command>
549 <property>/instrumentation/dme/frequencies/selected-mhz</property>
550 <property>/instrumentation/nav[0]/frequencies/selected-mhz</property>
551 </binding>
552 <binding>
553 <condition>
554 <equals>
555 <property>/instrumentation/dme/switch-position</property>
556 <value type="int">3</value>
557 </equals>
558 </condition>
559 <command>property-assign</command>
560 <property>/instrumentation/dme/frequencies/source</property>
561 <value>/instrumentation/nav[1]/frequencies/selected-mhz</value>
562 </binding>
563 </action>
564
565 </actions>
566
567 </PropertyList>