Tupolev Tu-154B-2 by Yurik and his team.
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / pnp / pnp-1.xml
1 <!--
2     #############################################################################
3     #    (C) 2007 by Yurik V. Nikiforoff                                        #
4     #           yurik@megasignal.com                                            #
5     #           Jul 2007                                                        #
6     #############################################################################         
7     -->
8 <!-- Heading indicator PNP
9      3D instrument for Tu-154 -->
10 <PropertyList>
11   <path>pnp.ac</path>
12   <!--External panel lighting-->
13   <animation>
14     <type>material</type>
15     <object-name>cover</object-name>
16     <emission>
17       <red-prop>tu154/light/panel/ext-red</red-prop>
18       <green-prop>tu154/light/panel/ext-green</green-prop>
19       <blue-prop>tu154/light/panel/ext-blue</blue-prop>
20     </emission>
21   </animation>
22
23   <!-- Internal instrument lighting -->  
24   <animation>
25     <type>material</type>
26     <object-name>compass</object-name>
27     <object-name>needle</object-name>
28     <object-name>kurs_plan</object-name>
29     <object-name>center</object-name>
30     <object-name>kurs_planka</object-name>
31     <object-name>limb</object-name>
32     <object-name>dkm</object-name>
33     <object-name>drift</object-name>
34     <object-name>plane_sym</object-name>
35     <object-name>plane_sym_handle</object-name>
36     <object-name>heading_sym_handle</object-name>
37     <object-name>dig_plane_ones</object-name>
38     <object-name>dig_plane_dec</object-name>
39     <object-name>dig_plane_hund</object-name>
40     <object-name>dig_heading_ones</object-name>
41     <object-name>dig_heading_dec</object-name>
42     <object-name>dig_heading_hund</object-name>
43     <object-name>blanker_k</object-name>
44     <object-name>blanker_g</object-name>
45     <object-name>blanker_ks</object-name>
46     <emission>
47       <red-prop>tu154/light/instruments/int-red</red-prop>
48       <green-prop>tu154/light/instruments/int-green</green-prop>
49       <blue-prop>tu154/light/instruments/int-blue</blue-prop>
50     </emission>
51   </animation>
52   <!--Yellow color-->
53   <animation>
54     <type>material</type>
55     <object-name>gliss_planka</object-name>
56     <object-name>heading_marker_main</object-name>
57     <object-name>heading_marker_90</object-name>
58     <object-name>heading_marker_180</object-name>
59     <object-name>heading_marker_270</object-name>
60     <emission>
61       <red-prop>tu154/light/instruments/int-red</red-prop>
62       <green-prop>tu154/light/instruments/int-green</green-prop>
63     </emission>
64   </animation>
65   <!--Red color-->
66   <animation>
67     <type>material</type>
68     <object-name>blanker_dkm</object-name>
69     <object-name>blanker_heading</object-name>
70     <emission>
71       <red-prop>tu154/light/instruments/int-red</red-prop>
72     </emission>
73   </animation>
74   <animation>
75           <type>material</type>
76           <object-name>sp_on</object-name>
77           <object-name>vor_on</object-name>
78           <object-name>nv_on</object-name>
79           <object-name>rsbn_on</object-name>
80           <emission>
81                   <red>1.0</red>
82                   <green>1.0</green>
83                   <blue>1.0</blue>
84           </emission>
85   </animation>
86
87 <!--mode selector-->
88 <animation>
89         <type>material</type>
90         <object-name>sp_on</object-name>
91         <object-name>vor_on</object-name>
92         <object-name>nv_on</object-name>
93         <object-name>rsbn_on</object-name>
94         <emission>
95                 <red>1.0</red>
96                 <green>1.0</green>
97                 <blue>1.0</blue>
98         </emission>
99 </animation>
100
101 <animation>
102   <type>select</type>
103   <object-name>sp_on</object-name>
104   <condition>
105   <property>tu154/systems/electrical/indicators/heading</property>
106   </condition>
107 </animation>
108 <animation>
109   <type>select</type>
110   <object-name>vor_on</object-name>
111   <condition>
112   <property>tu154/systems/electrical/indicators/vor</property>
113   </condition>
114 </animation>
115 <animation>
116   <type>select</type>
117   <object-name>nv_on</object-name>
118   <condition>
119   <property>tu154/systems/electrical/indicators/nvu</property>
120   </condition>
121 </animation>
122 <!--Not in use-->
123 <animation>
124   <type>select</type>
125   <object-name>rsbn_on</object-name>
126 <!--  <condition>
127     <property>tu154/rsbn_on</property>
128   </condition>-->
129 </animation>
130
131 <!--Blankers-->
132 <animation>
133   <type>select</type>
134   <object-name>blanker_dkm</object-name>
135   <condition>
136     <property>tu154/instrumentation/pnp[0]/blanker-dkm</property>
137   </condition>  
138 </animation>
139 <animation>
140   <type>select</type>
141   <object-name>blanker_heading</object-name>
142 <!--  <condition>
143     <property>tu154/blankers</property>
144   </condition>-->
145 </animation>
146 <animation>
147   <type>select</type>
148   <object-name>blanker_k</object-name>
149   <condition>
150     <property>tu154/instrumentation/pnp[0]/kurs-blanker</property>
151   </condition>
152 </animation>
153 <animation>
154   <type>select</type>
155   <object-name>blanker_g</object-name>
156   <condition>
157     <property>tu154/instrumentation/pnp[0]/gliss-blanker</property>
158   </condition>
159 </animation>
160 <animation>
161   <type>select</type>
162   <object-name>blanker_ks</object-name>
163   <condition>
164     <not><property>instrumentation/heading-indicator[0]/serviceable</property></not>
165   </condition>
166 </animation>
167
168 <!--Needles-->  
169 <animation>
170   <type>rotate</type>
171   <object-name>needle</object-name>
172   <object-name>kurs_plan</object-name>
173   <object-name>kurs_planka</object-name>
174   <property>tu154/instrumentation/pnp[0]/plane-deg</property>  
175   <axis>
176     <x>-1.0</x>
177     <y>0.0</y>
178     <z>0.0</z>
179   </axis>
180 </animation>
181 <!--Marker-->
182 <animation>
183   <type>rotate</type>
184   <object-name>heading_marker_main</object-name>
185   <object-name>heading_marker_90</object-name>
186   <object-name>heading_marker_180</object-name>
187   <object-name>heading_marker_270</object-name>
188   <property>tu154/instrumentation/pnp[0]/heading-deg</property>
189   <axis>
190     <x>-1.0</x>
191     <y>0.0</y>
192     <z>0.0</z>
193   </axis>
194 </animation>
195
196
197 <!--Compass-->
198   <animation>
199     <type>rotate</type>
200     <object-name>compass</object-name>
201     <object-name>needle</object-name>
202     <object-name>kurs_plan</object-name>
203     <object-name>kurs_planka</object-name>
204     <object-name>heading_marker_main</object-name>
205     <object-name>heading_marker_90</object-name>
206     <object-name>heading_marker_180</object-name>
207     <object-name>heading_marker_270</object-name>
208     <property>fdm/jsbsim/instrumentation/pnp-heading-left</property> 
209     <axis>
210       <x>1.0</x>
211       <y>0.0</y>
212       <z>0.0</z>
213     </axis>
214   </animation>
215   
216   <!--Drift indicator-->
217   <animation>
218     <type>rotate</type>
219     <object-name>drift</object-name>
220     <property>tu154/instrumentation/diss/drift-deg</property>
221     <max-deg>20.0</max-deg>
222     <min-deg>-20.0</min-deg>
223     <axis>
224       <x>-1.0</x>
225       <y>0.0</y>
226       <z>0.0</z>
227     </axis>
228   </animation>
229
230   <!--ILS-->
231   <animation>
232     <type>translate</type>
233     <object-name>kurs_planka</object-name>
234     <property>fdm/jsbsim/ap/heading-needle-deflection</property>
235     <interpolation>
236       <entry><ind>      1.0</ind>       <dep>   0.021</dep></entry>
237       <entry><ind>      -1.0</ind>      <dep>   -0.021</dep></entry>
238     </interpolation>
239     <axis>
240       <x>0.0</x>
241       <y>1.0</y>
242       <z>0.0</z>
243     </axis>
244   </animation>
245   <animation>
246     <type>translate</type>
247     <object-name>gliss_planka</object-name>
248     <property>fdm/jsbsim/ap/gs-needle-deflection</property>
249     <interpolation>
250       <entry><ind>      1.0</ind>       <dep>   0.025</dep></entry>
251       <entry><ind>      -1.0</ind>      <dep>   -0.025</dep></entry>
252     </interpolation>
253     <axis>
254       <x>0.0</x>
255       <y>0.0</y>
256       <z>1.0</z>
257     </axis>
258   </animation>
259
260
261
262 <!--Digits-->
263 <!--Heading deg-->  
264 <animation>
265     <type>rotate</type>
266     <object-name>dig_heading_ones</object-name>
267     <property>tu154/instrumentation/pnp[0]/heading/ones</property>  
268     <factor>36</factor>
269     <center>
270       <x-m>-0.01393</x-m>
271       <y-m>0.0</y-m>
272       <z-m>0.0534</z-m>
273     </center>
274     <axis>
275       <x>0.0</x>
276       <y>-1.0</y>
277       <z>0.0</z>
278     </axis>
279 </animation>
280 <animation>
281   <type>rotate</type>
282   <object-name>dig_heading_dec</object-name>
283   <property>tu154/instrumentation/pnp[0]/heading/dec</property>  
284   <interpolation>
285     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
286     <entry><ind>        0.9</ind>       <dep>   0.1</dep></entry>
287     <entry><ind>        1.0</ind>       <dep>   36.0</dep></entry>
288     <entry><ind>        1.9</ind>       <dep>   36.1</dep></entry>
289     <entry><ind>        2.0</ind>       <dep>   72.0</dep></entry>
290     <entry><ind>        2.9</ind>       <dep>   72.1</dep></entry>
291     <entry><ind>        3.0</ind>       <dep>   108.0</dep></entry>
292     <entry><ind>        3.9</ind>       <dep>   108.1</dep></entry>
293     <entry><ind>        4.0</ind>       <dep>   144.0</dep></entry>
294     <entry><ind>        4.9</ind>       <dep>   144.1</dep></entry>
295     <entry><ind>        5.0</ind>       <dep>   180.0</dep></entry>
296     <entry><ind>        5.9</ind>       <dep>   180.1</dep></entry>
297     <entry><ind>        6.0</ind>       <dep>   216.0</dep></entry>
298     <entry><ind>        6.9</ind>       <dep>   216.1</dep></entry>
299     <entry><ind>        7.0</ind>       <dep>   252.0</dep></entry>
300     <entry><ind>        7.9</ind>       <dep>   252.1</dep></entry>
301     <entry><ind>        8.0</ind>       <dep>   288.0</dep></entry>
302     <entry><ind>        8.9</ind>       <dep>   288.1</dep></entry>
303     <entry><ind>        9.0</ind>       <dep>   324.0</dep></entry>
304     <entry><ind>        9.9</ind>       <dep>   324.1</dep></entry>
305     <entry><ind>        9.99</ind>      <dep>   359.9</dep></entry>
306   </interpolation>
307   <center>
308     <x-m>-0.01393</x-m>
309     <y-m>0.0</y-m>
310     <z-m>0.0534</z-m>
311   </center>
312   <axis>
313     <x>0.0</x>
314     <y>-1.0</y>
315     <z>0.0</z>
316   </axis>
317 </animation>
318 <animation>
319   <type>rotate</type>
320   <object-name>dig_heading_hund</object-name>
321   <property>tu154/instrumentation/pnp[0]/heading/hund</property>  
322   <interpolation>
323     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
324     <entry><ind>        0.99</ind>      <dep>   0.1</dep></entry>
325     <entry><ind>        1.0</ind>       <dep>   36.0</dep></entry>
326     <entry><ind>        1.99</ind>      <dep>   36.1</dep></entry>
327     <entry><ind>        2.0</ind>       <dep>   72.0</dep></entry>
328     <entry><ind>        2.99</ind>      <dep>   72.1</dep></entry>
329     <entry><ind>        3.0</ind>       <dep>   108.0</dep></entry>
330     <entry><ind>        3.99</ind>      <dep>   108.1</dep></entry>
331     <entry><ind>        4.0</ind>       <dep>   144.0</dep></entry>
332     <entry><ind>        4.99</ind>      <dep>   144.1</dep></entry>
333     <entry><ind>        5.0</ind>       <dep>   180.0</dep></entry>
334     <entry><ind>        5.99</ind>      <dep>   180.1</dep></entry>
335     <entry><ind>        6.0</ind>       <dep>   216.0</dep></entry>
336     <entry><ind>        6.99</ind>      <dep>   216.1</dep></entry>
337     <entry><ind>        7.0</ind>       <dep>   252.0</dep></entry>
338     <entry><ind>        7.99</ind>      <dep>   252.1</dep></entry>
339     <entry><ind>        8.0</ind>       <dep>   288.0</dep></entry>
340     <entry><ind>        8.99</ind>      <dep>   288.1</dep></entry>
341     <entry><ind>        9.0</ind>       <dep>   324.0</dep></entry>
342     <entry><ind>        9.99</ind>      <dep>   324.1</dep></entry>
343     <entry><ind>        9.999</ind>     <dep>   359.9</dep></entry>
344   </interpolation>
345   <center>
346     <x-m>-0.01393</x-m>
347     <y-m>0.0</y-m>
348     <z-m>0.0534</z-m>
349   </center>
350   <axis>
351     <x>0.0</x>
352     <y>-1.0</y>
353     <z>0.0</z>
354   </axis>
355 </animation>
356
357 <!--Plane deg-->  
358 <animation>
359   <type>rotate</type>
360   <object-name>dig_plane_ones</object-name>
361   <property>tu154/instrumentation/pnp[0]/plane/ones</property>  
362   <factor>36</factor>
363   <center>
364     <x-m>-0.01393</x-m>
365     <y-m>0.0</y-m>
366     <z-m>0.0534</z-m>
367   </center>
368   <axis>
369     <x>0.0</x>
370     <y>-1.0</y>
371     <z>0.0</z>
372   </axis>
373 </animation>
374 <animation>
375   <type>rotate</type>
376   <object-name>dig_plane_dec</object-name>
377   <property>tu154/instrumentation/pnp[0]/plane/dec</property>  
378   <interpolation>
379     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
380     <entry><ind>        0.9</ind>       <dep>   0.1</dep></entry>
381     <entry><ind>        1.0</ind>       <dep>   36.0</dep></entry>
382     <entry><ind>        1.9</ind>       <dep>   36.1</dep></entry>
383     <entry><ind>        2.0</ind>       <dep>   72.0</dep></entry>
384     <entry><ind>        2.9</ind>       <dep>   72.1</dep></entry>
385     <entry><ind>        3.0</ind>       <dep>   108.0</dep></entry>
386     <entry><ind>        3.9</ind>       <dep>   108.1</dep></entry>
387     <entry><ind>        4.0</ind>       <dep>   144.0</dep></entry>
388     <entry><ind>        4.9</ind>       <dep>   144.1</dep></entry>
389     <entry><ind>        5.0</ind>       <dep>   180.0</dep></entry>
390     <entry><ind>        5.9</ind>       <dep>   180.1</dep></entry>
391     <entry><ind>        6.0</ind>       <dep>   216.0</dep></entry>
392     <entry><ind>        6.9</ind>       <dep>   216.1</dep></entry>
393     <entry><ind>        7.0</ind>       <dep>   252.0</dep></entry>
394     <entry><ind>        7.9</ind>       <dep>   252.1</dep></entry>
395     <entry><ind>        8.0</ind>       <dep>   288.0</dep></entry>
396     <entry><ind>        8.9</ind>       <dep>   288.1</dep></entry>
397     <entry><ind>        9.0</ind>       <dep>   324.0</dep></entry>
398     <entry><ind>        9.9</ind>       <dep>   324.1</dep></entry>
399     <entry><ind>        9.99</ind>      <dep>   359.9</dep></entry>
400   </interpolation>
401   <center>
402     <x-m>-0.01393</x-m>
403     <y-m>0.0</y-m>
404     <z-m>0.0534</z-m>
405   </center>
406   <axis>
407     <x>0.0</x>
408     <y>-1.0</y>
409     <z>0.0</z>
410   </axis>
411 </animation>
412 <animation>
413   <type>rotate</type>
414   <object-name>dig_plane_hund</object-name>
415   <property>tu154/instrumentation/pnp[0]/plane/hund</property>  
416   <interpolation>
417     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
418     <entry><ind>        0.99</ind>      <dep>   0.1</dep></entry>
419     <entry><ind>        1.0</ind>       <dep>   36.0</dep></entry>
420     <entry><ind>        1.99</ind>      <dep>   36.1</dep></entry>
421     <entry><ind>        2.0</ind>       <dep>   72.0</dep></entry>
422     <entry><ind>        2.99</ind>      <dep>   72.1</dep></entry>
423     <entry><ind>        3.0</ind>       <dep>   108.0</dep></entry>
424     <entry><ind>        3.99</ind>      <dep>   108.1</dep></entry>
425     <entry><ind>        4.0</ind>       <dep>   144.0</dep></entry>
426     <entry><ind>        4.99</ind>      <dep>   144.1</dep></entry>
427     <entry><ind>        5.0</ind>       <dep>   180.0</dep></entry>
428     <entry><ind>        5.99</ind>      <dep>   180.1</dep></entry>
429     <entry><ind>        6.0</ind>       <dep>   216.0</dep></entry>
430     <entry><ind>        6.99</ind>      <dep>   216.1</dep></entry>
431     <entry><ind>        7.0</ind>       <dep>   252.0</dep></entry>
432     <entry><ind>        7.99</ind>      <dep>   252.1</dep></entry>
433     <entry><ind>        8.0</ind>       <dep>   288.0</dep></entry>
434     <entry><ind>        8.99</ind>      <dep>   288.1</dep></entry>
435     <entry><ind>        9.0</ind>       <dep>   324.0</dep></entry>
436     <entry><ind>        9.99</ind>      <dep>   324.1</dep></entry>
437     <entry><ind>        9.999</ind>     <dep>   359.9</dep></entry>
438   </interpolation>
439   <center>
440     <x-m>-0.01393</x-m>
441     <y-m>0.0</y-m>
442     <z-m>0.0534</z-m>
443   </center>
444   <axis>
445     <x>0.0</x>
446     <y>-1.0</y>
447     <z>0.0</z>
448   </axis>
449 </animation>
450
451
452
453 <!--Handles-->
454
455 <animation>
456   <type>rotate</type>
457   <object-name>plane_sym_handle</object-name>
458   <property>tu154/instrumentation/pnp[0]/plane-deg</property>
459   <factor>5.0</factor>
460   <center>
461     <x-m>0.0</x-m>
462     <y-m>0.05358</y-m>
463     <z-m>-0.05518</z-m>
464   </center>
465   <axis>
466     <x>-1.0</x>
467     <y>0.0</y>
468     <z>0.0</z>
469   </axis>
470 </animation>
471 <animation>
472   <type>rotate</type>
473   <object-name>heading_sym_handle</object-name>
474   <property>tu154/instrumentation/pnp[0]/heading-deg</property>
475   <factor>5.0</factor>
476   <center>
477     <x-m>0.0</x-m>
478     <y-m>-0.05386</y-m>
479     <z-m>-0.05461</z-m>
480   </center>
481   <axis>
482     <x>-1.0</x>
483     <y>0.0</y>
484     <z>0.0</z>
485   </axis>
486 </animation>
487
488  <!--+++++++++++++++++ Controls ++++++++++++++++++++++-->
489 <animation>
490   <type>pick</type>
491   <object-name>plane_sym_handle</object-name>
492   <visible>true</visible>
493   <action>
494     <button>0</button>
495     <repeatable>true</repeatable>
496     <interval-sec>0.15</interval-sec>
497 <!--    <binding>
498       <command>property-adjust</command>
499       <property>tu154/instrumentation/pnp[0]/plane-deg</property>
500       <step>1.0</step>
501     </binding>-->
502     <binding>
503       <command>nasal</command>
504 <script>instruments.compass_adjust_plane(0,1)</script>
505     </binding>
506     
507   </action>
508 </animation>
509 <animation>
510   <type>pick</type>
511   <object-name>plane_sym_handle</object-name>
512   <visible>true</visible>
513   <action>
514     <button>1</button>
515     <repeatable>true</repeatable>
516     <interval-sec>0.15</interval-sec>
517 <!--    <binding>
518       <command>property-adjust</command>
519       <property>tu154/instrumentation/pnp[0]/plane-deg</property>
520       <step>-1.0</step>
521     </binding>-->
522     <binding>
523       <command>nasal</command>
524       <script>instruments.compass_adjust_plane(0,-1)</script>
525     </binding>
526   </action>
527 </animation>
528 <animation>
529   <type>pick</type>
530   <object-name>heading_sym_handle</object-name>
531   <visible>true</visible>
532   <action>
533     <button>0</button>
534     <repeatable>true</repeatable>
535     <interval-sec>0.15</interval-sec>
536 <!--    <binding>
537       <command>property-adjust</command>
538       <property>tu154/instrumentation/pnp[0]/heading-deg</property>
539       <step>1.0</step>
540     </binding>-->
541     <binding>
542       <command>nasal</command>
543         <script>instruments.compass_adjust_hdg(0,1)</script>
544     </binding>
545
546   </action>
547 </animation>
548 <animation>
549   <type>pick</type>
550   <object-name>heading_sym_handle</object-name>
551   <visible>true</visible>
552   <action>
553     <button>1</button>
554     <repeatable>true</repeatable>
555     <interval-sec>0.15</interval-sec>
556 <!--    <binding>
557       <command>property-adjust</command>
558       <property>tu154/instrumentation/pnp[0]/heading-deg</property>
559       <step>-1.0</step>
560     </binding>-->
561     <binding>
562       <command>nasal</command>
563 <script>instruments.compass_adjust_hdg(0,-1)</script>
564     </binding>
565   </action>
566 </animation>
567
568 <!--+++++++++++++++++ Mouse wheel ++++++++++++++++++++++-->
569 <animation>
570   <type>pick</type>
571   <object-name>plane_sym_handle</object-name>
572   <visible>true</visible>
573   <action>
574     <button>3</button>
575     <repeatable>false</repeatable>
576 <!--    <binding>
577       <command>property-adjust</command>
578       <property>tu154/instrumentation/pnp[0]/plane-deg</property>
579       <step>1.0</step>
580     </binding>-->
581     <binding>
582       <command>nasal</command>
583       <script>instruments.compass_adjust_plane(0,1)</script>
584     </binding>
585   </action>
586 </animation>
587 <animation>
588   <type>pick</type>
589   <object-name>plane_sym_handle</object-name>
590   <visible>true</visible>
591   <action>
592     <button>4</button>
593     <repeatable>false</repeatable>
594 <!--    <binding>
595       <command>property-adjust</command>
596       <property>tu154/instrumentation/pnp[0]/plane-deg</property>
597       <step>-1.0</step>
598     </binding>-->
599     <binding>
600       <command>nasal</command>
601  <script>instruments.compass_adjust_plane(0,-1)</script>
602     </binding>
603     
604   </action>
605 </animation>
606 <animation>
607   <type>pick</type>
608   <object-name>heading_sym_handle</object-name>
609   <visible>true</visible>
610   <action>
611     <button>3</button>
612     <repeatable>false</repeatable>
613 <!--    <binding>
614       <command>property-adjust</command>
615       <property>tu154/instrumentation/pnp[0]/heading-deg</property>
616       <step>1.0</step>
617     </binding>-->
618     <binding>
619       <command>nasal</command>
620  <script>instruments.compass_adjust_hdg(0,1)</script>
621     </binding>
622
623   </action>
624 </animation>
625 <animation>
626   <type>pick</type>
627   <object-name>heading_sym_handle</object-name>
628   <visible>true</visible>
629   <action>
630     <button>4</button>
631     <repeatable>false</repeatable>
632 <!--    <binding>
633       <command>property-adjust</command>
634       <property>tu154/instrumentation/pnp[0]/heading-deg</property>
635       <step>-1.0</step>
636     </binding>-->
637     <binding>
638       <command>nasal</command>
639 <script>instruments.compass_adjust_hdg(0,-1)</script>
640     </binding>
641   </action>
642 </animation>
643
644
645
646 </PropertyList>