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