Tu-154B2 version 3.1:
[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 {
665             interpolate("tu154/switches/pu-46-cover-1", 0.0, 0.1 );
666             interpolate("tu154/switches/pu-46-boltanka", 0.0, 0.1 );
667             setprop("fdm/jsbsim/ap/turbulence", 0.0 );
668         }
669       </script>
670     </binding>
671   </action>
672 </animation>
673 <animation>
674   <type>pick</type>
675   <object-name>cover_2</object-name>
676   <visible>true</visible>
677   <action>
678     <button>0</button>
679     <repeatable>false</repeatable>
680     <binding>
681       <command>nasal</command>
682       <script>
683         if( getprop("tu154/switches/pu-46-cover-2") == 0.0 ){
684         interpolate("tu154/switches/pu-46-cover-2", 1.0, 0.1 );}
685         else {interpolate("tu154/switches/pu-46-cover-2", 0.0, 0.1 );}
686       </script>
687     </binding>
688   </action>
689 </animation>
690
691
692 <!--Switches-->
693 <animation>
694   <type>pick</type>
695   <object-name>hs_1</object-name>
696   <visible>false</visible>
697   <action>
698     <button>0</button>
699     <repeatable>false</repeatable>
700     <binding>
701       <command>nasal</command>
702       <script>
703         interpolate("tu154/switches/pu-46-boltanka", 1.0, 0.1 );
704         setprop("fdm/jsbsim/ap/turbulence", 1.0 );
705       </script>
706     </binding>
707   </action>
708 </animation>
709 <animation>
710   <type>pick</type>
711   <object-name>hs_2</object-name>
712   <visible>false</visible>
713   <action>
714     <button>0</button>
715     <repeatable>false</repeatable>
716     <binding>
717       <command>nasal</command>
718       <script>
719         interpolate("tu154/switches/pu-46-boltanka", 0.0, 0.1 );
720         setprop("fdm/jsbsim/ap/turbulence", 0.0 );
721       </script>
722     </binding>
723   </action>
724 </animation>
725 <animation>
726   <type>pick</type>
727   <object-name>hs_3</object-name>
728   <visible>false</visible>
729   <action>
730     <button>0</button>
731     <repeatable>false</repeatable>
732     <binding>
733       <command>nasal</command>
734       <script>
735         interpolate("tu154/switches/pu-46-kren", 1.0, 0.1 );
736         absu.absu_stab_kren(1);
737       </script>
738     </binding>
739   </action>
740 </animation>
741 <animation>
742   <type>pick</type>
743   <object-name>hs_4</object-name>
744   <visible>false</visible>
745   <action>
746     <button>0</button>
747     <repeatable>false</repeatable>
748     <binding>
749       <command>nasal</command>
750       <script>
751         interpolate("tu154/switches/pu-46-kren", 0.0, 0.1 );
752         absu.absu_stab_kren(0);
753       </script>
754     </binding>
755   </action>
756 </animation>
757
758 <animation>
759   <type>pick</type>
760   <object-name>hs_5</object-name>
761   <visible>false</visible>
762   <action>
763     <button>0</button>
764     <repeatable>false</repeatable>
765     <binding>
766       <command>nasal</command>
767       <script>
768         interpolate("tu154/switches/pu-46-tang", 1.0, 0.1 );
769         absu.absu_stab_tang(1);
770       </script>
771     </binding>
772   </action>
773 </animation>
774 <animation>
775   <type>pick</type>
776   <object-name>hs_6</object-name>
777   <visible>false</visible>
778   <action>
779     <button>0</button>
780     <repeatable>false</repeatable>
781     <binding>
782       <command>nasal</command>
783       <script>
784         interpolate("tu154/switches/pu-46-tang", 0.0, 0.1 );
785         absu.absu_stab_tang(0);
786       </script>
787     </binding>
788   </action>
789 </animation>
790
791 <animation>
792   <type>pick</type>
793   <object-name>hs_7</object-name>
794   <visible>false</visible>
795   <action>
796     <button>0</button>
797     <repeatable>false</repeatable>
798     <binding>
799       <command>nasal</command>
800       <script>
801         interpolate("tu154/switches/pn-5-navigac", 1.0, 0.1 );
802       </script>
803     </binding>
804   </action>
805 </animation>
806 <animation>
807   <type>pick</type>
808   <object-name>hs_8</object-name>
809   <visible>false</visible>
810   <action>
811     <button>0</button>
812     <repeatable>false</repeatable>
813     <binding>
814       <command>nasal</command>
815       <script>
816         interpolate("tu154/switches/pn-5-navigac", 0.0, 0.1 );
817       </script>
818     </binding>
819   </action>
820 </animation>
821
822 <animation>
823   <type>pick</type>
824   <object-name>hs_9</object-name>
825   <visible>false</visible>
826   <action>
827     <button>0</button>
828     <repeatable>false</repeatable>
829     <binding>
830       <command>nasal</command>
831       <script>
832         interpolate("tu154/switches/pn-5-posadk", 1.0, 0.1 );
833       </script>
834     </binding>
835   </action>
836 </animation>
837 <animation>
838   <type>pick</type>
839   <object-name>hs_10</object-name>
840   <visible>false</visible>
841   <action>
842     <button>0</button>
843     <repeatable>false</repeatable>
844     <binding>
845       <command>nasal</command>
846       <script>
847         interpolate("tu154/switches/pn-5-posadk", 0.0, 0.1 );
848       </script>
849     </binding>
850   </action>
851 </animation>
852
853 <animation>
854   <type>pick</type>
855   <object-name>hs_11</object-name>
856   <visible>false</visible>
857   <action>
858     <button>0</button>
859     <repeatable>false</repeatable>
860     <binding>
861       <command>nasal</command>
862       <script>
863         interpolate("tu154/switches/pn-5-strelki", 1.0, 0.1 );
864       </script>
865     </binding>
866     <binding>
867       <command>property-assign</command>
868       <property>fdm/jsbsim/ap/ena-needles</property>
869       <value>1.0</value>
870     </binding>    
871   </action>
872 </animation>
873 <animation>
874   <type>pick</type>
875   <object-name>hs_12</object-name>
876   <visible>false</visible>
877   <action>
878     <button>0</button>
879     <repeatable>false</repeatable>
880     <binding>
881       <command>nasal</command>
882       <script>
883         interpolate("tu154/switches/pn-5-strelki", 0.0, 0.1 );
884       </script>
885     </binding>
886     <binding>
887       <command>property-assign</command>
888       <property>fdm/jsbsim/ap/ena-needles</property>
889       <value>0.0</value>
890     </binding>    
891   </action>
892 </animation>
893
894 <!--PNP selector-->
895 <animation>
896   <type>pick</type>
897   <object-name>pnp_selector</object-name>
898   <visible>true</visible>
899   <action>
900     <button>0</button>
901     <repeatable>false</repeatable>
902     <binding>
903       <command>nasal</command>
904       <script>
905         if( getprop("tu154/switches/pn-5-pnp-selector" ) == 1.0 ){
906         interpolate("tu154/switches/pn-5-pnp-selector", 0.0, 0.1 );
907         setprop("fdm/jsbsim/instrumentation/pnp-selector", 0.0);
908         }
909         else {
910         interpolate("tu154/switches/pn-5-pnp-selector", 1.0, 0.1 );
911         setprop("fdm/jsbsim/instrumentation/pnp-selector", 1.0);
912         }
913       </script>
914     </binding>
915   </action>
916 </animation>
917
918 <!--Wheels-->
919 <!--+++++++++++++++++ pitch ++++++++++++++++++-->
920
921 <!--Modified by Yurik dec 2013 for new AP code-->
922 <animation>
923   <type>pick</type>
924   <object-name>pitch_wheel</object-name>
925   <visible>true</visible>
926   <action>
927     <button>0</button>
928     <binding>
929       <command>property-assign</command>
930       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
931       <value>0.0</value>
932     </binding>
933     <binding>
934       <command>property-assign</command>
935       <property>tu154/switches/pu-46-pitch-wheel</property>
936       <value>0.0</value>
937     </binding>    
938     <binding>
939       <command>nasal</command>
940       <script>absu.absu_drop_mvh()</script>
941     </binding>
942   </action>
943 </animation>
944
945 <!--Mouse wheel-->
946
947 <animation>
948   <type>pick</type>
949   <object-name>pitch_wheel</object-name>
950   <visible>true</visible>
951   <action>
952     <button>3</button>
953     <repeatable>false</repeatable>
954     <binding>
955       <command>property-adjust</command>
956       <property>tu154/switches/pu-46-pitch-wheel</property>
957       <step>5.0</step>
958       <max>170</max>
959     </binding>
960     <binding>
961       <command>property-adjust</command>
962       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
963       <step>-0.0085</step>
964       <min>-0.3</min>
965     </binding>
966     <binding>
967       <command>nasal</command>
968       <script>absu.absu_drop_mvh()</script>
969     </binding>
970   </action>
971 </animation>
972 <animation>
973   <type>pick</type>
974   <object-name>pitch_wheel</object-name>
975   <visible>true</visible>
976   <action>
977     <button>4</button>
978     <repeatable>false</repeatable>
979     <binding>
980       <command>property-adjust</command>
981       <property>tu154/switches/pu-46-pitch-wheel</property>
982       <step>-5.0</step>
983       <min>-170.0</min>
984     </binding>
985     <binding>
986       <command>property-adjust</command>
987       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
988       <step>0.0085</step>
989       <max>0.3</max>
990     </binding>
991     <binding>
992       <command>nasal</command>
993       <script>absu.absu_drop_mvh()</script>
994     </binding>
995   </action>
996 </animation>
997
998 <!--+++++++++++++++++heading++++++++++++++++++-->
999 <animation>
1000   <type>pick</type>
1001   <object-name>hs_14</object-name>
1002   <visible>false</visible>
1003   <action>
1004     <button>0</button>
1005     <repeatable>true</repeatable>
1006     <interval-sec>0.15</interval-sec>
1007     <binding>
1008       <command>property-adjust</command>
1009       <property>tu154/switches/pu-46-heading-wheel</property>
1010       <step>1.0</step>
1011       <min>-90.0</min>
1012       <max>90.0</max>
1013       <wrap>false</wrap>
1014     </binding>
1015     <binding>
1016       <command>property-adjust</command>
1017       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1018       <step>0.0056</step>
1019       <max>0.5</max>
1020     </binding>
1021 <!--    <binding>
1022       <command>nasal</command>
1023       <script>absu.absu_reset()</script>
1024     </binding>-->
1025   </action>
1026 </animation>
1027 <animation>
1028   <type>pick</type>
1029   <object-name>hs_13</object-name>
1030   <visible>false</visible>
1031   <action>
1032     <button>0</button>
1033     <repeatable>true</repeatable>
1034     <interval-sec>0.15</interval-sec>
1035     <binding>
1036       <command>property-adjust</command>
1037       <property>tu154/switches/pu-46-heading-wheel</property>
1038       <step>-1.0</step>
1039       <min>-90.0</min>
1040       <max>90.0</max>
1041       <wrap>false</wrap>
1042     </binding>
1043     <binding>
1044       <command>property-adjust</command>
1045       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1046       <step>-0.0056</step>
1047       <min>-0.5</min>
1048     </binding>
1049 <!--    <binding>
1050       <command>nasal</command>
1051       <script>absu.absu_reset()</script>
1052     </binding>-->
1053   </action>
1054 </animation>
1055 <!--Jump to zero-->
1056 <animation>
1057   <type>pick</type>
1058   <object-name>kurs_handle</object-name>
1059   <visible>true</visible>
1060   <action>
1061     <button>0</button>
1062     <repeatable>false</repeatable>
1063     <binding>
1064       <command>property-assign</command>
1065       <property>tu154/switches/pu-46-heading-wheel</property>
1066       <value>0.0</value>
1067     </binding>
1068     <binding>
1069       <command>property-assign</command>
1070       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1071       <value>0.0</value>
1072     </binding>
1073     <binding>
1074       <command>nasal</command>
1075       <script>absu.absu_reset()</script>
1076     </binding>
1077   </action>
1078 </animation>
1079 <!--Mouse wheel-->
1080 <animation>
1081   <type>pick</type>
1082   <object-name>kurs_handle</object-name>
1083   <visible>true</visible>
1084   <action>
1085     <button>3</button>
1086     <repeatable>false</repeatable>
1087     <binding>
1088       <command>property-adjust</command>
1089       <property>tu154/switches/pu-46-heading-wheel</property>
1090       <step>5.0</step>
1091       <min>-90.0</min>
1092       <max>90.0</max>
1093       <wrap>false</wrap>
1094     </binding>
1095     <binding>
1096       <command>property-adjust</command>
1097       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1098       <step>0.028</step>
1099       <max>0.5</max>
1100     </binding>
1101 <!--    <binding>
1102       <command>nasal</command>
1103       <script>absu.absu_reset()</script>
1104     </binding>-->
1105   </action>
1106 </animation>
1107
1108 <animation>
1109   <type>pick</type>
1110   <object-name>kurs_handle</object-name>
1111   <visible>true</visible>
1112   <action>
1113     <button>4</button>
1114     <repeatable>false</repeatable>
1115     <binding>
1116       <command>property-adjust</command>
1117       <property>tu154/switches/pu-46-heading-wheel</property>
1118       <step>-5.0</step>
1119       <min>-90.0</min>
1120       <max>90.0</max>
1121       <wrap>false</wrap>
1122     </binding>
1123     <binding>
1124       <command>property-adjust</command>
1125       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
1126       <step>-0.028</step>
1127       <min>-0.5</min>
1128     </binding>
1129 <!--    <binding>
1130       <command>nasal</command>
1131       <script>absu.absu_reset()</script>
1132     </binding>-->
1133   </action>
1134 </animation>
1135
1136
1137 </PropertyList>