Tupolev Tu-154B-2 by Yurik and his team.
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / absu / pu-46+pn-5.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 <!-- PU-46 & PN-5 ABSU (autopilot) control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>pu-46+pn-5.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
17   <object-name>base</object-name>
18   <object-name>pnp_selector</object-name>
19   <object-name>pitch_wheel</object-name>
20   <object-name>kurs_handle</object-name>
21   <object-name>cover_1</object-name>
22   <object-name>cover_2</object-name>
23   <object-name>tang</object-name>
24   <object-name>kren</object-name>
25   <object-name>boltanka</object-name>
26   <object-name>strelki</object-name>  
27   <object-name>navigac</object-name>
28   <object-name>posadk</object-name>
29     <emission>
30     <red-prop>tu154/light/panel/ext-red</red-prop>
31     <green-prop>tu154/light/panel/ext-green</green-prop>
32     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
33   </emission>
34 </animation>
35
36 <!-- Internal instruments lighting -->
37 <animation>
38   <type>material</type>
39   <object-name>text</object-name>
40   <object-name>otkl_heading</object-name>
41   <object-name>yoke_heading</object-name>
42   <object-name>auto_heading</object-name>
43   <object-name>otkl_pitch</object-name>
44   <object-name>yoke_pitch</object-name>
45   <object-name>auto_pitch</object-name>
46   <object-name>_handle_marker</object-name>
47   <emission>
48     <red-prop>tu154/light/instruments/int-red</red-prop>
49     <green-prop>tu154/light/instruments/int-green</green-prop>
50     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
51   </emission>
52 </animation>
53
54 <!--Indicators-->
55 <!--Heading-->
56 <animation>
57   <type>select</type>
58   <object-name>otkl_heading</object-name>
59   <condition>
60     <equals>
61       <property>tu154/instrumentation/pn-5/heading-state</property>
62       <value>0.0</value>
63     </equals>
64   </condition>
65 </animation>
66 <animation>
67   <type>select</type>
68   <object-name>yoke_heading</object-name>
69   <condition>
70     <equals>
71       <property>tu154/instrumentation/pn-5/heading-state</property>
72       <value>1.0</value>
73     </equals>
74   </condition>
75 </animation>
76 <animation>
77   <type>select</type>
78   <object-name>auto_heading</object-name>
79   <condition>
80     <equals>
81       <property>tu154/instrumentation/pn-5/heading-state</property>
82       <value>2.0</value>
83     </equals>
84   </condition>
85 </animation>
86 <!-- Pitch -->
87 <animation>
88   <type>select</type>
89   <object-name>otkl_pitch</object-name>
90   <condition>
91     <equals>
92       <property>tu154/instrumentation/pn-5/pitch-state</property>
93       <value>0.0</value>
94     </equals>
95   </condition>
96 </animation>
97 <animation>
98   <type>select</type>
99   <object-name>yoke_pitch</object-name>
100   <condition>
101     <equals>
102       <property>tu154/instrumentation/pn-5/pitch-state</property>
103       <value>1.0</value>
104     </equals>
105   </condition>
106 </animation>
107 <animation>
108   <type>select</type>
109   <object-name>auto_pitch</object-name>
110   <condition>
111     <equals>
112       <property>tu154/instrumentation/pn-5/pitch-state</property>
113       <value>2.0</value>
114     </equals>
115   </condition>
116 </animation>
117
118 <!--Buttons-->
119 <animation>
120   <type>translate</type>
121   <object-name>sogl_but</object-name>
122   <property>tu154/switches/pu-46-button</property>  
123   <factor>0.01</factor>
124   <axis>
125     <x>-1.0</x>
126     <y>0.0</y>
127     <z>0.0</z>
128   </axis>
129 </animation>
130
131 <animation>
132   <type>material</type>
133   <object-name>zk</object-name>
134   <emission>
135     <red>1.0</red>
136     <green>1.0</green>
137     <blue>1.0</blue>
138     <factor-prop>tu154/instrumentation/pn-5/zk</factor-prop>
139   </emission>
140 </animation>
141 <animation>
142   <type>material</type>
143   <object-name>sbros</object-name>
144   <emission>
145     <red>1.0</red>
146     <green>1.0</green>
147     <blue>1.0</blue>
148     <factor-prop>tu154/instrumentation/pn-5/sbros</factor-prop>
149   </emission>
150 </animation>
151 <animation>
152   <type>material</type>
153   <object-name>nvu</object-name>
154   <emission>
155     <red>1.0</red>
156     <green>1.0</green>
157     <blue>1.0</blue>
158     <factor-prop>tu154/instrumentation/pn-5/nvu</factor-prop>
159   </emission>
160 </animation>
161 <animation>
162   <type>material</type>
163   <object-name>az-1</object-name>
164   <emission>
165     <red>1.0</red>
166     <green>1.0</green>
167     <blue>1.0</blue>
168     <factor-prop>tu154/instrumentation/pn-5/az-1</factor-prop>
169   </emission>
170 </animation>
171 <animation>
172   <type>material</type>
173   <object-name>az-2</object-name>
174   <emission>
175     <red>1.0</red>
176     <green>1.0</green>
177     <blue>1.0</blue>
178     <factor-prop>tu154/instrumentation/pn-5/az-2</factor-prop>
179   </emission>
180 </animation>
181 <animation>
182   <type>material</type>
183   <object-name>gliss</object-name>
184   <emission>
185     <red>1.0</red>
186     <green>1.0</green>
187     <blue>1.0</blue>
188     <factor-prop>tu154/instrumentation/pn-5/gliss</factor-prop>
189   </emission>
190 </animation>
191 <animation>
192   <type>material</type>
193   <object-name>zahod</object-name>
194   <emission>
195     <red>1.0</red>
196     <green>1.0</green>
197     <blue>1.0</blue>
198     <factor-prop>tu154/instrumentation/pn-5/zahod</factor-prop>
199   </emission>
200 </animation>
201 <animation>
202   <type>material</type>
203   <object-name>m</object-name>
204   <emission>
205     <red>1.0</red>
206     <green>1.0</green>
207     <blue>1.0</blue>
208     <factor-prop>tu154/instrumentation/pu-46/m</factor-prop>
209   </emission>
210 </animation>
211 <animation>
212   <type>material</type>
213   <object-name>v</object-name>
214   <emission>
215     <red>1.0</red>
216     <green>1.0</green>
217     <blue>1.0</blue>
218     <factor-prop>tu154/instrumentation/pu-46/v</factor-prop>
219   </emission>
220 </animation>
221 <animation>
222   <type>material</type>
223   <object-name>h</object-name>
224   <emission>
225     <red>1.0</red>
226     <green>1.0</green>
227     <blue>1.0</blue>
228     <factor-prop>tu154/instrumentation/pu-46/h</factor-prop>
229   </emission>
230 </animation>
231 <animation>
232   <type>material</type>
233   <object-name>stab</object-name>
234   <emission>
235     <red>1.0</red>
236     <green>1.0</green>
237     <blue>1.0</blue>
238     <factor-prop>tu154/instrumentation/pu-46/stab</factor-prop>
239   </emission>
240 </animation>
241
242 <!--PNP selector-->
243 <animation>
244   <type>rotate</type>
245   <object-name>pnp_selector</object-name>
246   <property>tu154/switches/pn-5-pnp-selector</property>
247   <interpolation>
248     <entry><ind>        0.0</ind>       <dep>   -30.0</dep></entry>
249     <entry><ind>        1.0</ind>       <dep>   30.0</dep></entry>
250   </interpolation>
251   <center>
252     <x-m>0.0</x-m>
253     <y-m>0.01441</y-m>
254     <z-m>0.18065</z-m>
255   </center>
256   <axis>
257     <x>-1.0</x>
258     <y>0.0</y>
259     <z>0.0</z>
260   </axis>
261 </animation>
262
263 <!--Autopilot wheels-->
264 <animation>
265   <type>rotate</type>
266   <object-name>pitch_wheel</object-name>
267   <property>tu154/switches/pu-46-pitch-wheel</property>
268   <center>
269     <x-m>0.0</x-m>
270     <y-m>0.0</y-m>
271     <z-m>-0.14988</z-m>
272   </center>
273   <axis>
274     <x>0.0</x>
275     <y>-1.0</y>
276     <z>0.0</z>
277   </axis>
278 </animation>
279 <animation>
280   <type>rotate</type>
281   <object-name>kurs_handle</object-name>
282   <property>tu154/switches/pu-46-heading-wheel</property>
283   <center>
284     <x-m>0.0</x-m>
285     <y-m>-0.01969</y-m>
286     <z-m>-0.15</z-m>
287   </center>
288   <axis>
289     <x>-1.0</x>
290     <y>0.0</y>
291     <z>0.0</z>
292   </axis>
293 </animation>
294
295 <!--Switch covers-->
296 <animation>
297   <type>rotate</type>
298   <object-name>cover_1</object-name>
299   <property>tu154/switches/pu-46-cover-1</property>
300   <interpolation>
301     <entry><ind>        0.0</ind>       <dep>   10.0</dep></entry>
302     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
303   </interpolation>
304   <center>
305     <x-m>0.0036</x-m>
306     <y-m>0.0</y-m>
307     <z-m>-0.1978</z-m>
308   </center>
309   <axis>
310     <x>0.0</x>
311     <y>-1.0</y>
312     <z>0.0</z>
313   </axis>
314 </animation>
315
316 <animation>
317   <type>rotate</type>
318   <object-name>cover_2</object-name>
319   <property>tu154/switches/pu-46-cover-2</property>
320   <interpolation>
321     <entry><ind>        0.0</ind>       <dep>   10.0</dep></entry>
322     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
323   </interpolation>
324   <center>
325     <x-m>0.0036</x-m>
326     <y-m>0.0</y-m>
327     <z-m>-0.02486</z-m>
328   </center>
329   <axis>
330     <x>0.0</x>
331     <y>-1.0</y>
332     <z>0.0</z>
333   </axis>
334 </animation>
335
336 <!--Switches-->
337
338 <animation>
339   <type>rotate</type>
340   <object-name>kren</object-name>
341   <property>tu154/switches/pu-46-kren</property>
342   <interpolation>
343     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
344     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
345   </interpolation>
346   <center>
347     <x-m>0.00033</x-m>
348     <y-m>0.0</y-m>
349     <z-m>-0.22273</z-m>
350   </center>
351   <axis>
352     <x>0.0</x>
353     <y>-1.0</y>
354     <z>0.0</z>
355   </axis>
356 </animation>
357
358 <animation>
359   <type>rotate</type>
360   <object-name>tang</object-name>
361   <property>tu154/switches/pu-46-tang</property>
362   <interpolation>
363     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
364     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
365   </interpolation>
366   <center>
367     <x-m>0.00033</x-m>
368     <y-m>0.0</y-m>
369     <z-m>-0.22273</z-m>
370   </center>
371   <axis>
372     <x>0.0</x>
373     <y>-1.0</y>
374     <z>0.0</z>
375   </axis>
376 </animation>
377
378 <animation>
379   <type>rotate</type>
380   <object-name>boltanka</object-name>
381   <property>tu154/switches/pu-46-boltanka</property>
382   <interpolation>
383     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
384     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
385   </interpolation>
386   <center>
387     <x-m>0.00033</x-m>
388     <y-m>0.0</y-m>
389     <z-m>-0.21642</z-m>
390   </center>
391   <axis>
392     <x>0.0</x>
393     <y>-1.0</y>
394     <z>0.0</z>
395   </axis>
396 </animation>
397
398
399
400 <animation>
401   <type>rotate</type>
402   <object-name>strelki</object-name>
403   <property>tu154/switches/pn-5-strelki</property>
404   <interpolation>
405     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
406     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
407   </interpolation>
408   <center>
409     <x-m>0.00033</x-m>
410     <y-m>0.0</y-m>
411     <z-m>0.01089</z-m>
412   </center>
413   <axis>
414     <x>0.0</x>
415     <y>-1.0</y>
416     <z>0.0</z>
417   </axis>
418 </animation>
419
420 <animation>
421   <type>rotate</type>
422   <object-name>navigac</object-name>
423   <property>tu154/switches/pn-5-navigac</property>
424   <interpolation>
425     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
426     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
427   </interpolation>
428   <center>
429     <x-m>0.00033</x-m>
430     <y-m>0.0</y-m>
431     <z-m>0.06224</z-m>
432   </center>
433   <axis>
434     <x>0.0</x>
435     <y>-1.0</y>
436     <z>0.0</z>
437   </axis>
438 </animation>
439
440 <animation>
441   <type>rotate</type>
442   <object-name>posadk</object-name>
443   <property>tu154/switches/pn-5-posadk</property>
444   <interpolation>
445     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
446     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
447   </interpolation>
448   <center>
449     <x-m>0.00033</x-m>
450     <y-m>0.0</y-m>
451     <z-m>0.06224</z-m>
452   </center>
453   <axis>
454     <x>0.0</x>
455     <y>-1.0</y>
456     <z>0.0</z>
457   </axis>
458 </animation>
459
460
461 <!--*************** Controls ***************-->
462 <!--Buttons-->
463
464 <!--"Soglasovanie" knobs-->
465 <animation>
466   <type>pick</type>
467   <object-name>sogl_but</object-name>
468   <visible>true</visible>
469   <action>
470     <button>0</button>
471     <repeatable>true</repeatable>
472     <interval-sec>0.15</interval-sec>
473
474 <!--    <repeatable>false</repeatable>-->
475     <binding>
476       <command>nasal</command>
477       <script>
478         interpolate("tu154/switches/pu-46-button", 1.0, 0.1 );
479         instruments.bkk_adjust();
480       </script>
481     </binding>
482     <mod-up>
483     <binding>
484       <command>nasal</command>
485       <script>
486         interpolate("tu154/switches/pu-46-button", 0.0, 0.1 );
487 <!--        instruments.bkk_adjust(0);-->
488       </script>
489     </binding>
490   </mod-up>
491   </action>
492 </animation>
493
494
495 <animation>
496   <type>pick</type>
497   <object-name>zk</object-name>
498   <visible>true</visible>
499   <action>
500     <button>0</button>
501     <repeatable>false</repeatable>
502     <binding>
503       <command>nasal</command>
504       <script>absu.absu_zk()</script>
505     </binding>
506   </action>
507 </animation>
508
509
510 <animation>
511   <type>pick</type>
512   <object-name>sbros</object-name>
513   <visible>true</visible>
514   <action>
515     <button>0</button>
516     <repeatable>false</repeatable>
517     <binding>
518       <command>nasal</command>
519       <script>absu.absu_reset()</script>
520     </binding>
521   </action>
522 </animation>
523
524
525 <animation>
526   <type>pick</type>
527   <object-name>nvu</object-name>
528   <visible>true</visible>
529   <action>
530     <button>0</button>
531     <repeatable>false</repeatable>
532     <binding>
533       <command>nasal</command>
534       <script>absu.absu_nvu()</script>
535     </binding>
536   </action>
537 </animation>
538
539
540
541 <animation>
542   <type>pick</type>
543   <object-name>az-1</object-name>
544   <visible>true</visible>
545   <action>
546     <button>0</button>
547     <repeatable>false</repeatable>
548     <binding>
549       <command>nasal</command>
550       <script>absu.absu_az1()</script>
551     </binding>
552   </action>
553 </animation>
554 <animation>
555   <type>pick</type>
556   <object-name>az-2</object-name>
557   <visible>true</visible>
558   <action>
559     <button>0</button>
560     <repeatable>false</repeatable>
561     <binding>
562       <command>nasal</command>
563       <script>absu.absu_az2()</script>
564     </binding>
565   </action>
566 </animation>
567 <animation>
568   <type>pick</type>
569   <object-name>gliss</object-name>
570   <visible>true</visible>
571   <action>
572     <button>0</button>
573     <repeatable>false</repeatable>
574     <binding>
575       <command>nasal</command>
576       <script>absu.absu_glideslope()</script>
577     </binding>
578   </action>
579 </animation>
580
581 <animation>
582   <type>pick</type>
583   <object-name>zahod</object-name>
584   <visible>true</visible>
585   <action>
586     <button>0</button>
587     <repeatable>false</repeatable>
588     <binding>
589       <command>nasal</command>
590       <script>absu.absu_approach()</script>
591     </binding>
592   </action>
593 </animation>
594
595 <animation>
596   <type>pick</type>
597   <object-name>m</object-name>
598   <visible>true</visible>
599   <action>
600     <button>0</button>
601     <repeatable>false</repeatable>
602     <binding>
603       <command>nasal</command>
604       <script>absu.absu_m()</script>
605     </binding>
606   </action>
607 </animation>
608
609 <animation>
610   <type>pick</type>
611   <object-name>v</object-name>
612   <visible>true</visible>
613   <action>
614     <button>0</button>
615     <repeatable>false</repeatable>
616     <binding>
617       <command>nasal</command>
618       <script>absu.absu_v()</script>
619     </binding>
620   </action>
621 </animation>
622
623 <animation>
624   <type>pick</type>
625   <object-name>h</object-name>
626   <visible>true</visible>
627   <action>
628     <button>0</button>
629     <repeatable>false</repeatable>
630     <binding>
631       <command>nasal</command>
632       <script>absu.absu_h()</script>
633     </binding>
634   </action>
635 </animation>
636 <animation>
637   <type>pick</type>
638   <object-name>stab</object-name>
639   <visible>true</visible>
640   <action>
641     <button>0</button>
642     <repeatable>false</repeatable>
643     <binding>
644       <command>nasal</command>
645       <script>absu.absu_stab_on()</script>
646     </binding>
647   </action>
648 </animation>
649
650
651 <!--Covers-->
652 <animation>
653   <type>pick</type>
654   <object-name>cover_1</object-name>
655   <visible>true</visible>
656   <action>
657     <button>0</button>
658     <repeatable>false</repeatable>
659     <binding>
660       <command>nasal</command>
661       <script>
662         if( getprop("tu154/switches/pu-46-cover-1") == 0.0 ){
663         interpolate("tu154/switches/pu-46-cover-1", 1.0, 0.1 );}
664         else {interpolate("tu154/switches/pu-46-cover-1", 0.0, 0.1 );}
665       </script>
666     </binding>
667   </action>
668 </animation>
669 <animation>
670   <type>pick</type>
671   <object-name>cover_2</object-name>
672   <visible>true</visible>
673   <action>
674     <button>0</button>
675     <repeatable>false</repeatable>
676     <binding>
677       <command>nasal</command>
678       <script>
679         if( getprop("tu154/switches/pu-46-cover-2") == 0.0 ){
680         interpolate("tu154/switches/pu-46-cover-2", 1.0, 0.1 );}
681         else {interpolate("tu154/switches/pu-46-cover-2", 0.0, 0.1 );}
682       </script>
683     </binding>
684   </action>
685 </animation>
686
687
688 <!--Switches-->
689 <animation>
690   <type>pick</type>
691   <object-name>hs_1</object-name>
692   <visible>false</visible>
693   <action>
694     <button>0</button>
695     <repeatable>false</repeatable>
696     <binding>
697       <command>nasal</command>
698       <script>
699         interpolate("tu154/switches/pu-46-boltanka", 1.0, 0.1 );
700         setprop("fdm/jsbsim/ap/turbulence", 1.0 );
701       </script>
702     </binding>
703   </action>
704 </animation>
705 <animation>
706   <type>pick</type>
707   <object-name>hs_2</object-name>
708   <visible>false</visible>
709   <action>
710     <button>0</button>
711     <repeatable>false</repeatable>
712     <binding>
713       <command>nasal</command>
714       <script>
715         interpolate("tu154/switches/pu-46-boltanka", 0.0, 0.1 );
716         setprop("fdm/jsbsim/ap/turbulence", 0.0 );
717       </script>
718     </binding>
719   </action>
720 </animation>
721 <animation>
722   <type>pick</type>
723   <object-name>hs_3</object-name>
724   <visible>false</visible>
725   <action>
726     <button>0</button>
727     <repeatable>false</repeatable>
728     <binding>
729       <command>nasal</command>
730       <script>
731         interpolate("tu154/switches/pu-46-kren", 1.0, 0.1 );
732         absu.absu_stab_kren(1);
733       </script>
734     </binding>
735   </action>
736 </animation>
737 <animation>
738   <type>pick</type>
739   <object-name>hs_4</object-name>
740   <visible>false</visible>
741   <action>
742     <button>0</button>
743     <repeatable>false</repeatable>
744     <binding>
745       <command>nasal</command>
746       <script>
747         interpolate("tu154/switches/pu-46-kren", 0.0, 0.1 );
748         absu.absu_stab_kren(0);
749       </script>
750     </binding>
751   </action>
752 </animation>
753
754 <animation>
755   <type>pick</type>
756   <object-name>hs_5</object-name>
757   <visible>false</visible>
758   <action>
759     <button>0</button>
760     <repeatable>false</repeatable>
761     <binding>
762       <command>nasal</command>
763       <script>
764         interpolate("tu154/switches/pu-46-tang", 1.0, 0.1 );
765         absu.absu_stab_tang(1);
766       </script>
767     </binding>
768   </action>
769 </animation>
770 <animation>
771   <type>pick</type>
772   <object-name>hs_6</object-name>
773   <visible>false</visible>
774   <action>
775     <button>0</button>
776     <repeatable>false</repeatable>
777     <binding>
778       <command>nasal</command>
779       <script>
780         interpolate("tu154/switches/pu-46-tang", 0.0, 0.1 );
781         absu.absu_stab_tang(0);
782       </script>
783     </binding>
784   </action>
785 </animation>
786
787 <animation>
788   <type>pick</type>
789   <object-name>hs_7</object-name>
790   <visible>false</visible>
791   <action>
792     <button>0</button>
793     <repeatable>false</repeatable>
794     <binding>
795       <command>nasal</command>
796       <script>
797         interpolate("tu154/switches/pn-5-navigac", 1.0, 0.1 );
798       </script>
799     </binding>
800   </action>
801 </animation>
802 <animation>
803   <type>pick</type>
804   <object-name>hs_8</object-name>
805   <visible>false</visible>
806   <action>
807     <button>0</button>
808     <repeatable>false</repeatable>
809     <binding>
810       <command>nasal</command>
811       <script>
812         interpolate("tu154/switches/pn-5-navigac", 0.0, 0.1 );
813       </script>
814     </binding>
815   </action>
816 </animation>
817
818 <animation>
819   <type>pick</type>
820   <object-name>hs_9</object-name>
821   <visible>false</visible>
822   <action>
823     <button>0</button>
824     <repeatable>false</repeatable>
825     <binding>
826       <command>nasal</command>
827       <script>
828         interpolate("tu154/switches/pn-5-posadk", 1.0, 0.1 );
829       </script>
830     </binding>
831   </action>
832 </animation>
833 <animation>
834   <type>pick</type>
835   <object-name>hs_10</object-name>
836   <visible>false</visible>
837   <action>
838     <button>0</button>
839     <repeatable>false</repeatable>
840     <binding>
841       <command>nasal</command>
842       <script>
843         interpolate("tu154/switches/pn-5-posadk", 0.0, 0.1 );
844       </script>
845     </binding>
846   </action>
847 </animation>
848
849 <animation>
850   <type>pick</type>
851   <object-name>hs_11</object-name>
852   <visible>false</visible>
853   <action>
854     <button>0</button>
855     <repeatable>false</repeatable>
856     <binding>
857       <command>nasal</command>
858       <script>
859         interpolate("tu154/switches/pn-5-strelki", 1.0, 0.1 );
860       </script>
861     </binding>
862     <binding>
863       <command>property-assign</command>
864       <property>fdm/jsbsim/ap/ena-needles</property>
865       <value>1.0</value>
866     </binding>    
867   </action>
868 </animation>
869 <animation>
870   <type>pick</type>
871   <object-name>hs_12</object-name>
872   <visible>false</visible>
873   <action>
874     <button>0</button>
875     <repeatable>false</repeatable>
876     <binding>
877       <command>nasal</command>
878       <script>
879         interpolate("tu154/switches/pn-5-strelki", 0.0, 0.1 );
880       </script>
881     </binding>
882     <binding>
883       <command>property-assign</command>
884       <property>fdm/jsbsim/ap/ena-needles</property>
885       <value>0.0</value>
886     </binding>    
887   </action>
888 </animation>
889
890 <!--PNP selector-->
891 <animation>
892   <type>pick</type>
893   <object-name>pnp_selector</object-name>
894   <visible>true</visible>
895   <action>
896     <button>0</button>
897     <repeatable>false</repeatable>
898     <binding>
899       <command>nasal</command>
900       <script>
901         if( getprop("tu154/switches/pn-5-pnp-selector" ) == 1.0 ){
902         interpolate("tu154/switches/pn-5-pnp-selector", 0.0, 0.1 );
903         setprop("fdm/jsbsim/instrumentation/pnp-selector", 0.0);
904         }
905         else {
906         interpolate("tu154/switches/pn-5-pnp-selector", 1.0, 0.1 );
907         setprop("fdm/jsbsim/instrumentation/pnp-selector", 1.0);
908         }
909       </script>
910     </binding>
911   </action>
912 </animation>
913
914 <!--Wheels-->
915 <!--+++++++++++++++++ pitch ++++++++++++++++++-->
916 <animation>
917   <type>pick</type>
918   <object-name>pitch_wheel</object-name>
919   <visible>true</visible>
920   <action>
921     <button>0</button>
922     <repeatable>true</repeatable>
923     <interval-sec>0.15</interval-sec>
924     <binding>
925       <command>property-adjust</command>
926       <property>tu154/switches/pu-46-pitch-wheel</property>
927       <step>3.0</step>
928     </binding>
929     <binding>
930       <command>property-adjust</command>
931       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
932       <step>0.002</step>
933       <max>0.8</max>
934     </binding>
935     <binding>
936       <command>nasal</command>
937       <script>absu.absu_drop_mvh()</script>
938     </binding>
939   </action>
940 </animation>
941 <animation>
942   <type>pick</type>
943   <object-name>pitch_wheel</object-name>
944   <visible>true</visible>
945   <action>
946     <button>1</button>
947     <repeatable>true</repeatable>
948     <interval-sec>0.15</interval-sec>
949     <binding>
950       <command>property-adjust</command>
951       <property>tu154/switches/pu-46-pitch-wheel</property>
952       <step>-3.0</step>
953     </binding>
954     <binding>
955       <command>property-adjust</command>
956       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
957       <step>-0.002</step>
958       <min>-0.2</min>
959     </binding>
960     <binding>
961       <command>nasal</command>
962       <script>absu.absu_drop_mvh()</script>
963     </binding>
964   </action>
965 </animation>
966
967
968 <!--Mouse wheel-->
969
970 <animation>
971   <type>pick</type>
972   <object-name>pitch_wheel</object-name>
973   <visible>true</visible>
974   <action>
975     <button>3</button>
976     <repeatable>false</repeatable>
977     <binding>
978       <command>property-adjust</command>
979       <property>tu154/switches/pu-46-pitch-wheel</property>
980       <step>5.0</step>
981     </binding>
982     <binding>
983       <command>property-adjust</command>
984       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
985       <step>-0.002</step>
986       <min>-0.2</min>
987     </binding>
988     <binding>
989       <command>nasal</command>
990       <script>absu.absu_drop_mvh()</script>
991     </binding>
992   </action>
993 </animation>
994 <animation>
995   <type>pick</type>
996   <object-name>pitch_wheel</object-name>
997   <visible>true</visible>
998   <action>
999     <button>4</button>
1000     <repeatable>false</repeatable>
1001     <binding>
1002       <command>property-adjust</command>
1003       <property>tu154/switches/pu-46-pitch-wheel</property>
1004       <step>-5.0</step>
1005     </binding>
1006     <binding>
1007       <command>property-adjust</command>
1008       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
1009       <step>0.002</step>
1010       <max>0.8</max>
1011     </binding>
1012     <binding>
1013       <command>nasal</command>
1014       <script>absu.absu_drop_mvh()</script>
1015     </binding>
1016   </action>
1017 </animation>
1018
1019 <!--+++++++++++++++++heading++++++++++++++++++-->
1020 <animation>
1021   <type>pick</type>
1022   <object-name>hs_14</object-name>
1023   <visible>false</visible>
1024   <action>
1025     <button>0</button>
1026     <repeatable>true</repeatable>
1027     <interval-sec>0.15</interval-sec>
1028     <binding>
1029       <command>property-adjust</command>
1030       <property>tu154/switches/pu-46-heading-wheel</property>
1031       <step>1.0</step>
1032       <min>-90.0</min>
1033       <max>90.0</max>
1034       <wrap>false</wrap>
1035     </binding>
1036     <binding>
1037       <command>property-adjust</command>
1038       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1039       <step>0.0056</step>
1040       <max>0.5</max>
1041     </binding>
1042 <!--    <binding>
1043       <command>nasal</command>
1044       <script>absu.absu_reset()</script>
1045     </binding>-->
1046   </action>
1047 </animation>
1048 <animation>
1049   <type>pick</type>
1050   <object-name>hs_13</object-name>
1051   <visible>false</visible>
1052   <action>
1053     <button>0</button>
1054     <repeatable>true</repeatable>
1055     <interval-sec>0.15</interval-sec>
1056     <binding>
1057       <command>property-adjust</command>
1058       <property>tu154/switches/pu-46-heading-wheel</property>
1059       <step>-1.0</step>
1060       <min>-90.0</min>
1061       <max>90.0</max>
1062       <wrap>false</wrap>
1063     </binding>
1064     <binding>
1065       <command>property-adjust</command>
1066       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1067       <step>-0.0056</step>
1068       <min>-0.5</min>
1069     </binding>
1070 <!--    <binding>
1071       <command>nasal</command>
1072       <script>absu.absu_reset()</script>
1073     </binding>-->
1074   </action>
1075 </animation>
1076 <!--Jump to zero-->
1077 <animation>
1078   <type>pick</type>
1079   <object-name>kurs_handle</object-name>
1080   <visible>true</visible>
1081   <action>
1082     <button>0</button>
1083     <repeatable>false</repeatable>
1084     <binding>
1085       <command>property-assign</command>
1086       <property>tu154/switches/pu-46-heading-wheel</property>
1087       <value>0.0</value>
1088     </binding>
1089     <binding>
1090       <command>property-assign</command>
1091       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1092       <value>0.0</value>
1093     </binding>
1094     <binding>
1095       <command>nasal</command>
1096       <script>absu.absu_reset()</script>
1097     </binding>
1098   </action>
1099 </animation>
1100 <!--Mouse wheel-->
1101 <animation>
1102   <type>pick</type>
1103   <object-name>kurs_handle</object-name>
1104   <visible>true</visible>
1105   <action>
1106     <button>3</button>
1107     <repeatable>false</repeatable>
1108     <binding>
1109       <command>property-adjust</command>
1110       <property>tu154/switches/pu-46-heading-wheel</property>
1111       <step>5.0</step>
1112       <min>-90.0</min>
1113       <max>90.0</max>
1114       <wrap>false</wrap>
1115     </binding>
1116     <binding>
1117       <command>property-adjust</command>
1118       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1119       <step>0.028</step>
1120       <max>0.5</max>
1121     </binding>
1122 <!--    <binding>
1123       <command>nasal</command>
1124       <script>absu.absu_reset()</script>
1125     </binding>-->
1126   </action>
1127 </animation>
1128
1129 <animation>
1130   <type>pick</type>
1131   <object-name>kurs_handle</object-name>
1132   <visible>true</visible>
1133   <action>
1134     <button>4</button>
1135     <repeatable>false</repeatable>
1136     <binding>
1137       <command>property-adjust</command>
1138       <property>tu154/switches/pu-46-heading-wheel</property>
1139       <step>-5.0</step>
1140       <min>-90.0</min>
1141       <max>90.0</max>
1142       <wrap>false</wrap>
1143     </binding>
1144     <binding>
1145       <command>property-adjust</command>
1146       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1147       <step>-0.028</step>
1148       <min>-0.5</min>
1149     </binding>
1150 <!--    <binding>
1151       <command>nasal</command>
1152       <script>absu.absu_reset()</script>
1153     </binding>-->
1154   </action>
1155 </animation>
1156
1157
1158 </PropertyList>