Debian Codegraph @

Aircraft/c172p/Models/Interior/Panel/Instruments/kr87-adf/kr87-fg1000.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <params>
6 <right-display>/instrumentation/adf[0]/right-display</right-display>
7 <dial-1-khz>instrumentation/adf[0]/frequencies/dial-1-khz</dial-1-khz>
8 <dial-100-khz>instrumentation/adf[0]/frequencies/dial-100-khz</dial-100-khz>
9 </params>
10
11 <path>kr87-fg1000.ac</path>
12
13 <animation>
14 <property>sim/model/c172p/lighting/adf-fg1000</property>
15 </animation>
16
17 <animation>
18 <type>noshadow</type>
19 </animation>
20
21 <animation>
22 <type>select</type>
23 <object-name>indicator.ANT</object-name>
24 <condition>
25 <not>
26 <property>instrumentation/adf[0]/adf-btn</property>
27 </not>
28 </condition>
29 </animation>
30
31 <animation>
32 <type>select</type>
33 <object-name>indicator.ADF</object-name>
34 <condition>
35 <property>instrumentation/adf[0]/adf-btn</property>
36 </condition>
37 </animation>
38
39 <animation>
40 <type>select</type>
41 <object-name>indicator.BFO</object-name>
42 <condition>
43 <property>instrumentation/adf[0]/bfo-btn</property>
44 </condition>
45 </animation>
46
47 <animation>
48 <type>select</type>
49 <object-name>indicator.FRQ</object-name>
50 <condition>
51 <equals>
52 <property>instrumentation/adf[0]/display-mode</property>
53 <value type="int">0</value>
54 </equals>
55 </condition>
56 </animation>
57
58 <animation>
59 <type>select</type>
60 <object-name>indicator.FLT</object-name>
61 <condition>
62 <equals>
63 <property>instrumentation/adf[0]/display-mode</property>
64 <value type="int">1</value>
65 </equals>
66 </condition>
67 </animation>
68
69 <animation>
70 <type>select</type>
71 <object-name>indicator.ET</object-name>
72 <condition>
73 <equals>
74 <property>instrumentation/adf[0]/display-mode</property>
75 <value type="int">2</value>
76 </equals>
77 </condition>
78 </animation>
79
80 <!-- Use FREQ -->
81 <animation>
82 <type>select</type>
83 <object-name>indicator.Use.1000</object-name>
84 <condition>
85 <greater-than-equals>
86 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
87 <value type="int">1000</value>
88 </greater-than-equals>
89 </condition>
90 </animation>
91
92 <animation>
93 <type>textranslate</type>
94 <object-name>indicator.Use.1000</object-name>
95 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
96 <step>1000</step>
97 <factor>0.0001</factor>
98 <axis>
99 <x>1</x>
100 <y>0</y>
101 <z>0</z>
102 </axis>
103 </animation>
104
105 <animation>
106 <type>textranslate</type>
107 <object-name>indicator.Use.100</object-name>
108 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
109 <step>100</step>
110 <factor>0.001</factor>
111 <axis>
112 <x>1</x>
113 <y>0</y>
114 <z>0</z>
115 </axis>
116 </animation>
117
118 <animation>
119 <type>textranslate</type>
120 <object-name>indicator.Use.10</object-name>
121 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
122 <step>10</step>
123 <factor>0.01</factor>
124 <axis>
125 <x>1</x>
126 <y>0</y>
127 <z>0</z>
128 </axis>
129 </animation>
130
131 <animation>
132 <type>textranslate</type>
133 <object-name>indicator.Use.1</object-name>
134 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
135 <step>1</step>
136 <factor>0.1</factor>
137 <axis>
138 <x>1</x>
139 <y>0</y>
140 <z>0</z>
141 </axis>
142 </animation>
143
144 <!-- STBY FREQ -->
145 <animation>
146 <condition>
147 <not-equals>
148 <property>instrumentation/adf[0]/display-mode</property>
149 <value type="int">0</value>
150 </not-equals>
151 </condition>
152 <type>select</type>
153 <object-name>indicator.dots</object-name>
154 </animation>
155
156 <animation>
157 <type>select</type>
158 <object-name>indicator.Stby.1000</object-name>
159 <condition>
160 <greater-than-equals>
161 <property alias="../../../../params/right-display"/>
162 <value type="int">1000</value>
163 </greater-than-equals>
164 </condition>
165 </animation>
166
167 <animation>
168 <type>textranslate</type>
169 <object-name>indicator.Stby.1000</object-name>
170 <property alias="../../params/right-display"/>
171 <step>1000</step>
172 <factor>0.0001</factor>
173 <axis>
174 <x>1</x>
175 <y>0</y>
176 <z>0</z>
177 </axis>
178 </animation>
179
180 <animation>
181 <type>textranslate</type>
182 <object-name>indicator.Stby.100</object-name>
183 <property alias="../../params/right-display"/>
184 <step>100</step>
185 <factor>0.001</factor>
186 <axis>
187 <x>1</x>
188 <y>0</y>
189 <z>0</z>
190 </axis>
191 </animation>
192
193 <animation>
194 <type>textranslate</type>
195 <object-name>indicator.Stby.10</object-name>
196 <property alias="../../params/right-display"/>
197 <step>10</step>
198 <factor>0.01</factor>
199 <axis>
200 <x>1</x>
201 <y>0</y>
202 <z>0</z>
203 </axis>
204 </animation>
205
206 <animation>
207 <type>textranslate</type>
208 <object-name>indicator.Stby.1</object-name>
209 <property alias="../../params/right-display"/>
210 <step>1</step>
211 <factor>0.1</factor>
212 <axis>
213 <x>1</x>
214 <y>0</y>
215 <z>0</z>
216 </axis>
217 </animation>
218
219 <!-- Knobs and buttons -->
220 <animation>
221 <type>translate</type>
222 <object-name>knobs.ADF</object-name>
223 <property>instrumentation/adf[0]/adf-btn</property>
224 <factor>-0.004</factor>
225 <axis>
226 <x>1</x>
227 <y>0</y>
228 <z>0</z>
229 </axis>
230 </animation>
231
232 <animation>
233 <type>pick</type>
234 <visible>true</visible>
235 <object-name>knobs.ADF</object-name>
236 <action>
237 <button>0</button>
238 <binding>
239 <command>property-toggle</command>
240 <property>instrumentation/adf[0]/adf-btn</property>
241 </binding>
242 <binding>
243 <command>nasal</command>
244 <script>c172p.click("kr87-adf")</script>
245 </binding>
246 </action>
247 <hovered>
248 <binding>
249 <command>set-tooltip</command>
250 <tooltip-id>adf-adf-mode</tooltip-id>
251 <label>ADF Mode: %s</label>
252 <property>instrumentation/adf[0]/adf-btn</property>
253 <mapping>nasal</mapping>
254 <script>return arg[0] ? "ADF" : "ANT";</script>
255 </binding>
256 </hovered>
257 </animation>
258
259 <animation>
260 <type>translate</type>
261 <object-name>knobs.BFO</object-name>
262 <property>instrumentation/adf[0]/bfo-btn</property>
263 <factor>-0.004</factor>
264 <axis>
265 <x>1</x>
266 <y>0</y>
267 <z>0</z>
268 </axis>
269 </animation>
270
271 <animation>
272 <type>pick</type>
273 <visible>true</visible>
274 <object-name>knobs.BFO</object-name>
275 <action>
276 <button>0</button>
277 <binding>
278 <command>property-toggle</command>
279 <property>instrumentation/adf[0]/bfo-btn</property>
280 </binding>
281 <binding>
282 <command>nasal</command>
283 <script>c172p.click("kr87-adf")</script>
284 </binding>
285 </action>
286 <hovered>
287 <binding>
288 <command>set-tooltip</command>
289 <tooltip-id>adf-adf-mode</tooltip-id>
290 <label>ADF BFO: %s</label>
291 <property>instrumentation/adf[0]/bfo-btn</property>
292 <mapping>nasal</mapping>
293 <script>return arg[0] ? "Enabled" : "Disabled";</script>
294 </binding>
295 </hovered>
296 </animation>
297
298 <animation>
299 <type>translate</type>
300 <object-name>knobs.FRQ</object-name>
301 <property>instrumentation/adf[0]/frq-btn</property>
302 <factor>-0.004</factor>
303 <axis>
304 <x>1</x>
305 <y>0</y>
306 <z>0</z>
307 </axis>
308 </animation>
309
310 <animation>
311 <type>pick</type>
312 <visible>true</visible>
313 <object-name>knobs.FRQ</object-name>
314 <action>
315 <button>0</button>
316 <binding>
317 <command>property-toggle</command>
318 <property>instrumentation/adf[0]/bfo-frq</property>
319 </binding>
320 <binding>
321 <command>property-assign</command>
322 <property>instrumentation/adf[0]/frq-btn</property>
323 <value type="int">1</value>
324 </binding>
325 <binding>
326 <condition>
327 <equals>
328 <property>instrumentation/adf[0]/display-mode</property>
329 <value type="int">0</value>
330 </equals>
331 </condition>
332 <command>property-swap</command>
333 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
334 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
335 </binding>
336 <binding>
337 <command>property-assign</command>
338 <property>instrumentation/adf[0]/display-mode</property>
339 <value type="int">0</value>
340 </binding>
341 <binding>
342 <command>nasal</command>
343 <script>c172p.click("kr87-adf")</script>
344 </binding>
345 <mod-up>
346 <binding>
347 <command>property-assign</command>
348 <property>instrumentation/adf[0]/frq-btn</property>
349 <value type="int">0</value>
350 </binding>
351 <binding>
352 <command>nasal</command>
353 <script>c172p.click("kr87-adf")</script>
354 </binding>
355 </mod-up>
356 </action>
357 <hovered>
358 <binding>
359 <command>set-tooltip</command>
360 <tooltip-id>adf-swap</tooltip-id>
361 <label>Swap ADF frequencies</label>
362 </binding>
363 </hovered>
364 </animation>
365
366 <animation>
367 <type>translate</type>
368 <object-name>knobs.FLT</object-name>
369 <property>instrumentation/adf[0]/flt-btn</property>
370 <factor>-0.004</factor>
371 <axis>
372 <x>1</x>
373 <y>0</y>
374 <z>0</z>
375 </axis>
376 </animation>
377
378 <animation>
379 <type>pick</type>
380 <visible>true</visible>
381 <object-name>knobs.FLT</object-name>
382 <action>
383 <button>0</button>
384 <binding>
385 <command>property-assign</command>
386 <property>instrumentation/adf[0]/flt-btn</property>
387 <value type="int">1</value>
388 </binding>
389 <binding>
390 <command>property-adjust</command>
391 <property>instrumentation/adf[0]/display-mode</property>
392 <step>1</step>
393 <min>1</min>
394 <max>3</max>
395 <wrap>true</wrap>
396 </binding>
397 <binding>
398 <command>nasal</command>
399 <script>c172p.click("kr87-adf")</script>
400 </binding>
401 <mod-up>
402 <binding>
403 <command>property-assign</command>
404 <property>instrumentation/adf[0]/flt-btn</property>
405 <value type="int">0</value>
406 </binding>
407 <binding>
408 <command>nasal</command>
409 <script>c172p.click("kr87-adf")</script>
410 </binding>
411 </mod-up>
412 </action>
413 <hovered>
414 <binding>
415 <command>set-tooltip</command>
416 <tooltip-id>adf-flt-et</tooltip-id>
417 <label>Flight / Elapsed Timer</label>
418 </binding>
419 </hovered>
420 </animation>
421
422 <animation>
423 <type>translate</type>
424 <object-name>knobs.SET</object-name>
425 <property>instrumentation/adf[0]/set-btn</property>
426 <factor>-0.004</factor>
427 <axis>
428 <x>1</x>
429 <y>0</y>
430 <z>0</z>
431 </axis>
432 </animation>
433
434 <animation>
435 <type>pick</type>
436 <visible>true</visible>
437 <object-name>knobs.SET</object-name>
438 <action>
439 <button>0</button>
440 <binding>
441 <command>property-assign</command>
442 <property>instrumentation/adf[0]/set-btn</property>
443 <value type="int">1</value>
444 </binding>
445 <binding>
446 <command>nasal</command>
447 <script>c172p.click("kr87-adf")</script>
448 </binding>
449 <mod-up>
450 <binding>
451 <command>property-assign</command>
452 <property>instrumentation/adf[0]/set-btn</property>
453 <value type="int">0</value>
454 </binding>
455 <binding>
456 <command>nasal</command>
457 <script>c172p.click("kr87-adf")</script>
458 </binding>
459 </mod-up>
460 </action>
461 <hovered>
462 <binding>
463 <command>set-tooltip</command>
464 <tooltip-id>adf-set</tooltip-id>
465 <label>Reset Elapsed Timer</label>
466 </binding>
467 </hovered>
468 </animation>
469
470 <!-- Volume knob -->
471 <animation>
472 <type>knob</type>
473 <object-name>Volume</object-name>
474 <property>instrumentation/adf[0]/volume-norm</property>
475 <factor>-140</factor>
476 <axis>
477 <x>1</x>
478 <y>0</y>
479 <z>0</z>
480 </axis>
481 <center>
482 <x-m>-0.347461</x-m>
483 <y-m> 0.396435</y-m>
484 <z-m>-0.037124</z-m>
485 </center>
486 <action>
487 <binding>
488 <command>property-adjust</command>
489 <property>instrumentation/adf[0]/volume-norm</property>
490 <factor>0.1</factor>
491 <min>0</min>
492 <max>1.0</max>
493 </binding>
494 <!-- Switch on if volume greater than 0.0 -->
495 <binding>
496 <condition>
497 <greater-than>
498 <property>instrumentation/adf[0]/volume-norm</property>
499 <value>0.0</value>
500 </greater-than>
501 </condition>
502 <command>property-assign</command>
503 <property>instrumentation/adf[0]/power-btn</property>
504 <value type="bool">1</value>
505 </binding>
506 <!-- Switch off if volume less than 0.1 -->
507 <binding>
508 <condition>
509 <less-than>
510 <property>instrumentation/adf[0]/volume-norm</property>
511 <value>0.1</value>
512 </less-than>
513 </condition>
514 <command>property-assign</command>
515 <property>instrumentation/adf[0]/power-btn</property>
516 <value type="bool">0</value>
517 </binding>
518 <binding>
519 <command>nasal</command>
520 <script>c172p.click("kr87-adf-dial")</script>
521 </binding>
522 </action>
523 <hovered>
524 <binding>
525 <command>set-tooltip</command>
526 <tooltip-id>adf-volume</tooltip-id>
527 <label>Volume: %d%%</label>
528 <property>instrumentation/adf[0]/volume-norm</property>
529 <mapping>percent</mapping>
530 </binding>
531 </hovered>
532 </animation>
533
534 <!-- Inner frequency (1 kHz) knob -->
535 <animation>
536 <type>knob</type>
537 <object-name>FRQInner</object-name>
538 <property alias="/params/dial-1-khz"/>
539 <factor>-2.5</factor>
540 <axis>
541 <x>1</x>
542 <y>0</y>
543 <z>0</z>
544 </axis>
545 <center>
546 <x-m>-0.329268</x-m>
547 <y-m> 0.425707</y-m>
548 <z-m>-0.034261</z-m>
549 </center>
550 <action>
551 <binding>
552 <command>property-adjust</command>
553 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
554 <factor>1</factor>
555 <min>200</min>
556 <max>1800</max>
557 <resolution>1</resolution>
558 <wrap>true</wrap>
559 </binding>
560 <binding>
561 <command>property-adjust</command>
562 <property alias="/params/dial-1-khz"/>
563 <factor>4</factor>
564 <min>0</min>
565 <max>360</max>
566 <wrap>true</wrap>
567 </binding>
568 <binding>
569 <command>nasal</command>
570 <script>c172p.click("kr87-adf-dial")</script>
571 </binding>
572 </action>
573 <hovered>
574 <binding>
575 <command>set-tooltip</command>
576 <tooltip-id>adf-kHz</tooltip-id>
577 <label>Adjust ADF frequency by 1 kHz</label>
578 </binding>
579 </hovered>
580 </animation>
581
582 <!-- Outer frequency (100 KHz) knob -->
583 <animation>
584 <type>knob</type>
585 <object-name>FRQOuter</object-name>
586 <property alias="/params/dial-100-khz"/>
587 <factor>-2.5</factor>
588 <axis>
589 <x>1</x>
590 <y>0</y>
591 <z>0</z>
592 </axis>
593 <center>
594 <x-m>-0.329268</x-m>
595 <y-m> 0.425707</y-m>
596 <z-m>-0.034261</z-m>
597 </center>
598 <action>
599 <binding>
600 <command>property-adjust</command>
601 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
602 <factor>100</factor>
603 <min>200</min>
604 <max>1800</max>
605 <resolution>1</resolution>
606 <wrap>true</wrap>
607 </binding>
608 <binding>
609 <command>property-adjust</command>
610 <property alias="/params/dial-100-khz"/>
611 <factor>4</factor>
612 <min>0</min>
613 <max>360</max>
614 <wrap>true</wrap>
615 </binding>
616 <binding>
617 <command>nasal</command>
618 <script>c172p.click("kr87-adf-dial")</script>
619 </binding>
620 </action>
621 <hovered>
622 <binding>
623 <command>set-tooltip</command>
624 <tooltip-id>adf-100kHz</tooltip-id>
625 <label>Adjust ADF frequency by 100 kHz</label>
626 </binding>
627 </hovered>
628 </animation>
629
630 <effect>
631 <inherits-from>Aircraft/c172p/Models/Effects/interior/lm-fg1000-kr87</inherits-from>
632 <object-name>Volume</object-name>
633 <object-name>FRQOuter</object-name>
634 <object-name>FRQInner</object-name>
635 <object-name>Chassis</object-name>
636 <object-name>knobs.ADF</object-name>
637 <object-name>knobs.BFO</object-name>
638 <object-name>knobs.FRQ</object-name>
639 <object-name>knobs.FLT</object-name>
640 <object-name>knobs.SET</object-name>
641 </effect>
642
643 <effect>
644 <inherits-from>../../../../Effects/interior/c172p-interior</inherits-from>
645 <object-name>indicator.ANT</object-name>
646 <object-name>indicator.ADF</object-name>
647 <object-name>indicator.BFO</object-name>
648 <object-name>indicator.FRQ</object-name>
649 <object-name>indicator.FLT</object-name>
650 <object-name>indicator.ET</object-name>
651 <object-name>indicator.Use.1000</object-name>
652 <object-name>indicator.Use.100</object-name>
653 <object-name>indicator.Use.10</object-name>
654 <object-name>indicator.Use.1</object-name>
655 <object-name>indicator.dots</object-name>
656 <object-name>indicator.Stby.1000</object-name>
657 <object-name>indicator.Stby.100</object-name>
658 <object-name>indicator.Stby.10</object-name>
659 <object-name>indicator.Stby.1</object-name>
660 </effect>
661
662 <animation>
663 <type>material</type>
664 <object-name>Volume</object-name>
665 <object-name>FRQOuter</object-name>
666 <object-name>FRQInner</object-name>
667 <object-name>Chassis</object-name>
668 <object-name>knobs.ADF</object-name>
669 <object-name>knobs.BFO</object-name>
670 <object-name>knobs.FRQ</object-name>
671 <object-name>knobs.FLT</object-name>
672 <object-name>knobs.SET</object-name>
673 <condition>
674 <not>
675 <property>sim/rendering/shaders/skydome</property>
676 </not>
677 </condition>
678 <emission>
679 <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
680 <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
681 <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
682 </emission>
683 </animation>
684
685 <animation>
686 <type>material</type>
687 <object-name>knobs.ADF</object-name>
688 <object-name>knobs.BFO</object-name>
689 <object-name>knobs.FRQ</object-name>
690 <object-name>knobs.FLT</object-name>
691 <object-name>knobs.SET</object-name>
692 <emission>
693 <red>0.5</red>
694 <green>0.1</green>
695 <blue>0.00005</blue>
696 <factor-prop>/sim/model/c172p/lighting/adf-fg1000</factor-prop>
697 </emission>
698 </animation>
699
700 <animation>
701 <type>select</type>
702 <object-name>indicator</object-name>
703 <condition>
704 <property>instrumentation/adf[0]/operable</property>
705 </condition>
706 </animation>
707
708 <animation>
709 <type>material</type>
710 <object-name>indicator.ANT</object-name>
711 <object-name>indicator.ADF</object-name>
712 <object-name>indicator.BFO</object-name>
713 <object-name>indicator.FRQ</object-name>
714 <object-name>indicator.FLT</object-name>
715 <object-name>indicator.ET</object-name>
716 <object-name>indicator.Use.1000</object-name>
717 <object-name>indicator.Use.100</object-name>
718 <object-name>indicator.Use.10</object-name>
719 <object-name>indicator.Use.1</object-name>
720 <object-name>indicator.dots</object-name>
721 <object-name>indicator.Stby.1000</object-name>
722 <object-name>indicator.Stby.100</object-name>
723 <object-name>indicator.Stby.10</object-name>
724 <object-name>indicator.Stby.1</object-name>
725 <condition>
726 <and>
727 <not>
728 <property>sim/rendering/rembrandt/enabled</property>
729 </not>
730 <greater-than>
731 <property>sim/model/c172p/lighting/adf-fg1000</property>
732 <value>0.0</value>
733 </greater-than>
734 </and>
735 </condition>
736 <emission>
737 <red>1.0</red>
738 <green>1.0</green>
739 <blue>1.0</blue>
740 <factor-prop>/sim/model/c172p/lighting/adf-fg1000</factor-prop>
741 </emission>
742 </animation>
743
744 <animation>
745 <type>material</type>
746 <object-name>indicator.ANT</object-name>
747 <object-name>indicator.ADF</object-name>
748 <object-name>indicator.BFO</object-name>
749 <object-name>indicator.FRQ</object-name>
750 <object-name>indicator.FLT</object-name>
751 <object-name>indicator.ET</object-name>
752 <object-name>indicator.Use.1000</object-name>
753 <object-name>indicator.Use.100</object-name>
754 <object-name>indicator.Use.10</object-name>
755 <object-name>indicator.Use.1</object-name>
756 <object-name>indicator.dots</object-name>
757 <object-name>indicator.Stby.1000</object-name>
758 <object-name>indicator.Stby.100</object-name>
759 <object-name>indicator.Stby.10</object-name>
760 <object-name>indicator.Stby.1</object-name>
761 <condition>
762 <and>
763 <not>
764 <property>sim/rendering/rembrandt/enabled</property>
765 </not>
766 <equals>
767 <property>sim/model/c172p/lighting/adf-fg1000</property>
768 <value>0.0</value>
769 </equals>
770 </and>
771 </condition>
772 <emission>
773 <red>1.0</red>
774 <green>1.0</green>
775 <blue>1.0</blue>
776 </emission>
777 </animation>
778
779 </PropertyList>