Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / absu / pn-6.xml
1 <?xml version="1.0"?>
2 <!--
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     #############################################################################         
8     -->
9
10 <!-- PN-6 ABSU (autothrottle) control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>pn-6.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
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>
28     <emission>
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>
32   </emission>
33 </animation>
34
35 <!-- Internal instruments lighting -->
36 <animation>
37   <type>material</type>
38   <object-name>text</object-name>
39   <object-name>_handle_marker</object-name>
40   <emission>
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>
44   </emission>
45 </animation>
46
47 <animation>
48   <type>material</type>
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>
54   <emission>
55     <red>1.0</red>
56     <green>1.0</green>
57     <blue>1.0</blue>
58     <factor-prop>tu154/instrumentation/pn-6/serviceable</factor-prop>
59   </emission>
60 </animation>
61 <!--AT selector-->
62 <animation>
63   <type>rotate</type>
64   <object-name>selector</object-name>
65   <property>tu154/switches/pn-6-selector</property>
66   <interpolation>
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>
72   </interpolation>
73   <center>
74     <x-m>0.0</x-m>
75     <y-m>0.02679</y-m>
76     <z-m>0.07615</z-m>
77   </center>
78   <axis>
79     <x>-1.0</x>
80     <y>0.0</y>
81     <z>0.0</z>
82   </axis>
83 </animation>
84 <!--AT wheels-->
85 <animation>
86   <type>rotate</type>
87   <object-name>at_wheel</object-name>
88   <property>tu154/switches/pn-6-wheel</property>
89   <center>
90     <x-m>0.0</x-m>
91     <y-m>0.0</y-m>
92     <z-m>0.00815</z-m>
93   </center>
94   <axis>
95     <x>0.0</x>
96     <y>-1.0</y>
97     <z>0.0</z>
98   </axis>
99 </animation>
100 <!--AT buttons-->
101 <animation>
102   <type>translate</type>
103   <object-name>at</object-name>
104   <property>tu154/switches/pn-6-button</property>  
105   <factor>0.01</factor>
106   <axis>
107     <x>-1.0</x>
108     <y>0.0</y>
109     <z>0.0</z>
110   </axis>
111 </animation>
112 <!--Lamp buttons-->
113 <animation>
114   <type>material</type>
115   <object-name>g1</object-name>
116   <emission>
117     <red>1.0</red>
118     <green>1.0</green>
119     <blue>1.0</blue>
120     <factor-prop>tu154/instrumentation/pn-6/g1</factor-prop>
121   </emission>
122 </animation>
123 <animation>
124   <type>material</type>
125   <object-name>g2</object-name>
126   <emission>
127     <red>1.0</red>
128     <green>1.0</green>
129     <blue>1.0</blue>
130     <factor-prop>tu154/instrumentation/pn-6/g2</factor-prop>
131   </emission>
132 </animation>
133 <animation>
134   <type>material</type>
135   <object-name>g3</object-name>
136   <emission>
137     <red>1.0</red>
138     <green>1.0</green>
139     <blue>1.0</blue>
140     <factor-prop>tu154/instrumentation/pn-6/g3</factor-prop>
141   </emission>
142 </animation>
143 <animation>
144   <type>material</type>
145   <object-name>stab</object-name>
146   <emission>
147     <red>1.0</red>
148     <green>1.0</green>
149     <blue>1.0</blue>
150     <factor-prop>tu154/instrumentation/pn-6/stab</factor-prop>
151   </emission>
152 </animation>
153
154 <!--Switch covers-->
155 <animation>
156   <type>rotate</type>
157   <object-name>cover_1</object-name>
158   <property>tu154/switches/pn-6-cover-1</property>
159   <interpolation>
160     <entry><ind>        0.0</ind>       <dep>   10.0</dep></entry>
161     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
162   </interpolation>
163   <center>
164     <x-m>0.0036</x-m>
165     <y-m>0.0</y-m>
166     <z-m>-0.02798</z-m>
167   </center>
168   <axis>
169     <x>0.0</x>
170     <y>-1.0</y>
171     <z>0.0</z>
172   </axis>
173 </animation>
174 <animation>
175   <type>rotate</type>
176   <object-name>cover_2</object-name>
177   <property>tu154/switches/pn-6-cover-2</property>
178   <interpolation>
179     <entry><ind>        0.0</ind>       <dep>   10.0</dep></entry>
180     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
181   </interpolation>
182   <center>
183     <x-m>0.0036</x-m>
184     <y-m>0.0</y-m>
185     <z-m>-0.02798</z-m>
186   </center>
187   <axis>
188     <x>0.0</x>
189     <y>-1.0</y>
190     <z>0.0</z>
191   </axis>
192 </animation>
193
194 <!--Switches-->
195 <animation>
196   <type>rotate</type>
197   <object-name>otkl</object-name>
198   <property>tu154/switches/pn-6-otkl</property>
199   <interpolation>
200     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
201     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
202   </interpolation>
203   <center>
204     <x-m>0.0</x-m>
205     <y-m>0.0</y-m>
206     <z-m>-0.04342</z-m>
207   </center>
208   <axis>
209     <x>0.0</x>
210     <y>-1.0</y>
211     <z>0.0</z>
212   </axis>
213 </animation>
214
215 <animation>
216   <type>rotate</type>
217   <object-name>podg</object-name>
218   <property>tu154/switches/pn-6-podg</property>
219   <interpolation>
220     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
221     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
222   </interpolation>
223   <center>
224     <x-m>0.0</x-m>
225     <y-m>0.0</y-m>
226     <z-m>-0.04342</z-m>
227   </center>
228   <axis>
229     <x>0.0</x>
230     <y>-1.0</y>
231     <z>0.0</z>
232   </axis>
233 </animation>
234
235 <animation>
236   <type>rotate</type>
237   <object-name>lev_prav</object-name>
238   <property>tu154/switches/pn-6-lp</property>
239   <interpolation>
240     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
241     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
242   </interpolation>
243   <center>
244     <x-m>0.0</x-m>
245     <y-m>0.0</y-m>
246     <z-m>-0.04483</z-m>
247   </center>
248   <axis>
249     <x>0.0</x>
250     <y>-1.0</y>
251     <z>0.0</z>
252   </axis>
253 </animation>
254 <!--Lamps-->
255 <animation>
256   <type>select</type>
257   <object-name>lamp_1</object-name>
258   <condition>
259       <property>tu154/instrumentation/pn-6/lamp-1</property>
260   </condition>
261 </animation>
262 <animation>
263   <type>select</type>
264   <object-name>lamp_2</object-name>
265   <condition>
266     <property>tu154/instrumentation/pn-6/lamp-2</property>
267   </condition>
268 </animation>
269 <animation>
270   <type>select</type>
271   <object-name>lamp_3</object-name>
272   <condition>
273     <property>tu154/instrumentation/pn-6/lamp-3</property>
274   </condition>
275 </animation>
276 <animation>
277   <type>select</type>
278   <object-name>lamp_4</object-name>
279   <condition>
280     <property>tu154/instrumentation/pn-6/lamp-4</property>
281   </condition>
282 </animation>
283 <animation>
284   <type>select</type>
285   <object-name>lamp_5</object-name>
286   <condition>
287     <property>tu154/instrumentation/pn-6/lamp-5</property>
288   </condition>
289 </animation>
290
291
292 <!--************************ Controls *******************************-->
293 <!--AT knobs-->
294 <animation>
295   <type>pick</type>
296   <object-name>at</object-name>
297   <visible>true</visible>
298   <action>
299     <button>0</button>
300     <repeatable>false</repeatable>
301     <binding>
302       <command>nasal</command>
303       <script>
304         interpolate("tu154/switches/pn-6-button", 1.0, 0.1 );
305       </script>
306     </binding>
307     <binding>
308       <command>nasal</command>
309       <script>
310         absu.absu_at_check(1);
311       </script>
312     </binding>
313     <mod-up>
314       <binding>
315         <command>nasal</command>
316         <script>
317           interpolate("tu154/switches/pn-6-button", 0.0, 0.1 );
318         </script>
319       </binding>
320       <binding>
321         <command>nasal</command>
322         <script>
323           absu.absu_at_check(0);
324         </script>
325       </binding>
326     </mod-up>
327   </action>
328 </animation>
329
330 <!--Lamp Buttons-->
331 <animation>
332   <type>pick</type>
333   <object-name>g1</object-name>
334   <visible>true</visible>
335   <action>
336     <button>0</button>
337     <repeatable>false</repeatable>
338     <binding>
339       <command>property-toggle</command>
340       <property>tu154/instrumentation/pn-6/g1</property>
341     </binding>
342   </action>
343 </animation>
344 <animation>
345   <type>pick</type>
346   <object-name>g2</object-name>
347   <visible>true</visible>
348   <action>
349     <button>0</button>
350     <repeatable>false</repeatable>
351     <binding>
352       <command>property-toggle</command>
353       <property>tu154/instrumentation/pn-6/g2</property>
354     </binding>
355   </action>
356 </animation>
357 <animation>
358   <type>pick</type>
359   <object-name>g3</object-name>
360   <visible>true</visible>
361   <action>
362     <button>0</button>
363     <repeatable>false</repeatable>
364     <binding>
365       <command>property-toggle</command>
366       <property>tu154/instrumentation/pn-6/g3</property>
367     </binding>
368   </action>
369 </animation>
370 <animation>
371   <type>pick</type>
372   <object-name>stab</object-name>
373   <visible>true</visible>
374   <action>
375     <button>0</button>
376     <repeatable>false</repeatable>
377     <binding>
378       <command>nasal</command>
379       <script>
380         absu.absu_at_start();
381       </script>
382     </binding>
383   </action>
384 </animation>
385
386 <!--Covers-->
387 <animation>
388   <type>pick</type>
389   <object-name>cover_1</object-name>
390   <visible>true</visible>
391   <action>
392     <button>0</button>
393     <repeatable>false</repeatable>
394     <binding>
395       <command>nasal</command>
396       <script>
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 );}
400       </script>
401     </binding>
402   </action>
403 </animation>
404 <animation>
405   <type>pick</type>
406   <object-name>cover_2</object-name>
407   <visible>true</visible>
408   <action>
409     <button>0</button>
410     <repeatable>false</repeatable>
411     <binding>
412       <command>nasal</command>
413       <script>
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 );}
417       </script>
418     </binding>
419   </action>
420 </animation>
421 <!--Switches-->
422 <animation>
423   <type>pick</type>
424   <object-name>hs_1</object-name>
425   <visible>false</visible>
426   <action>
427     <button>0</button>
428     <repeatable>false</repeatable>
429     <binding>
430       <command>nasal</command>
431       <script>
432         interpolate("tu154/switches/pn-6-otkl", 1.0, 0.1 );
433       </script>
434     </binding>
435   </action>
436 </animation>
437 <animation>
438   <type>pick</type>
439   <object-name>hs_2</object-name>
440   <visible>false</visible>
441   <action>
442     <button>0</button>
443     <repeatable>false</repeatable>
444     <binding>
445       <command>nasal</command>
446       <script>
447         interpolate("tu154/switches/pn-6-otkl", 0.0, 0.1 );
448       </script>
449     </binding>
450   </action>
451 </animation>
452 <animation>
453   <type>pick</type>
454   <object-name>hs_3</object-name>
455   <visible>false</visible>
456   <action>
457     <button>0</button>
458     <repeatable>false</repeatable>
459     <binding>
460       <command>nasal</command>
461       <script>
462         interpolate("tu154/switches/pn-6-podg", 1.0, 0.1 );
463       </script>
464     </binding>
465     <binding>
466       <command>nasal</command>
467       <script>
468         absu.absu_at_handler(3);
469       </script>
470     </binding>
471   </action>
472 </animation>
473 <animation>
474   <type>pick</type>
475   <object-name>hs_4</object-name>
476   <visible>false</visible>
477   <action>
478     <button>0</button>
479     <repeatable>false</repeatable>
480     <binding>
481       <command>nasal</command>
482       <script>
483         interpolate("tu154/switches/pn-6-podg", 0.0, 0.1 );
484       </script>
485     </binding>
486     <binding>
487       <command>nasal</command>
488       <script>
489         absu.absu_at_handler(2);
490       </script>
491     </binding>
492   </action>
493 </animation>
494 <animation>
495   <type>pick</type>
496   <object-name>hs_5</object-name>
497   <visible>false</visible>
498   <action>
499     <button>0</button>
500     <repeatable>false</repeatable>
501     <binding>
502       <command>nasal</command>
503       <script>
504         interpolate("tu154/switches/pn-6-lp", 1.0, 0.1 );
505       </script>
506     </binding>
507   </action>
508 </animation>
509 <animation>
510   <type>pick</type>
511   <object-name>hs_6</object-name>
512   <visible>false</visible>
513   <action>
514     <button>0</button>
515     <repeatable>false</repeatable>
516     <binding>
517       <command>nasal</command>
518       <script>
519         interpolate("tu154/switches/pn-6-lp", 0.0, 0.1 );
520       </script>
521     </binding>
522   </action>
523 </animation>
524 <!--Selector-->
525 <animation>
526   <type>pick</type>
527   <object-name>selector</object-name>
528   <visible>true</visible>
529   <action>
530     <button>0</button>
531     <repeatable>false</repeatable>
532     <binding>
533       <command>property-adjust</command>
534       <property>tu154/switches/pn-6-selector</property>
535       <step>1.0</step>
536       <min>0.0</min>
537       <max>4.0</max>
538       <wrap>false</wrap>
539     </binding>
540   </action>
541 </animation>
542 <animation>
543   <type>pick</type>
544   <object-name>selector</object-name>
545   <visible>true</visible>
546   <action>
547     <button>1</button>
548     <repeatable>false</repeatable>
549     <binding>
550       <command>property-adjust</command>
551       <property>tu154/switches/pn-6-selector</property>
552       <step>-1.0</step>
553       <min>0.0</min>
554       <max>4.0</max>
555       <wrap>false</wrap>
556     </binding>
557   </action>
558 </animation>
559 <!--Mouse wheel-->
560 <animation>
561   <type>pick</type>
562   <object-name>selector</object-name>
563   <visible>true</visible>
564   <action>
565     <button>3</button>
566     <repeatable>false</repeatable>
567     <binding>
568       <command>property-adjust</command>
569       <property>tu154/switches/pn-6-selector</property>
570       <step>1.0</step>
571       <min>0.0</min>
572       <max>4.0</max>
573       <wrap>false</wrap>
574     </binding>
575   </action>
576 </animation>
577 <animation>
578   <type>pick</type>
579   <object-name>selector</object-name>
580   <visible>true</visible>
581   <action>
582     <button>4</button>
583     <repeatable>false</repeatable>
584     <binding>
585       <command>property-adjust</command>
586       <property>tu154/switches/pn-6-selector</property>
587       <step>-1.0</step>
588       <min>0.0</min>
589       <max>4.0</max>
590       <wrap>false</wrap>
591     </binding>
592   </action>
593 </animation>
594 <!--AT wheel-->
595 <animation>
596   <type>pick</type>
597   <object-name>at_wheel</object-name>
598   <visible>true</visible>
599   <action>
600     <button>0</button>
601     <repeatable>false</repeatable>
602     <binding>
603       <command>property-adjust</command>
604       <property>tu154/switches/pn-6-wheel</property>
605       <step>5.0</step>
606     </binding>
607     <binding>
608       <command>property-adjust</command>
609       <property>tu154/instrumentation/pn-6/at-kt</property>
610       <step>1.0</step>
611       <max>323.0</max>
612     </binding>
613     <binding>
614       <command>nasal</command>
615       <script>help.at()</script>
616     </binding>    
617   </action>
618 </animation>
619 <animation>
620   <type>pick</type>
621   <object-name>at_wheel</object-name>
622   <visible>true</visible>
623   <action>
624     <button>1</button>
625     <repeatable>false</repeatable>
626     <binding>
627       <command>property-adjust</command>
628       <property>tu154/switches/pn-6-wheel</property>
629       <step>-5.0</step>
630     </binding>
631     <binding>
632       <command>property-adjust</command>
633       <property>tu154/instrumentation/pn-6/at-kt</property>
634       <step>-1.0</step>
635       <min>118.0</min>
636     </binding>
637     <binding>
638       <command>nasal</command>
639       <script>help.at()</script>
640     </binding>    
641   </action>
642 </animation>
643 <!--Mouse wheel AT -->
644 <animation>
645   <type>pick</type>
646   <object-name>at_wheel</object-name>
647   <visible>true</visible>
648   <action>
649     <button>3</button>
650     <repeatable>false</repeatable>  
651     <binding>
652       <command>property-adjust</command>
653       <property>tu154/switches/pn-6-wheel</property>
654       <step>5.0</step>
655     </binding>
656     <binding>
657       <command>property-adjust</command>
658       <property>tu154/instrumentation/pn-6/at-kt</property>
659       <step>1.0</step>
660       <max>323.0</max>
661     </binding>
662     <binding>
663       <command>nasal</command>
664       <script>help.at()</script>
665     </binding>    
666   </action>
667 </animation>
668 <animation>
669   <type>pick</type>
670   <object-name>at_wheel</object-name>
671   <visible>true</visible>
672   <action>
673     <button>4</button>
674     <repeatable>false</repeatable>
675     <binding>
676       <command>property-adjust</command>
677       <property>tu154/switches/pn-6-wheel</property>
678       <step>-5.0</step>
679     </binding>
680     <binding>
681       <command>property-adjust</command>
682       <property>tu154/instrumentation/pn-6/at-kt</property>
683       <step>-1.0</step>
684       <min>118.0</min>
685     </binding>
686     <binding>
687       <command>nasal</command>
688       <script>help.at()</script>
689     </binding>    
690   </action>
691 </animation>
692
693
694 </PropertyList>