Debian Codegraph @

Aircraft/c172p/Models/Interior/Panel/Instruments/kr87-adf/kr87.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.ac</path>
12
13 <animation>
14 <property>sim/model/c172p/lighting/adf</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 <or>
74 <and>
75 <not><property>instrumentation/adf[0]/set-mode</property></not>
76 <equals>
77 <property>instrumentation/adf[0]/display-mode</property>
78 <value type="int">2</value>
79 </equals>
80 </and>
81
82 <and>
83 <property>instrumentation/adf[0]/set-mode</property>
84 <less-than>
85 <expression>
86 <mod>
87 <product>
88 <property>sim/time/elapsed-sec</property>
89 <value>10</value>
90 </product>
91 <value>10</value>
92 </mod>
93 </expression>
94 <value>4</value>
95 </less-than>
96 </and>
97 </or>
98 </condition>
99 </animation>
100
101 <!-- Use FREQ -->
102 <animation>
103 <type>select</type>
104 <object-name>indicator.Use.1000</object-name>
105 <condition>
106 <greater-than-equals>
107 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
108 <value type="int">1000</value>
109 </greater-than-equals>
110 </condition>
111 </animation>
112
113 <animation>
114 <type>textranslate</type>
115 <object-name>indicator.Use.1000</object-name>
116 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
117 <step>1000</step>
118 <factor>0.0001</factor>
119 <axis>
120 <x>1</x>
121 <y>0</y>
122 <z>0</z>
123 </axis>
124 </animation>
125
126 <animation>
127 <type>textranslate</type>
128 <object-name>indicator.Use.100</object-name>
129 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
130 <step>100</step>
131 <factor>0.001</factor>
132 <axis>
133 <x>1</x>
134 <y>0</y>
135 <z>0</z>
136 </axis>
137 </animation>
138
139 <animation>
140 <type>textranslate</type>
141 <object-name>indicator.Use.10</object-name>
142 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
143 <step>10</step>
144 <factor>0.01</factor>
145 <axis>
146 <x>1</x>
147 <y>0</y>
148 <z>0</z>
149 </axis>
150 </animation>
151
152 <animation>
153 <type>textranslate</type>
154 <object-name>indicator.Use.1</object-name>
155 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
156 <step>1</step>
157 <factor>0.1</factor>
158 <axis>
159 <x>1</x>
160 <y>0</y>
161 <z>0</z>
162 </axis>
163 </animation>
164
165 <!-- STBY FREQ -->
166 <animation>
167 <condition>
168 <or>
169 <equals>
170 <property>instrumentation/adf[0]/display-mode</property>
171 <value type="int">1</value>
172 </equals>
173 <and>
174 <equals>
175 <property>instrumentation/adf[0]/display-mode</property>
176 <value type="int">2</value>
177 </equals>
178 <or>
179 <not><property>instrumentation/adf[0]/enroute-timer/alarm-flash</property></not>
180 <and>
181 <property>instrumentation/adf[0]/enroute-timer/alarm-flash</property>
182 <less-than>
183 <expression>
184 <mod>
185 <product>
186 <property>sim/time/elapsed-sec</property>
187 <value>10</value>
188 </product>
189 <value>10</value>
190 </mod>
191 </expression>
192 <value>5</value>
193 </less-than>
194 </and>
195 </or>
196 </and>
197 </or>
198 </condition>
199 <type>select</type>
200 <object-name>indicator.dots</object-name>
201 </animation>
202
203 <animation>
204 <type>select</type>
205 <object-name>indicator.Stby.1000</object-name>
206 <condition>
207 <or>
208 <and>
209 <equals>
210 <property>instrumentation/adf[0]/display-mode</property>
211 <value type="int">0</value>
212 </equals>
213 <greater-than-equals>
214 <property alias="../../../../../../params/right-display"/>
215 <value type="int">1000</value>
216 </greater-than-equals>
217 </and>
218 <equals>
219 <property>instrumentation/adf[0]/display-mode</property>
220 <value type="int">1</value>
221 </equals>
222 <and>
223 <equals>
224 <property>instrumentation/adf[0]/display-mode</property>
225 <value type="int">2</value>
226 </equals>
227 <or>
228 <not><property>instrumentation/adf[0]/enroute-timer/alarm-flash</property></not>
229 <and>
230 <property>instrumentation/adf[0]/enroute-timer/alarm-flash</property>
231 <less-than>
232 <expression>
233 <mod>
234 <product>
235 <property>sim/time/elapsed-sec</property>
236 <value>10</value>
237 </product>
238 <value>10</value>
239 </mod>
240 </expression>
241 <value>5</value>
242 </less-than>
243 </and>
244 </or>
245 </and>
246 </or>
247 </condition>
248 </animation>
249 <animation>
250 <type>select</type>
251 <object-name>indicator.Stby.100</object-name>
252 <object-name>indicator.Stby.10</object-name>
253 <object-name>indicator.Stby.1</object-name>
254 <condition>
255 <or>
256 <equals>
257 <property>instrumentation/adf[0]/display-mode</property>
258 <value type="int">0</value>
259 </equals>
260 <equals>
261 <property>instrumentation/adf[0]/display-mode</property>
262 <value type="int">1</value>
263 </equals>
264 <and>
265 <equals>
266 <property>instrumentation/adf[0]/display-mode</property>
267 <value type="int">2</value>
268 </equals>
269 <or>
270 <not><property>instrumentation/adf[0]/enroute-timer/alarm-flash</property></not>
271 <and>
272 <property>instrumentation/adf[0]/enroute-timer/alarm-flash</property>
273 <less-than>
274 <expression>
275 <mod>
276 <product>
277 <property>sim/time/elapsed-sec</property>
278 <value>10</value>
279 </product>
280 <value>10</value>
281 </mod>
282 </expression>
283 <value>5</value>
284 </less-than>
285 </and>
286 </or>
287 </and>
288 </or>
289 </condition>
290 </animation>
291
292 <animation>
293 <type>textranslate</type>
294 <object-name>indicator.Stby.1000</object-name>
295 <property alias="../../params/right-display"/>
296 <step>1000</step>
297 <factor>0.0001</factor>
298 <axis>
299 <x>1</x>
300 <y>0</y>
301 <z>0</z>
302 </axis>
303 </animation>
304
305 <animation>
306 <type>textranslate</type>
307 <object-name>indicator.Stby.100</object-name>
308 <property alias="../../params/right-display"/>
309 <step>100</step>
310 <factor>0.001</factor>
311 <axis>
312 <x>1</x>
313 <y>0</y>
314 <z>0</z>
315 </axis>
316 </animation>
317
318 <animation>
319 <type>textranslate</type>
320 <object-name>indicator.Stby.10</object-name>
321 <property alias="../../params/right-display"/>
322 <step>10</step>
323 <factor>0.01</factor>
324 <axis>
325 <x>1</x>
326 <y>0</y>
327 <z>0</z>
328 </axis>
329 </animation>
330
331 <animation>
332 <type>textranslate</type>
333 <object-name>indicator.Stby.1</object-name>
334 <property alias="../../params/right-display"/>
335 <step>1</step>
336 <factor>0.1</factor>
337 <axis>
338 <x>1</x>
339 <y>0</y>
340 <z>0</z>
341 </axis>
342 </animation>
343
344 <!-- Knobs and buttons -->
345 <animation>
346 <type>translate</type>
347 <object-name>knobs.ADF</object-name>
348 <property>instrumentation/adf[0]/adf-btn</property>
349 <factor>-0.004</factor>
350 <axis>
351 <x>1</x>
352 <y>0</y>
353 <z>0</z>
354 </axis>
355 </animation>
356
357 <animation>
358 <type>pick</type>
359 <visible>true</visible>
360 <object-name>knobs.ADF</object-name>
361 <action>
362 <button>0</button>
363 <binding>
364 <command>property-toggle</command>
365 <property>instrumentation/adf[0]/adf-btn</property>
366 </binding>
367 <binding>
368 <command>nasal</command>
369 <script>c172p.click("kr87-adf")</script>
370 </binding>
371 </action>
372 <hovered>
373 <binding>
374 <command>set-tooltip</command>
375 <tooltip-id>adf-adf-mode</tooltip-id>
376 <label>ADF Mode: %s</label>
377 <property>instrumentation/adf[0]/adf-btn</property>
378 <mapping>nasal</mapping>
379 <script>return arg[0] ? "ADF" : "ANT";</script>
380 </binding>
381 </hovered>
382 </animation>
383
384 <animation>
385 <type>translate</type>
386 <object-name>knobs.BFO</object-name>
387 <property>instrumentation/adf[0]/bfo-btn</property>
388 <factor>-0.004</factor>
389 <axis>
390 <x>1</x>
391 <y>0</y>
392 <z>0</z>
393 </axis>
394 </animation>
395
396 <animation>
397 <type>pick</type>
398 <visible>true</visible>
399 <object-name>knobs.BFO</object-name>
400 <action>
401 <button>0</button>
402 <binding>
403 <command>property-toggle</command>
404 <property>instrumentation/adf[0]/bfo-btn</property>
405 </binding>
406 <binding>
407 <command>nasal</command>
408 <script>c172p.click("kr87-adf")</script>
409 </binding>
410 </action>
411 <hovered>
412 <binding>
413 <command>set-tooltip</command>
414 <tooltip-id>adf-adf-mode</tooltip-id>
415 <label>ADF BFO: %s</label>
416 <property>instrumentation/adf[0]/bfo-btn</property>
417 <mapping>nasal</mapping>
418 <script>return arg[0] ? "Enabled" : "Disabled";</script>
419 </binding>
420 </hovered>
421 </animation>
422
423 <animation>
424 <type>translate</type>
425 <object-name>knobs.FRQ</object-name>
426 <property>instrumentation/adf[0]/frq-btn</property>
427 <factor>-0.004</factor>
428 <axis>
429 <x>1</x>
430 <y>0</y>
431 <z>0</z>
432 </axis>
433 </animation>
434
435 <animation>
436 <type>pick</type>
437 <visible>true</visible>
438 <object-name>knobs.FRQ</object-name>
439 <action>
440 <button>0</button>
441 <binding>
442 <condition>
443 <not><property>instrumentation/adf[0]/set-mode</property></not>
444 </condition>
445 <command>property-toggle</command>
446 <property>instrumentation/adf[0]/bfo-frq</property>
447 </binding>
448 <binding>
449 <command>property-assign</command>
450 <property>instrumentation/adf[0]/frq-btn</property>
451 <value type="int">1</value>
452 </binding>
453 <binding>
454 <condition>
455 <and>
456 <not><property>instrumentation/adf[0]/set-mode</property></not>
457 <equals>
458 <property>instrumentation/adf[0]/display-mode</property>
459 <value type="int">0</value>
460 </equals>
461 </and>
462 </condition>
463 <command>property-swap</command>
464 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
465 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
466 </binding>
467 <binding>
468 <condition>
469 <not><property>instrumentation/adf[0]/set-mode</property></not>
470 </condition>
471 <command>property-assign</command>
472 <property>instrumentation/adf[0]/display-mode</property>
473 <value type="int">0</value>
474 </binding>
475 <binding>
476 <command>nasal</command>
477 <script>c172p.click("kr87-adf")</script>
478 </binding>
479 <mod-up>
480 <binding>
481 <command>property-assign</command>
482 <property>instrumentation/adf[0]/frq-btn</property>
483 <value type="int">0</value>
484 </binding>
485 <binding>
486 <command>nasal</command>
487 <script>c172p.click("kr87-adf")</script>
488 </binding>
489 </mod-up>
490 </action>
491 <hovered>
492 <binding>
493 <command>set-tooltip</command>
494 <tooltip-id>adf-swap</tooltip-id>
495 <label>Swap ADF frequencies</label>
496 </binding>
497 </hovered>
498 </animation>
499
500 <animation>
501 <type>translate</type>
502 <object-name>knobs.FLT</object-name>
503 <property>instrumentation/adf[0]/flt-btn</property>
504 <factor>-0.004</factor>
505 <axis>
506 <x>1</x>
507 <y>0</y>
508 <z>0</z>
509 </axis>
510 </animation>
511
512 <animation>
513 <type>pick</type>
514 <visible>true</visible>
515 <object-name>knobs.FLT</object-name>
516 <action>
517 <button>0</button>
518 <binding>
519 <command>property-assign</command>
520 <property>instrumentation/adf[0]/flt-btn</property>
521 <value type="int">1</value>
522 </binding>
523 <binding>
524 <condition>
525 <not><property>instrumentation/adf[0]/set-mode</property></not>
526 </condition>
527 <command>property-adjust</command>
528 <property>instrumentation/adf[0]/display-mode</property>
529 <step>1</step>
530 <min>1</min>
531 <max>3</max>
532 <wrap>true</wrap>
533 </binding>
534 <binding>
535 <command>nasal</command>
536 <script>c172p.click("kr87-adf")</script>
537 </binding>
538 <mod-up>
539 <binding>
540 <command>property-assign</command>
541 <property>instrumentation/adf[0]/flt-btn</property>
542 <value type="int">0</value>
543 </binding>
544 <binding>
545 <command>nasal</command>
546 <script>c172p.click("kr87-adf")</script>
547 </binding>
548 </mod-up>
549 </action>
550 <hovered>
551 <binding>
552 <command>set-tooltip</command>
553 <tooltip-id>adf-flt-et</tooltip-id>
554 <label>Flight / Elapsed Timer</label>
555 </binding>
556 </hovered>
557 </animation>
558
559 <animation>
560 <type>translate</type>
561 <object-name>knobs.SET</object-name>
562 <property>instrumentation/adf[0]/set-btn</property>
563 <factor>-0.004</factor>
564 <axis>
565 <x>1</x>
566 <y>0</y>
567 <z>0</z>
568 </axis>
569 </animation>
570
571 <animation>
572 <type>pick</type>
573 <visible>true</visible>
574 <object-name>knobs.SET</object-name>
575 <action>
576 <button>0</button>
577 <binding>
578 <command>property-assign</command>
579 <property>instrumentation/adf[0]/set-btn</property>
580 <value type="int">1</value>
581 </binding>
582 <binding>
583 <command>property-assign</command>
584 <property>instrumentation/adf[0]/set-btn-presstime</property>
585 <property>sim/time/elapsed-sec</property>
586 </binding>
587 <binding>
588 <command>nasal</command>
589 <script>c172p.click("kr87-adf")</script>
590 </binding>
591 <mod-up>
592 <binding>
593 <command>property-assign</command>
594 <property>instrumentation/adf[0]/set-btn</property>
595 <value type="int">0</value>
596 </binding>
597 <binding>
598 <command>nasal</command>
599 <script>c172p.click("kr87-adf")</script>
600 </binding>
601 </mod-up>
602 </action>
603 <hovered>
604 <binding>
605 <command>set-tooltip</command>
606 <tooltip-id>adf-set</tooltip-id>
607 <label>Reset Elapsed Timer</label>
608 </binding>
609 </hovered>
610 </animation>
611
612 <!-- Volume knob -->
613 <animation>
614 <type>knob</type>
615 <object-name>Volume</object-name>
616 <property>instrumentation/adf[0]/volume-norm</property>
617 <factor>-140</factor>
618 <axis>
619 <x>1</x>
620 <y>0</y>
621 <z>0</z>
622 </axis>
623 <center>
624 <x-m>-0.35034</x-m>
625 <y-m> 0.14736</y-m>
626 <z-m>-0.01904</z-m>
627 </center>
628 <action>
629 <binding>
630 <command>property-adjust</command>
631 <property>instrumentation/adf[0]/volume-norm</property>
632 <factor>0.1</factor>
633 <min>0</min>
634 <max>1.0</max>
635 </binding>
636 <!-- Switch on if volume greater than 0.0 -->
637 <binding>
638 <condition>
639 <greater-than>
640 <property>instrumentation/adf[0]/volume-norm</property>
641 <value>0.0</value>
642 </greater-than>
643 </condition>
644 <command>property-assign</command>
645 <property>instrumentation/adf[0]/power-btn</property>
646 <value type="bool">1</value>
647 </binding>
648 <!-- Switch off if volume less than 0.1 -->
649 <binding>
650 <condition>
651 <less-than>
652 <property>instrumentation/adf[0]/volume-norm</property>
653 <value>0.1</value>
654 </less-than>
655 </condition>
656 <command>property-assign</command>
657 <property>instrumentation/adf[0]/power-btn</property>
658 <value type="bool">0</value>
659 </binding>
660 <binding>
661 <command>nasal</command>
662 <script>c172p.click("kr87-adf-dial")</script>
663 </binding>
664 </action>
665 <hovered>
666 <binding>
667 <command>set-tooltip</command>
668 <tooltip-id>adf-volume</tooltip-id>
669 <label>Volume: %d%%</label>
670 <property>instrumentation/adf[0]/volume-norm</property>
671 <mapping>percent</mapping>
672 </binding>
673 </hovered>
674 </animation>
675
676 <!-- Inner frequency (1 kHz) knob -->
677 <animation>
678 <type>knob</type>
679 <object-name>FRQInner</object-name>
680 <property alias="/params/dial-1-khz"/>
681 <factor>-2.5</factor>
682 <axis>
683 <x>1</x>
684 <y>0</y>
685 <z>0</z>
686 </axis>
687 <center>
688 <x-m>-0.33714</x-m>
689 <y-m> 0.17663</y-m>
690 <z-m>-0.01618</z-m>
691 </center>
692 <action>
693 <!-- Normal mode -->
694 <binding>
695 <!-- store current value for overflow comparison -->
696 <condition>
697 <and>
698 <not><property>instrumentation/adf[0]/set-mode</property></not>
699 <equals>
700 <property>instrumentation/adf[0]/display-mode</property>
701 <value type="int">0</value>
702 </equals>
703 </and>
704 </condition>
705 <command>property-assign</command>
706 <property>instrumentation/adf[0]/frequencies/overflow-khz</property>
707 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
708 </binding>
709 <binding>
710 <condition>
711 <and>
712 <not><property>instrumentation/adf[0]/set-mode</property></not>
713 <equals>
714 <property>instrumentation/adf[0]/display-mode</property>
715 <value type="int">0</value>
716 </equals>
717 </and>
718 </condition>
719 <command>property-adjust</command>
720 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
721 <factor>1</factor>
722 <min>200</min>
723 <max>1800</max>
724 <resolution>1</resolution>
725 <wrap>true</wrap>
726 </binding>
727 <binding>
728 <!-- on increase/decrease: detect and prevent overflow -->
729 <condition>
730 <and>
731 <not><property>instrumentation/adf[0]/set-mode</property></not>
732 <equals>
733 <property>instrumentation/adf[0]/display-mode</property>
734 <value type="int">0</value>
735 </equals>
736 </and>
737 </condition>
738 <command>nasal</command>
739 <script><![CDATA[
740 var oldFRQ = getprop("instrumentation/adf[0]/frequencies/overflow-khz");
741 var newFRQ = getprop("instrumentation/adf[0]/frequencies/standby-khz");
742 var diff = math.floor(oldFRQ/100) - math.floor(newFRQ/100);
743 if (diff != 0) setprop("instrumentation/adf[0]/frequencies/standby-khz", newFRQ + diff*100)
744 ]]></script>
745 </binding>
746
747 <!-- FLT/ELT timer mode -->
748 <binding>
749 <!-- store current value for overflow comparison -->
750 <condition>
751 <and>
752 <not><property>instrumentation/adf[0]/set-mode</property></not>
753 <greater-than-equals>
754 <property>instrumentation/adf[0]/display-mode</property>
755 <value type="int">0</value>
756 </greater-than-equals>
757 </and>
758 </condition>
759 <command>property-assign</command>
760 <property>instrumentation/adf[0]/frequencies/overflow-khz</property>
761 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
762 </binding>
763 <binding>
764 <condition>
765 <and>
766 <not><property>instrumentation/adf[0]/set-mode</property></not>
767 <greater-than-equals>
768 <property>instrumentation/adf[0]/display-mode</property>
769 <value type="int">1</value>
770 </greater-than-equals>
771 </and>
772 </condition>
773 <command>property-adjust</command>
774 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
775 <factor>1</factor>
776 <min>200</min>
777 <max>1800</max>
778 <resolution>1</resolution>
779 <wrap>true</wrap>
780 </binding>
781 <binding>
782 <!-- on increase/decrease: detect and prevent overflow -->
783 <condition>
784 <and>
785 <not><property>instrumentation/adf[0]/set-mode</property></not>
786 <greater-than-equals>
787 <property>instrumentation/adf[0]/display-mode</property>
788 <value type="int">1</value>
789 </greater-than-equals>
790 </and>
791 </condition>
792 <command>nasal</command>
793 <script><![CDATA[
794 var oldFRQ = getprop("instrumentation/adf[0]/frequencies/overflow-khz");
795 var newFRQ = getprop("instrumentation/adf[0]/frequencies/selected-khz");
796 var diff = math.floor(oldFRQ/100) - math.floor(newFRQ/100);
797 if (diff != 0) setprop("instrumentation/adf[0]/frequencies/selected-khz", newFRQ + diff*100)
798 ]]></script>
799 </binding>
800
801 <!-- ET set mode -->
802 <binding>
803 <condition>
804 <and>
805 <property>instrumentation/adf[0]/set-mode</property>
806 <equals>
807 <property>instrumentation/adf[0]/display-mode</property>
808 <value type="int">2</value>
809 </equals>
810 </and>
811 </condition>
812 <command>property-adjust</command>
813 <property>instrumentation/adf[0]/enroute-timer/time</property>
814 <factor>1</factor>
815 <resolution>1</resolution>
816 <wrap>false</wrap>
817 <min>0</min>
818 <max>3599</max>
819 </binding>
820
821 <binding>
822 <command>property-adjust</command>
823 <property alias="/params/dial-1-khz"/>
824 <factor>4</factor>
825 <min>0</min>
826 <max>360</max>
827 <wrap>true</wrap>
828 </binding>
829 <binding>
830 <command>nasal</command>
831 <script>c172p.click("kr87-adf-dial")</script>
832 </binding>
833 </action>
834
835 <hovered>
836 <binding>
837 <command>set-tooltip</command>
838 <tooltip-id>adf-kHz</tooltip-id>
839 <label>Adjust ADF frequency by 1 kHz</label>
840 </binding>
841 </hovered>
842 </animation>
843
844 <!-- Outer frequency (100 KHz) knob -->
845 <animation>
846 <type>knob</type>
847 <object-name>FRQOuter</object-name>
848 <property alias="/params/dial-100-khz"/>
849 <factor>-2.5</factor>
850 <axis>
851 <x>1</x>
852 <y>0</y>
853 <z>0</z>
854 </axis>
855 <center>
856 <x-m>-0.33714</x-m>
857 <y-m> 0.17663</y-m>
858 <z-m>-0.01618</z-m>
859 </center>
860 <action>
861 <!-- Normal mode -->
862 <binding>
863 <condition>
864 <and>
865 <not><property>instrumentation/adf[0]/set-mode</property></not>
866 <equals>
867 <property>instrumentation/adf[0]/display-mode</property>
868 <value type="int">0</value>
869 </equals>
870 </and>
871 </condition>
872 <command>property-adjust</command>
873 <property>instrumentation/adf[0]/frequencies/standby-khz</property>
874 <factor>100</factor>
875 <min>200</min>
876 <max>1800</max>
877 <resolution>1</resolution>
878 <wrap>true</wrap>
879 </binding>
880
881 <!-- FT/ET mode -->
882 <binding>
883 <condition>
884 <and>
885 <not><property>instrumentation/adf[0]/set-mode</property></not>
886 <greater-than-equals>
887 <property>instrumentation/adf[0]/display-mode</property>
888 <value type="int">1</value>
889 </greater-than-equals>
890 </and>
891 </condition>
892 <command>property-adjust</command>
893 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
894 <factor>100</factor>
895 <min>200</min>
896 <max>1800</max>
897 <resolution>1</resolution>
898 <wrap>true</wrap>
899 </binding>
900
901 <!-- ET set mode -->
902 <binding>
903 <condition>
904 <and>
905 <property>instrumentation/adf[0]/set-mode</property>
906 <equals>
907 <property>instrumentation/adf[0]/display-mode</property>
908 <value type="int">2</value>
909 </equals>
910 </and>
911 </condition>
912 <command>property-adjust</command>
913 <property>instrumentation/adf[0]/enroute-timer/time</property>
914 <factor>60</factor>
915 <resolution>1</resolution>
916 <wrap>false</wrap>
917 <min>0</min>
918 <max>3599</max>
919 </binding>
920
921 <binding>
922 <command>property-adjust</command>
923 <property alias="/params/dial-100-khz"/>
924 <factor>4</factor>
925 <min>0</min>
926 <max>360</max>
927 <wrap>true</wrap>
928 </binding>
929 <binding>
930 <command>nasal</command>
931 <script>c172p.click("kr87-adf-dial")</script>
932 </binding>
933 </action>
934 <hovered>
935 <binding>
936 <command>set-tooltip</command>
937 <tooltip-id>adf-100kHz</tooltip-id>
938 <label>Adjust ADF frequency by 100 kHz</label>
939 </binding>
940 </hovered>
941 </animation>
942
943 <effect>
944 <inherits-from>../../../../Effects/interior/lm-kr87</inherits-from>
945 <object-name>Volume</object-name>
946 <object-name>FRQOuter</object-name>
947 <object-name>FRQInner</object-name>
948 <object-name>Chassis</object-name>
949 <object-name>knobs.ADF</object-name>
950 <object-name>knobs.BFO</object-name>
951 <object-name>knobs.FRQ</object-name>
952 <object-name>knobs.FLT</object-name>
953 <object-name>knobs.SET</object-name>
954 </effect>
955 <effect>
956 <inherits-from>../../../../Effects/interior/c172p-interior</inherits-from>
957 <object-name>indicator.ANT</object-name>
958 <object-name>indicator.ADF</object-name>
959 <object-name>indicator.BFO</object-name>
960 <object-name>indicator.FRQ</object-name>
961 <object-name>indicator.FLT</object-name>
962 <object-name>indicator.ET</object-name>
963 <object-name>indicator.Use.1000</object-name>
964 <object-name>indicator.Use.100</object-name>
965 <object-name>indicator.Use.10</object-name>
966 <object-name>indicator.Use.1</object-name>
967 <object-name>indicator.dots</object-name>
968 <object-name>indicator.Stby.1000</object-name>
969 <object-name>indicator.Stby.100</object-name>
970 <object-name>indicator.Stby.10</object-name>
971 <object-name>indicator.Stby.1</object-name>
972 </effect>
973
974 <animation>
975 <type>material</type>
976 <object-name>Volume</object-name>
977 <object-name>FRQOuter</object-name>
978 <object-name>FRQInner</object-name>
979 <object-name>Chassis</object-name>
980 <object-name>knobs.ADF</object-name>
981 <object-name>knobs.BFO</object-name>
982 <object-name>knobs.FRQ</object-name>
983 <object-name>knobs.FLT</object-name>
984 <object-name>knobs.SET</object-name>
985 <condition>
986 <or>
987 <not>
988 <property>sim/rendering/shaders/skydome</property>
989 </not>
990 <equals>
991 <property>sim/rendering/shaders/model</property>
992 <value>0</value>
993 </equals>
994 </or>
995 </condition>
996 <emission>
997 <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
998 <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
999 <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
1000 </emission>
1001 </animation>
1002
1003 <animation>
1004 <type>select</type>
1005 <object-name>indicator</object-name>
1006 <condition>
1007 <property>instrumentation/adf[0]/operable</property>
1008 </condition>
1009 </animation>
1010
1011 <animation>
1012 <type>material</type>
1013 <object-name>knobs.ADF</object-name>
1014 <object-name>knobs.BFO</object-name>
1015 <object-name>knobs.FRQ</object-name>
1016 <object-name>knobs.FLT</object-name>
1017 <object-name>knobs.SET</object-name>
1018 <emission>
1019 <red>0.5</red>
1020 <green>0.1</green>
1021 <blue>0.00005</blue>
1022 <factor-prop>/sim/model/c172p/lighting/adf</factor-prop>
1023 </emission>
1024 </animation>
1025
1026 <animation>
1027 <type>material</type>
1028 <object-name>indicator.ANT</object-name>
1029 <object-name>indicator.ADF</object-name>
1030 <object-name>indicator.BFO</object-name>
1031 <object-name>indicator.FRQ</object-name>
1032 <object-name>indicator.FLT</object-name>
1033 <object-name>indicator.ET</object-name>
1034 <object-name>indicator.Use.1000</object-name>
1035 <object-name>indicator.Use.100</object-name>
1036 <object-name>indicator.Use.10</object-name>
1037 <object-name>indicator.Use.1</object-name>
1038 <object-name>indicator.dots</object-name>
1039 <object-name>indicator.Stby.1000</object-name>
1040 <object-name>indicator.Stby.100</object-name>
1041 <object-name>indicator.Stby.10</object-name>
1042 <object-name>indicator.Stby.1</object-name>
1043 <condition>
1044 <and>
1045 <not>
1046 <property>sim/rendering/rembrandt/enabled</property>
1047 </not>
1048 <greater-than>
1049 <property>sim/model/c172p/lighting/adf</property>
1050 <value>0.0</value>
1051 </greater-than>
1052 </and>
1053 </condition>
1054 <emission>
1055 <red>1.0</red>
1056 <green>1.0</green>
1057 <blue>1.0</blue>
1058 <factor-prop>/sim/model/c172p/lighting/adf</factor-prop>
1059 </emission>
1060 </animation>
1061
1062 <animation>
1063 <object-name>indicator.ANT</object-name>
1064 <object-name>indicator.ADF</object-name>
1065 <object-name>indicator.BFO</object-name>
1066 <object-name>indicator.FRQ</object-name>
1067 <object-name>indicator.FLT</object-name>
1068 <object-name>indicator.ET</object-name>
1069 <object-name>indicator.Use.1000</object-name>
1070 <object-name>indicator.Use.100</object-name>
1071 <object-name>indicator.Use.10</object-name>
1072 <object-name>indicator.Use.1</object-name>
1073 <object-name>indicator.dots</object-name>
1074 <object-name>indicator.Stby.1000</object-name>
1075 <object-name>indicator.Stby.100</object-name>
1076 <object-name>indicator.Stby.10</object-name>
1077 <object-name>indicator.Stby.1</object-name>
1078 <condition>
1079 <and>
1080 <not>
1081 <property>sim/rendering/rembrandt/enabled</property>
1082 </not>
1083 <equals>
1084 <property>sim/model/c172p/lighting/adf</property>
1085 <value>0.0</value>
1086 </equals>
1087 </and>
1088 </condition>
1089 <emission>
1090 <red>1.0</red>
1091 <green>1.0</green>
1092 <blue>1.0</blue>
1093 </emission>
1094 </animation>
1095
1096 </PropertyList>