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