3 #############################################################################
4 # (C) 2007 by Yurik V. Nikiforoff - port for FGFS, FDM, #
5 # 2d & 3d instruments, animations, systems and over. #
6 # yurik@megasignal.com #
7 #############################################################################
10 <!-- PN-6 ABSU (autothrottle) control
11 3D instrument for Tu-154 -->
14 <!--External panel lighting-->
17 <object-name>base</object-name>
18 <object-name>selector</object-name>
19 <object-name>cover_1</object-name>
20 <object-name>cover_2</object-name>
21 <object-name>box_1</object-name>
22 <object-name>box_2</object-name>
23 <object-name>otkl</object-name>
24 <object-name>podg</object-name>
25 <object-name>lev_prav</object-name>
26 <object-name>at</object-name>
27 <object-name>at_wheel</object-name>
29 <red-prop>tu154/light/panel/ext-red</red-prop>
30 <green-prop>tu154/light/panel/ext-green</green-prop>
31 <blue-prop>tu154/light/panel/ext-blue</blue-prop>
35 <!-- Internal instruments lighting -->
38 <object-name>text</object-name>
39 <object-name>_handle_marker</object-name>
41 <red-prop>tu154/light/instruments/int-red</red-prop>
42 <green-prop>tu154/light/instruments/int-green</green-prop>
43 <blue-prop>tu154/light/instruments/int-blue</blue-prop>
49 <object-name>lamp_1</object-name>
50 <object-name>lamp_2</object-name>
51 <object-name>lamp_3</object-name>
52 <object-name>lamp_4</object-name>
53 <object-name>lamp_5</object-name>
58 <factor-prop>tu154/instrumentation/pn-6/serviceable</factor-prop>
64 <object-name>selector</object-name>
65 <property>tu154/switches/pn-6-selector</property>
67 <entry><ind> 0.0</ind> <dep> -70.0</dep></entry>
68 <entry><ind> 1.0</ind> <dep> -40.0</dep></entry>
69 <entry><ind> 2.0</ind> <dep> -10.0</dep></entry>
70 <entry><ind> 3.0</ind> <dep> 10.0</dep></entry>
71 <entry><ind> 4.0</ind> <dep> 40.0</dep></entry>
87 <object-name>at_wheel</object-name>
88 <property>tu154/switches/pn-6-wheel</property>
102 <type>translate</type>
103 <object-name>at</object-name>
104 <property>tu154/switches/pn-6-button</property>
105 <factor>0.01</factor>
114 <type>material</type>
115 <object-name>g1</object-name>
120 <factor-prop>tu154/instrumentation/pn-6/g1</factor-prop>
124 <type>material</type>
125 <object-name>g2</object-name>
130 <factor-prop>tu154/instrumentation/pn-6/g2</factor-prop>
134 <type>material</type>
135 <object-name>g3</object-name>
140 <factor-prop>tu154/instrumentation/pn-6/g3</factor-prop>
144 <type>material</type>
145 <object-name>stab</object-name>
150 <factor-prop>tu154/instrumentation/pn-6/stab</factor-prop>
157 <object-name>cover_1</object-name>
158 <property>tu154/switches/pn-6-cover-1</property>
160 <entry><ind> 0.0</ind> <dep> 10.0</dep></entry>
161 <entry><ind> 1.0</ind> <dep> 120.0</dep></entry>
176 <object-name>cover_2</object-name>
177 <property>tu154/switches/pn-6-cover-2</property>
179 <entry><ind> 0.0</ind> <dep> 10.0</dep></entry>
180 <entry><ind> 1.0</ind> <dep> 120.0</dep></entry>
197 <object-name>otkl</object-name>
198 <property>tu154/switches/pn-6-otkl</property>
200 <entry><ind> 0.0</ind> <dep> -60.0</dep></entry>
201 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
217 <object-name>podg</object-name>
218 <property>tu154/switches/pn-6-podg</property>
220 <entry><ind> 0.0</ind> <dep> -60.0</dep></entry>
221 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
237 <object-name>lev_prav</object-name>
238 <property>tu154/switches/pn-6-lp</property>
240 <entry><ind> 0.0</ind> <dep> -60.0</dep></entry>
241 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
257 <object-name>lamp_1</object-name>
259 <property>tu154/instrumentation/pn-6/lamp-1</property>
264 <object-name>lamp_2</object-name>
266 <property>tu154/instrumentation/pn-6/lamp-2</property>
271 <object-name>lamp_3</object-name>
273 <property>tu154/instrumentation/pn-6/lamp-3</property>
278 <object-name>lamp_4</object-name>
280 <property>tu154/instrumentation/pn-6/lamp-4</property>
285 <object-name>lamp_5</object-name>
287 <property>tu154/instrumentation/pn-6/lamp-5</property>
292 <!--************************ Controls *******************************-->
296 <object-name>at</object-name>
297 <visible>true</visible>
300 <repeatable>false</repeatable>
302 <command>nasal</command>
304 interpolate("tu154/switches/pn-6-button", 1.0, 0.1 );
308 <command>nasal</command>
310 absu.absu_at_check(1);
315 <command>nasal</command>
317 interpolate("tu154/switches/pn-6-button", 0.0, 0.1 );
321 <command>nasal</command>
323 absu.absu_at_check(0);
333 <object-name>g1</object-name>
334 <visible>true</visible>
337 <repeatable>false</repeatable>
339 <command>property-toggle</command>
340 <property>tu154/instrumentation/pn-6/g1</property>
346 <object-name>g2</object-name>
347 <visible>true</visible>
350 <repeatable>false</repeatable>
352 <command>property-toggle</command>
353 <property>tu154/instrumentation/pn-6/g2</property>
359 <object-name>g3</object-name>
360 <visible>true</visible>
363 <repeatable>false</repeatable>
365 <command>property-toggle</command>
366 <property>tu154/instrumentation/pn-6/g3</property>
372 <object-name>stab</object-name>
373 <visible>true</visible>
376 <repeatable>false</repeatable>
378 <command>nasal</command>
380 absu.absu_at_start();
389 <object-name>cover_1</object-name>
390 <visible>true</visible>
393 <repeatable>false</repeatable>
395 <command>nasal</command>
397 if( getprop("tu154/switches/pn-6-cover-1") == 0.0 ){
398 interpolate("tu154/switches/pn-6-cover-1", 1.0, 0.1 );}
399 else {interpolate("tu154/switches/pn-6-cover-1", 0.0, 0.1 );}
406 <object-name>cover_2</object-name>
407 <visible>true</visible>
410 <repeatable>false</repeatable>
412 <command>nasal</command>
414 if( getprop("tu154/switches/pn-6-cover-2") == 0.0 ){
415 interpolate("tu154/switches/pn-6-cover-2", 1.0, 0.1 );}
416 else {interpolate("tu154/switches/pn-6-cover-2", 0.0, 0.1 );}
424 <object-name>hs_1</object-name>
425 <visible>false</visible>
428 <repeatable>false</repeatable>
430 <command>nasal</command>
432 interpolate("tu154/switches/pn-6-otkl", 1.0, 0.1 );
439 <object-name>hs_2</object-name>
440 <visible>false</visible>
443 <repeatable>false</repeatable>
445 <command>nasal</command>
447 interpolate("tu154/switches/pn-6-otkl", 0.0, 0.1 );
454 <object-name>hs_3</object-name>
455 <visible>false</visible>
458 <repeatable>false</repeatable>
460 <command>nasal</command>
462 interpolate("tu154/switches/pn-6-podg", 1.0, 0.1 );
466 <command>nasal</command>
468 absu.absu_at_handler(3);
475 <object-name>hs_4</object-name>
476 <visible>false</visible>
479 <repeatable>false</repeatable>
481 <command>nasal</command>
483 interpolate("tu154/switches/pn-6-podg", 0.0, 0.1 );
487 <command>nasal</command>
489 absu.absu_at_handler(2);
496 <object-name>hs_5</object-name>
497 <visible>false</visible>
500 <repeatable>false</repeatable>
502 <command>nasal</command>
504 interpolate("tu154/switches/pn-6-lp", 1.0, 0.1 );
511 <object-name>hs_6</object-name>
512 <visible>false</visible>
515 <repeatable>false</repeatable>
517 <command>nasal</command>
519 interpolate("tu154/switches/pn-6-lp", 0.0, 0.1 );
527 <object-name>selector</object-name>
528 <visible>true</visible>
531 <repeatable>false</repeatable>
533 <command>property-adjust</command>
534 <property>tu154/switches/pn-6-selector</property>
544 <object-name>selector</object-name>
545 <visible>true</visible>
548 <repeatable>false</repeatable>
550 <command>property-adjust</command>
551 <property>tu154/switches/pn-6-selector</property>
562 <object-name>selector</object-name>
563 <visible>true</visible>
566 <repeatable>false</repeatable>
568 <command>property-adjust</command>
569 <property>tu154/switches/pn-6-selector</property>
579 <object-name>selector</object-name>
580 <visible>true</visible>
583 <repeatable>false</repeatable>
585 <command>property-adjust</command>
586 <property>tu154/switches/pn-6-selector</property>
597 <object-name>at_wheel</object-name>
598 <visible>true</visible>
601 <repeatable>false</repeatable>
603 <command>property-adjust</command>
604 <property>tu154/switches/pn-6-wheel</property>
608 <command>property-adjust</command>
609 <property>tu154/instrumentation/pn-6/at-kt</property>
614 <command>nasal</command>
615 <script>help.at()</script>
621 <object-name>at_wheel</object-name>
622 <visible>true</visible>
625 <repeatable>false</repeatable>
627 <command>property-adjust</command>
628 <property>tu154/switches/pn-6-wheel</property>
632 <command>property-adjust</command>
633 <property>tu154/instrumentation/pn-6/at-kt</property>
638 <command>nasal</command>
639 <script>help.at()</script>
643 <!--Mouse wheel AT -->
646 <object-name>at_wheel</object-name>
647 <visible>true</visible>
650 <repeatable>false</repeatable>
652 <command>property-adjust</command>
653 <property>tu154/switches/pn-6-wheel</property>
657 <command>property-adjust</command>
658 <property>tu154/instrumentation/pn-6/at-kt</property>
663 <command>nasal</command>
664 <script>help.at()</script>
670 <object-name>at_wheel</object-name>
671 <visible>true</visible>
674 <repeatable>false</repeatable>
676 <command>property-adjust</command>
677 <property>tu154/switches/pn-6-wheel</property>
681 <command>property-adjust</command>
682 <property>tu154/instrumentation/pn-6/at-kt</property>
687 <command>nasal</command>
688 <script>help.at()</script>