Debian Codegraph @

Aircraft/Instruments/navcom-kx155.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default NAVCOM radio instrument.
5 Parameterized and improved
6 John Check <[email protected]>
7 June 2001
8
9 This is an instrument configuration file for the open-source flight
10 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
11 FlightGear property list defining the instrument's layers and actions.
12
13 Each instrument is composed of layers stacked on top of each other.
14 A layer may be a texture (with transparent parts to show the layers
15 underneath), text, or a special layer that switches between two
16 others (say, to turn an indicator light on or off). Each layer can
17 move independently in proportion to a property value, and text
18 can be generated from property values as well: all of the layer's
19 movements are defined as transformations.
20
21 Actions are hotspots on the instrument that will respond to a mouse
22 click. Actions always modify the values of properties, either by
23 adjusting them, toggling them, or swaping them with other
24 properties' values.
25 -->
26
27 <!--
28 2/10/06
29 Dave Perry added a check for Nav/Com power, so the frequencies won't
30 light if
31 /systems/electrical/outputs/nav is less than 8.0 volts. See the con-
32 dition added for these text layers below. This allows a more realistic
33 master switch and avionics master switch implementation in the electrical
34 system model. I also checked to make sure this does not negatively
35 impact the c172p. Had to add a property alias to the params after the
36 nav1.xml include in c172p-2d-panel.xml. Since the electrical system
37 for the c172p has this voltage at 28 volts, these changes have no
38 impact on the c172p.
39 -->
40 <PropertyList>
41
42 <name>NavCom Radio</name>
43 <w-base>256</w-base>
44 <h-base>86</h-base>
45
46 <params>
47 <comm-freq-selected-prop>/instrumentation/comm[0]/frequencies/selected-mhz</comm-freq-selected-prop>
48 <comm-freq-standby-prop>/instrumentation/comm[0]/frequencies/standby-mhz</comm-freq-standby-prop>
49 <nav-freq-selected-prop>/instrumentation/nav[0]/frequencies/selected-mhz</nav-freq-selected-prop>
50 <nav-freq-standby-prop>/instrumentation/nav[0]/frequencies/standby-mhz</nav-freq-standby-prop>
51 <nav-morse-id-volume-prop>/instrumentation/nav[0]/volume</nav-morse-id-volume-prop>
52 <nav-morse-ident-toggle-prop>/instrumentation/nav[0]/ident</nav-morse-ident-toggle-prop>
53 <nav-com-pwr-volts-prop>/systems/electrical/outputs/nav[0]</nav-com-pwr-volts-prop>
54 </params>
55
56 <layers>
57
58 <layer>
59 <name>background</name>
60 <texture>
61 <path>Aircraft/Instruments/Textures/bendix-kx155.rgb</path>
62 <y1>0.0</y1>
63 <y2>0.30859375</y2>
64 <x1>0.0</x1>
65 <x2>1.0</x2>
66 </texture>
67 </layer>
68
69 <layer>
70 <name>nav frequencies</name>
71 <condition>
72 <greater-than>
73 <property alias="../../../../../params/nav-com-pwr-volts-prop"/>
74 <value>8.0</value>
75 </greater-than>
76 </condition>
77 <type>text</type>
78 <font>led</font>
79 <point-size>6.5</point-size>
80 <color>
81 <red>1.0</red>
82 <green>0.5</green>
83 <blue>0.0</blue>
84 </color>
85 <chunks>
86 <chunk>
87 <type>number-value</type>
88 <property alias="../../../../../params/nav-freq-selected-prop"/>
89 <format>%.2f</format>
90 </chunk>
91 <chunk>
92 <type>number-value</type>
93 <property alias="../../../../../params/nav-freq-standby-prop"/>
94 <format>%9.2f</format>
95 </chunk>
96 </chunks>
97 <transformations>
98 <transformation>
99 <type>x-shift</type>
100 <offset>10</offset>
101 </transformation>
102 <transformation>
103 <type>y-shift</type>
104 <offset>18</offset>
105 </transformation>
106 </transformations>
107 </layer>
108
109 <layer>
110 <name>com frequencies</name>
111 <condition>
112 <greater-than>
113 <property alias="../../../../../params/nav-com-pwr-volts-prop"/>
114 <value>8.0</value>
115 </greater-than>
116 </condition>
117 <type>text</type>
118 <font>led</font>
119 <point-size>6.5</point-size>
120 <color>
121 <red>1.0</red>
122 <green>0.5</green>
123 <blue>0.0</blue>
124 </color>
125 <chunks>
126 <chunk>
127 <type>number-value</type>
128 <property alias="../../../../../params/comm-freq-selected-prop"/>
129 <scale>0.999992</scale>
130 <!--The above is to ensure that 25kHz increments with an undisplayed last 0.005 are always
131 rounded down as occurs in real life-->
132 <format>%.2f</format>
133 </chunk>
134 <chunk>
135 <type>number-value</type>
136 <property alias="../../../../../params/comm-freq-standby-prop"/>
137 <scale>0.999992</scale>
138 <format>%9.2f</format>
139 </chunk>
140 </chunks>
141 <transformations>
142 <transformation>
143 <type>x-shift</type>
144 <offset>-118</offset>
145 </transformation>
146 <transformation>
147 <type>y-shift</type>
148 <offset>18</offset>
149 </transformation>
150 </transformations>
151 </layer>
152
153 <layer>
154 <name>morse ident status</name>
155 <condition>
156 <!-- <and> -->
157 <greater-than>
158 <property alias="../../../../../params/nav-com-pwr-volts-prop"/>
159 <value>8.0</value>
160 </greater-than>
161 <equals>
162 <property alias="../../../../../params/nav-morse-ident-toggle-prop"/>
163 <value>true</value>
164 </equals>
165 <!-- </and> -->
166 </condition>
167 <type>text</type>
168 <point-size>6</point-size>
169 <color>
170 <red>1.0</red>
171 <green>0.5</green>
172 <blue>0.0</blue>
173 </color>
174 <chunks>
175 <chunk>
176 <type>literal</type>
177 <text>ID</text>
178 </chunk>
179 </chunks>
180 <transformations>
181 <transformation>
182 <type>x-shift</type>
183 <offset>10</offset>
184 </transformation>
185 <transformation>
186 <type>y-shift</type>
187 <offset>8</offset>
188 </transformation>
189 </transformations>
190 </layer>
191
192 <layer>
193 <name>ident knob pointer</name>
194 <texture>
195 <path>Aircraft/Instruments/Textures/bendix-kx155.rgb</path>
196 <x1>0.1</x1>
197 <x2>0.2</x2>
198 <y1>0.29298675</y1>
199 <y2>0.3078125</y2>
200 </texture>
201 <w>7</w>
202 <h>4</h>
203 <transformations>
204 <transformation>
205 <type>x-shift</type>
206 <offset>29.5</offset>
207 </transformation>
208 <transformation>
209 <type>y-shift</type>
210 <offset>-27</offset>
211 </transformation>
212 <transformation>
213 <type>rotation</type>
214 <property alias="../../../../../params/nav-morse-id-volume-prop"/>
215 <min>0</min>
216 <max>1</max>
217 <scale>180</scale>
218 <offset>-60</offset>
219 </transformation>
220 <transformation>
221 <type>x-shift</type>
222 <offset>-2</offset>
223 </transformation>
224 </transformations>
225 </layer>
226
227 </layers>
228
229 <actions>
230
231 <action>
232 <name>small nav frequency decrease</name>
233 <button>0</button>
234 <x>86</x>
235 <y>-24</y>
236 <w>12</w>
237 <h>18</h>
238 <binding>
239 <command>property-adjust</command>
240 <property alias="../../../../params/nav-freq-standby-prop"/>
241 <step>-0.05</step>
242 <min>108.0</min>
243 <max>118.0</max>
244 <resolution>0.05</resolution>
245 <wrap>1</wrap>
246 </binding>
247 </action>
248
249 <action>
250 <name>large nav frequency decrease</name>
251 <button>1</button>
252 <x>86</x>
253 <y>-24</y>
254 <w>12</w>
255 <h>18</h>
256 <binding>
257 <command>property-adjust</command>
258 <property alias="../../../../params/nav-freq-standby-prop"/>
259 <step>-0.5</step>
260 <min>108.0</min>
261 <max>118.0</max>
262 <resolution>0.05</resolution>
263 <wrap>1</wrap>
264 </binding>
265 </action>
266
267 <action>
268 <name>small nav frequency increase</name>
269 <button>0</button>
270 <x>99</x>
271 <y>-24</y>
272 <w>12</w>
273 <h>18</h>
274 <binding>
275 <command>property-adjust</command>
276 <property alias="../../../../params/nav-freq-standby-prop"/>
277 <step>0.05</step>
278 <min>108.0</min>
279 <max>118.0</max>
280 <resolution>0.05</resolution>
281 <wrap>1</wrap>
282 </binding>
283 </action>
284
285 <action>
286 <name>large nav frequency increase</name>
287 <button>1</button>
288 <x>99</x>
289 <y>-24</y>
290 <w>12</w>
291 <h>18</h>
292 <binding>
293 <command>property-adjust</command>
294 <property alias="../../../../params/nav-freq-standby-prop"/>
295 <step>0.5</step>
296 <min>108.0</min>
297 <max>118.0</max>
298 <resolution>0.05</resolution>
299 <wrap>1</wrap>
300 </binding>
301 </action>
302
303
304 <action>
305 <name>small com frequency decrease</name>
306 <button>0</button>
307 <x>-48</x>
308 <y>-29</y>
309 <w>12</w>
310 <h>23</h>
311 <binding>
312 <command>property-adjust</command>
313 <property alias="../../../../params/comm-freq-standby-prop"/>
314 <step>-0.025</step>
315 <min>118.0</min>
316 <max>140.0</max>
317 <resolution>0.025</resolution>
318 <wrap>1</wrap>
319 </binding>
320 </action>
321
322 <action>
323 <name>large com frequency decrease</name>
324 <button>1</button>
325 <x>-48</x>
326 <y>-29</y>
327 <w>12</w>
328 <h>23</h>
329 <binding>
330 <command>property-adjust</command>
331 <property alias="../../../../params/comm-freq-standby-prop"/>
332 <step>-1.0</step>
333 <min>118.0</min>
334 <max>140.0</max>
335 <resolution>0.025</resolution>
336 <wrap>1</wrap>
337 </binding>
338 </action>
339
340 <action>
341 <name>small com frequency increase</name>
342 <button>0</button>
343 <x>-35</x>
344 <y>-29</y>
345 <w>12</w>
346 <h>23</h>
347 <binding>
348 <command>property-adjust</command>
349 <property alias="../../../../params/comm-freq-standby-prop"/>
350 <step>0.025</step>
351 <min>118.0</min>
352 <max>140.0</max>
353 <resolution>0.025</resolution>
354 <wrap>1</wrap>
355 </binding>
356 </action>
357
358 <action>
359 <name>large com frequency increase</name>
360 <button>1</button>
361 <x>-35</x>
362 <y>-29</y>
363 <w>12</w>
364 <h>23</h>
365 <binding>
366 <command>property-adjust</command>
367 <property alias="../../../../params/comm-freq-standby-prop"/>
368 <step>1.0</step>
369 <min>118.0</min>
370 <max>140.0</max>
371 <resolution>0.025</resolution>
372 <wrap>1</wrap>
373 </binding>
374 </action>
375
376
377 <action>
378 <name>swap nav frequencies</name>
379 <button>0</button>
380 <x>48</x>
381 <y>-9</y>
382 <w>18</w>
383 <h>11</h>
384 <binding>
385 <command>property-swap</command>
386 <property alias="../../../../params/nav-freq-selected-prop"/>
387 <property alias="../../../../params/nav-freq-standby-prop"/>
388 </binding>
389 </action>
390
391 <action>
392 <name>swap com frequencies</name>
393 <button>0</button>
394 <x>-85</x>
395 <y>-9</y>
396 <w>18</w>
397 <h>11</h>
398 <binding>
399 <command>property-swap</command>
400 <property alias="../../../../params/comm-freq-selected-prop"/>
401 <property alias="../../../../params/comm-freq-standby-prop"/>
402 </binding>
403 </action>
404
405
406 <action>
407 <name>ident volume increase</name>
408 <button>0</button>
409 <x>33</x>
410 <y>-36</y>
411 <w>7</w>
412 <h>14</h>
413 <binding>
414 <command>property-adjust</command>
415 <property alias="../../../../params/nav-morse-id-volume-prop"/>
416 <step>0.5</step>
417 <min>0</min>
418 <max>2</max>
419 </binding>
420 </action>
421
422 <action>
423 <name>ident volume decrease</name>
424 <button>0</button>
425 <x>24</x>
426 <y>-36</y>
427 <w>7</w>
428 <h>14</h>
429 <binding>
430 <command>property-adjust</command>
431 <property alias="../../../../params/nav-morse-id-volume-prop"/>
432 <step>-0.5</step>
433 <min>0</min>
434 <max>2</max>
435 </binding>
436 </action>
437
438 <action>
439 <name>ident volume on/off</name>
440 <button>1</button>
441 <x>24</x>
442 <y>-36</y>
443 <w>14</w>
444 <h>14</h>
445 <binding>
446 <command>property-toggle</command>
447 <property alias="../../../../params/nav-morse-ident-toggle-prop"/>
448 </binding>
449 </action>
450
451 </actions>
452
453 </PropertyList>