Tu-154B2 version 3.1:
[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   <params>
12     <mode>tu154/instrumentation/pnp[0]/mode</mode>
13     <distance>tu154/instrumentation/pnp[0]/distance</distance>
14     <compass>fdm/jsbsim/instrumentation/pnp-heading-left</compass>
15     <plane-dialed>tu154/instrumentation/pnp[0]/plane-dialed</plane-dialed>
16     <dir-course>tu154/instrumentation/pnp[0]/heading-deg</dir-course>
17     <dir-plane>tu154/instrumentation/pnp[0]/plane-deg</dir-plane>
18     <defl-course>tu154/instrumentation/pnp[0]/defl-course</defl-course>
19     <defl-gs>tu154/instrumentation/pnp[0]/defl-gs</defl-gs>
20     <serviceable>instrumentation/heading-indicator[0]/serviceable</serviceable>
21     <blank-course>tu154/instrumentation/pnp[0]/blank-course</blank-course>
22     <blank-gs>tu154/instrumentation/pnp[0]/blank-gs</blank-gs>
23     <blank-dist>tu154/instrumentation/pnp[0]/blank-dist</blank-dist>
24   </params>
25
26   <path>pnp.ac</path>
27   <!--External panel lighting-->
28   <animation>
29     <type>material</type>
30     <object-name>cover</object-name>
31     <emission>
32       <red-prop>tu154/light/panel/ext-red</red-prop>
33       <green-prop>tu154/light/panel/ext-green</green-prop>
34       <blue-prop>tu154/light/panel/ext-blue</blue-prop>
35     </emission>
36   </animation>
37
38   <!-- Internal instrument lighting -->  
39   <animation>
40     <type>material</type>
41     <object-name>compass</object-name>
42     <object-name>needle</object-name>
43     <object-name>kurs_plan</object-name>
44     <object-name>center</object-name>
45     <object-name>kurs_planka</object-name>
46     <object-name>limb</object-name>
47     <object-name>dkm</object-name>
48     <object-name>drift</object-name>
49     <object-name>plane_sym</object-name>
50     <object-name>plane_sym_handle</object-name>
51     <object-name>heading_sym_handle</object-name>
52     <object-name>dig_plane_ones</object-name>
53     <object-name>dig_plane_dec</object-name>
54     <object-name>dig_plane_hund</object-name>
55     <object-name>dig_heading_ones</object-name>
56     <object-name>dig_heading_dec</object-name>
57     <object-name>dig_heading_hund</object-name>
58     <object-name>blanker_k</object-name>
59     <object-name>blanker_g</object-name>
60     <object-name>blanker_ks</object-name>
61     <emission>
62       <red-prop>tu154/light/instruments/int-red</red-prop>
63       <green-prop>tu154/light/instruments/int-green</green-prop>
64       <blue-prop>tu154/light/instruments/int-blue</blue-prop>
65     </emission>
66   </animation>
67   <!--Yellow color-->
68   <animation>
69     <type>material</type>
70     <object-name>gliss_planka</object-name>
71     <object-name>heading_marker_main</object-name>
72     <object-name>heading_marker_90</object-name>
73     <object-name>heading_marker_180</object-name>
74     <object-name>heading_marker_270</object-name>
75     <emission>
76       <red-prop>tu154/light/instruments/int-red</red-prop>
77       <green-prop>tu154/light/instruments/int-green</green-prop>
78     </emission>
79   </animation>
80   <!--Red color-->
81   <animation>
82     <type>material</type>
83     <object-name>blanker_dkm</object-name>
84     <object-name>blanker_heading</object-name>
85     <emission>
86       <red-prop>tu154/light/instruments/int-red</red-prop>
87     </emission>
88   </animation>
89   <animation>
90           <type>material</type>
91           <object-name>sp_on</object-name>
92           <object-name>vor_on</object-name>
93           <object-name>nv_on</object-name>
94           <object-name>rsbn_on</object-name>
95           <emission>
96                   <red>1.0</red>
97                   <green>1.0</green>
98                   <blue>1.0</blue>
99           </emission>
100   </animation>
101
102 <!--mode selector-->
103 <animation>
104         <type>material</type>
105         <object-name>sp_on</object-name>
106         <object-name>vor_on</object-name>
107         <object-name>nv_on</object-name>
108         <object-name>rsbn_on</object-name>
109         <emission>
110                 <red>1.0</red>
111                 <green>1.0</green>
112                 <blue>1.0</blue>
113         </emission>
114 </animation>
115
116 <animation>
117   <type>select</type>
118   <object-name>sp_on</object-name>
119   <condition>
120     <equals>
121       <property alias="../../../../params/mode"/>
122       <value>4</value>
123     </equals>
124   </condition>
125 </animation>
126 <animation>
127   <type>select</type>
128   <object-name>vor_on</object-name>
129   <condition>
130     <or>
131       <equals>
132         <property alias="../../../../../params/mode"/>
133         <value>2</value>
134       </equals>
135       <equals>
136         <property alias="../../../../../params/mode"/>
137         <value>3</value>
138       </equals>
139     </or>
140   </condition>
141 </animation>
142 <animation>
143   <type>select</type>
144   <object-name>nv_on</object-name>
145   <condition>
146     <equals>
147       <property alias="../../../../params/mode"/>
148       <value>1</value>
149     </equals>
150   </condition>
151 </animation>
152 <!--Not in use-->
153 <animation>
154   <type>select</type>
155   <object-name>rsbn_on</object-name>
156 <!--  <condition>
157     <property>tu154/rsbn_on</property>
158   </condition>-->
159 </animation>
160
161 <!--Blankers-->
162 <animation>
163   <type>select</type>
164   <object-name>blanker_dkm</object-name>
165   <condition>
166     <property alias="../../../params/blank-dist"/>
167   </condition>
168 </animation>
169 <animation>
170   <type>select</type>
171   <object-name>blanker_heading</object-name>
172 <!--  <condition>
173     <property>tu154/blankers</property>
174   </condition>-->
175 </animation>
176 <animation>
177   <type>select</type>
178   <object-name>blanker_k</object-name>
179   <condition>
180     <property alias="../../../params/blank-course"/>
181   </condition>
182 </animation>
183 <animation>
184   <type>select</type>
185   <object-name>blanker_g</object-name>
186   <condition>
187     <property alias="../../../params/blank-gs"/>
188   </condition>
189 </animation>
190 <animation>
191   <type>select</type>
192   <object-name>blanker_ks</object-name>
193   <condition>
194     <not><property alias="../../../../params/serviceable"/></not>
195   </condition>
196 </animation>
197
198 <!--Needles-->  
199 <animation>
200   <type>rotate</type>
201   <object-name>needle</object-name>
202   <object-name>kurs_plan</object-name>
203   <object-name>kurs_planka</object-name>
204   <property alias="../../params/dir-plane"/>
205   <axis>
206     <x>-1.0</x>
207     <y>0.0</y>
208     <z>0.0</z>
209   </axis>
210 </animation>
211 <!--Marker-->
212 <animation>
213   <type>rotate</type>
214   <object-name>heading_marker_main</object-name>
215   <object-name>heading_marker_90</object-name>
216   <object-name>heading_marker_180</object-name>
217   <object-name>heading_marker_270</object-name>
218   <property alias="../../params/dir-course"/>
219   <axis>
220     <x>-1.0</x>
221     <y>0.0</y>
222     <z>0.0</z>
223   </axis>
224 </animation>
225
226
227 <!--Compass-->
228   <animation>
229     <type>rotate</type>
230     <object-name>compass</object-name>
231     <object-name>needle</object-name>
232     <object-name>kurs_plan</object-name>
233     <object-name>kurs_planka</object-name>
234     <object-name>heading_marker_main</object-name>
235     <object-name>heading_marker_90</object-name>
236     <object-name>heading_marker_180</object-name>
237     <object-name>heading_marker_270</object-name>
238     <property alias="../../params/compass"/>
239     <axis>
240       <x>1.0</x>
241       <y>0.0</y>
242       <z>0.0</z>
243     </axis>
244   </animation>
245   
246   <!--Drift indicator-->
247   <animation>
248     <type>rotate</type>
249     <object-name>drift</object-name>
250     <property>fdm/jsbsim/instrumentation/nvu/drift-angle</property>
251     <max-deg>20.0</max-deg>
252     <min-deg>-20.0</min-deg>
253     <axis>
254       <x>-1.0</x>
255       <y>0.0</y>
256       <z>0.0</z>
257     </axis>
258   </animation>
259
260   <!--ILS-->
261   <animation>
262     <type>translate</type>
263     <object-name>kurs_planka</object-name>
264     <property alias="../../params/defl-course"/>
265     <factor>0.019</factor>
266     <axis>
267       <x>0.0</x>
268       <y>1.0</y>
269       <z>0.0</z>
270     </axis>
271   </animation>
272   <animation>
273     <type>translate</type>
274     <object-name>gliss_planka</object-name>
275     <property alias="../../params/defl-gs"/>
276     <factor>0.019</factor>
277     <axis>
278       <x>0.0</x>
279       <y>0.0</y>
280       <z>1.0</z>
281     </axis>
282   </animation>
283
284
285
286 <!--Digits-->
287 <!--Distance-->
288 <animation>
289   <type>rotate</type>
290   <object-name>dig_heading_ones</object-name>
291   <expression>
292     <product>
293       <abs><property alias="../../../../../params/distance"/></abs>
294       <value>0.036</value>
295     </product>
296   </expression>
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_dec</object-name>
311   <expression>
312     <table>
313       <mod>
314         <abs><property alias="../../../../../../params/distance"/></abs>
315         <value>100000</value>
316       </mod>
317       <entry><ind>          0</ind>     <dep>   0</dep></entry>
318       <entry><ind>       9000</ind>     <dep>   0</dep></entry>
319       <entry><ind>      10000</ind>     <dep>   36</dep></entry>
320       <entry><ind>      19000</ind>     <dep>   36</dep></entry>
321       <entry><ind>      20000</ind>     <dep>   72</dep></entry>
322       <entry><ind>      29000</ind>     <dep>   72</dep></entry>
323       <entry><ind>      30000</ind>     <dep>   108</dep></entry>
324       <entry><ind>      39000</ind>     <dep>   108</dep></entry>
325       <entry><ind>      40000</ind>     <dep>   144</dep></entry>
326       <entry><ind>      49000</ind>     <dep>   144</dep></entry>
327       <entry><ind>      50000</ind>     <dep>   180</dep></entry>
328       <entry><ind>      59000</ind>     <dep>   180</dep></entry>
329       <entry><ind>      60000</ind>     <dep>   216</dep></entry>
330       <entry><ind>      69000</ind>     <dep>   216</dep></entry>
331       <entry><ind>      70000</ind>     <dep>   252</dep></entry>
332       <entry><ind>      79000</ind>     <dep>   252</dep></entry>
333       <entry><ind>      80000</ind>     <dep>   288</dep></entry>
334       <entry><ind>      89000</ind>     <dep>   288</dep></entry>
335       <entry><ind>      90000</ind>     <dep>   324</dep></entry>
336       <entry><ind>      99000</ind>     <dep>   324</dep></entry>
337       <entry><ind>      99900</ind>     <dep>   359.9</dep></entry>
338     </table>
339   </expression>
340   <center>
341     <x-m>-0.01393</x-m>
342     <y-m>0.0</y-m>
343     <z-m>0.0534</z-m>
344   </center>
345   <axis>
346     <x>0.0</x>
347     <y>-1.0</y>
348     <z>0.0</z>
349   </axis>
350 </animation>
351 <animation>
352   <type>rotate</type>
353   <object-name>dig_heading_hund</object-name>
354   <expression>
355     <table>
356       <mod>
357         <abs><property alias="../../../../../../params/distance"/></abs>
358         <value>1000000</value>
359       </mod>
360       <entry><ind>           0</ind>    <dep>   0</dep></entry>
361       <entry><ind>       99000</ind>    <dep>   0</dep></entry>
362       <entry><ind>      100000</ind>    <dep>   36</dep></entry>
363       <entry><ind>      199000</ind>    <dep>   36</dep></entry>
364       <entry><ind>      200000</ind>    <dep>   72</dep></entry>
365       <entry><ind>      299000</ind>    <dep>   72</dep></entry>
366       <entry><ind>      300000</ind>    <dep>   108</dep></entry>
367       <entry><ind>      399000</ind>    <dep>   108</dep></entry>
368       <entry><ind>      400000</ind>    <dep>   144</dep></entry>
369       <entry><ind>      499000</ind>    <dep>   144</dep></entry>
370       <entry><ind>      500000</ind>    <dep>   180</dep></entry>
371       <entry><ind>      599000</ind>    <dep>   180</dep></entry>
372       <entry><ind>      600000</ind>    <dep>   216</dep></entry>
373       <entry><ind>      699000</ind>    <dep>   216</dep></entry>
374       <entry><ind>      700000</ind>    <dep>   252</dep></entry>
375       <entry><ind>      799000</ind>    <dep>   252</dep></entry>
376       <entry><ind>      800000</ind>    <dep>   288</dep></entry>
377       <entry><ind>      899000</ind>    <dep>   288</dep></entry>
378       <entry><ind>      900000</ind>    <dep>   324</dep></entry>
379       <entry><ind>      999000</ind>    <dep>   324</dep></entry>
380       <entry><ind>      999900</ind>    <dep>   359.9</dep></entry>
381     </table>
382   </expression>
383   <center>
384     <x-m>-0.01393</x-m>
385     <y-m>0.0</y-m>
386     <z-m>0.0534</z-m>
387   </center>
388   <axis>
389     <x>0.0</x>
390     <y>-1.0</y>
391     <z>0.0</z>
392   </axis>
393 </animation>
394
395 <!--Plane deg-->  
396 <animation>
397   <type>rotate</type>
398   <object-name>dig_plane_ones</object-name>
399   <property alias="../../params/plane-dialed"/>
400   <factor>36</factor>
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_dec</object-name>
415   <expression>
416     <product>
417       <difference>
418         <mod>
419           <property alias="../../../../../../params/plane-dialed"/>
420           <value>100</value>
421         </mod>
422         <mod>
423           <property alias="../../../../../../params/plane-dialed"/>
424           <value>10</value>
425         </mod>
426       </difference>
427       <value>3.6</value>
428     </product>
429   </expression>
430   <center>
431     <x-m>-0.01393</x-m>
432     <y-m>0.0</y-m>
433     <z-m>0.0534</z-m>
434   </center>
435   <axis>
436     <x>0.0</x>
437     <y>-1.0</y>
438     <z>0.0</z>
439   </axis>
440 </animation>
441 <animation>
442   <type>rotate</type>
443   <object-name>dig_plane_hund</object-name>
444   <expression>
445     <product>
446       <difference>
447         <mod>
448           <property alias="../../../../../../params/plane-dialed"/>
449           <value>1000</value>
450         </mod>
451         <mod>
452           <property alias="../../../../../../params/plane-dialed"/>
453           <value>100</value>
454         </mod>
455       </difference>
456       <value>0.36</value>
457     </product>
458   </expression>
459   <center>
460     <x-m>-0.01393</x-m>
461     <y-m>0.0</y-m>
462     <z-m>0.0534</z-m>
463   </center>
464   <axis>
465     <x>0.0</x>
466     <y>-1.0</y>
467     <z>0.0</z>
468   </axis>
469 </animation>
470
471
472
473 <!--Handles-->
474 <animation>
475   <type>knob</type>
476   <object-name>plane_sym_handle</object-name>
477   <property alias="../../params/plane-dialed"/>
478   <factor>5.0</factor>
479   <center>
480     <x-m>0.0</x-m>
481     <y-m>0.05358</y-m>
482     <z-m>-0.05518</z-m>
483   </center>
484   <axis>
485     <x>-1.0</x>
486     <y>0.0</y>
487     <z>0.0</z>
488   </axis>
489   <action>
490     <binding>
491       <command>property-adjust</command>
492       <property alias="../../../../params/plane-dialed"/>
493       <factor>1</factor>
494       <min>0</min>
495       <max>360</max>
496       <wrap>true</wrap>
497     </binding>
498   </action>
499 </animation>
500 <animation>
501   <type>knob</type>
502   <object-name>heading_sym_handle</object-name>
503   <property alias="../../params/dir-course"/>
504   <factor>5.0</factor>
505   <center>
506     <x-m>0.0</x-m>
507     <y-m>-0.05386</y-m>
508     <z-m>-0.05461</z-m>
509   </center>
510   <axis>
511     <x>-1.0</x>
512     <y>0.0</y>
513     <z>0.0</z>
514   </axis>
515   <action>
516     <binding>
517       <command>property-adjust</command>
518       <property alias="../../../../params/dir-course"/>
519       <factor>1</factor>
520       <min>0</min>
521       <max>360</max>
522       <wrap>true</wrap>
523     </binding>
524   </action>
525 </animation>
526
527
528 </PropertyList>