Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / nvu / v-57.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 <!-- V-57 NVU (navigation system) control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>v-57.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
17   <object-name>base</object-name>
18     <emission>
19     <red-prop>tu154/light/panel/ext-red</red-prop>
20     <green-prop>tu154/light/panel/ext-green</green-prop>
21     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
22   </emission>
23 </animation>
24
25 <!-- Internal instruments lighting -->
26 <animation>
27   <type>material</type>
28   <object-name>text</object-name>
29   <object-name>digits</object-name>
30   <emission>
31     <red-prop>tu154/light/instruments/int-red</red-prop>
32     <green-prop>tu154/light/instruments/int-green</green-prop>
33     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
34   </emission>
35 </animation>
36
37 <!-- Buttons -->
38 <animation>
39   <type>pick</type>
40   <object-name>hs_1</object-name>
41   <visible>false</visible>
42   <action>
43     <button>0</button>
44     <repeatable>true</repeatable>
45     <interval-sec>0.15</interval-sec>
46     <binding>
47       <command>nasal</command>
48       <script>instruments.nvu_wind_adjust("azimuth", -1)</script>
49     </binding>
50     <mod-up>
51       <binding>
52         <command>nasal</command>
53         <script>instruments.nvu_wind_adjust("azimuth", 0)</script>
54       </binding>
55     </mod-up>
56   </action>
57 </animation>
58 <animation>
59   <type>pick</type>
60   <object-name>hs_2</object-name>
61   <visible>false</visible>
62   <action>
63     <button>0</button>
64     <repeatable>false</repeatable>
65     <binding>
66       <command>property-cycle</command>
67       <property>tu154/instrumentation/v-57/azimuth-adjust-step</property>
68       <value>0.25</value>
69       <value>10</value>
70     </binding>
71   </action>
72   <hovered>
73     <binding>
74       <command>set-tooltip</command>
75       <tooltip-id>nvu-azimuth-adjust-step</tooltip-id>
76       <label>Adjust speed: %s</label>
77       <property>tu154/instrumentation/v-57/azimuth-adjust-step</property>
78       <mapping>nasal</mapping>
79       <script>return (arg[0] == 0.25 ? "slow" : "fast")</script>
80     </binding>
81   </hovered>
82 </animation>
83 <animation>
84   <type>pick</type>
85   <object-name>hs_3</object-name>
86   <visible>false</visible>
87   <action>
88     <button>0</button>
89     <repeatable>true</repeatable>
90     <interval-sec>0.15</interval-sec>
91     <binding>
92       <command>nasal</command>
93       <script>instruments.nvu_wind_adjust("azimuth", 1)</script>
94     </binding>
95     <mod-up>
96       <binding>
97         <command>nasal</command>
98         <script>instruments.nvu_wind_adjust("azimuth", 0)</script>
99       </binding>
100     </mod-up>
101   </action>
102 </animation>
103 <animation>
104   <type>pick</type>
105   <object-name>hs_4</object-name>
106   <visible>false</visible>
107   <action>
108     <button>0</button>
109     <repeatable>true</repeatable>
110     <interval-sec>0.15</interval-sec>
111     <binding>
112       <command>nasal</command>
113       <script>instruments.nvu_wind_adjust("speed", -1)</script>
114     </binding>
115     <mod-up>
116       <binding>
117         <command>nasal</command>
118         <script>instruments.nvu_wind_adjust("speed", 0)</script>
119       </binding>
120     </mod-up>
121   </action>
122 </animation>
123 <animation>
124   <type>pick</type>
125   <object-name>hs_5</object-name>
126   <visible>false</visible>
127   <action>
128     <button>0</button>
129     <repeatable>false</repeatable>
130     <binding>
131       <command>property-cycle</command>
132       <property>tu154/instrumentation/v-57/speed-adjust-step</property>
133       <value>0.25</value>
134       <value>10</value>
135     </binding>
136   </action>
137   <hovered>
138     <binding>
139       <command>set-tooltip</command>
140       <tooltip-id>nvu-speed-adjust-step</tooltip-id>
141       <label>Adjust speed: %s</label>
142       <property>tu154/instrumentation/v-57/speed-adjust-step</property>
143       <mapping>nasal</mapping>
144       <script>return (arg[0] == 0.25 ? "slow" : "fast")</script>
145     </binding>
146   </hovered>
147 </animation>
148 <animation>
149   <type>pick</type>
150   <object-name>hs_6</object-name>
151   <visible>false</visible>
152   <action>
153     <button>0</button>
154     <repeatable>true</repeatable>
155     <interval-sec>0.15</interval-sec>
156     <binding>
157       <command>nasal</command>
158       <script>instruments.nvu_wind_adjust("speed", 1)</script>
159     </binding>
160     <mod-up>
161       <binding>
162         <command>nasal</command>
163         <script>instruments.nvu_wind_adjust("speed", 0)</script>
164       </binding>
165     </mod-up>
166   </action>
167 </animation>
168
169 <!-- Wind azimuth -->
170 <animation>
171   <type>rotate</type>
172   <object-name>ones_1</object-name>
173   <property>tu154/systems/nvu/wind-azimuth-smooth</property>
174   <factor>36</factor>
175   <center>
176     <x-m>-0.03059</x-m>
177     <y-m>0</y-m>
178     <z-m>0.01779</z-m>
179   </center>
180   <axis>
181     <x>0.0</x>
182     <y>-1.0</y>
183     <z>0.0</z>
184   </axis>
185 </animation>
186 <animation>
187   <type>rotate</type>
188   <object-name>dec_1</object-name>
189   <expression>
190     <table>
191       <mod>
192         <property>tu154/systems/nvu/wind-azimuth-smooth</property>
193         <value>360</value>
194       </mod>
195       <entry><ind>        0</ind>       <dep>   0</dep></entry>
196       <entry><ind>        9</ind>       <dep>   0</dep></entry>
197       <entry><ind>       10</ind>       <dep>   36</dep></entry>
198       <entry><ind>       19</ind>       <dep>   36</dep></entry>
199       <entry><ind>       20</ind>       <dep>   72</dep></entry>
200       <entry><ind>       29</ind>       <dep>   72</dep></entry>
201       <entry><ind>       30</ind>       <dep>   108</dep></entry>
202       <entry><ind>       39</ind>       <dep>   108</dep></entry>
203       <entry><ind>       40</ind>       <dep>   144</dep></entry>
204       <entry><ind>       49</ind>       <dep>   144</dep></entry>
205       <entry><ind>       50</ind>       <dep>   180</dep></entry>
206       <entry><ind>       59</ind>       <dep>   180</dep></entry>
207       <entry><ind>       60</ind>       <dep>   216</dep></entry>
208       <entry><ind>       69</ind>       <dep>   216</dep></entry>
209       <entry><ind>       70</ind>       <dep>   252</dep></entry>
210       <entry><ind>       79</ind>       <dep>   252</dep></entry>
211       <entry><ind>       80</ind>       <dep>   288</dep></entry>
212       <entry><ind>       89</ind>       <dep>   288</dep></entry>
213       <entry><ind>       90</ind>       <dep>   324</dep></entry>
214       <entry><ind>       99</ind>       <dep>   324</dep></entry>
215       <entry><ind>       99.9</ind>     <dep>   359.9</dep></entry>
216       <entry><ind>      100</ind>       <dep>   0</dep></entry>
217       <entry><ind>      109</ind>       <dep>   0</dep></entry>
218       <entry><ind>      110</ind>       <dep>   36</dep></entry>
219       <entry><ind>      119</ind>       <dep>   36</dep></entry>
220       <entry><ind>      120</ind>       <dep>   72</dep></entry>
221       <entry><ind>      129</ind>       <dep>   72</dep></entry>
222       <entry><ind>      130</ind>       <dep>   108</dep></entry>
223       <entry><ind>      139</ind>       <dep>   108</dep></entry>
224       <entry><ind>      140</ind>       <dep>   144</dep></entry>
225       <entry><ind>      149</ind>       <dep>   144</dep></entry>
226       <entry><ind>      150</ind>       <dep>   180</dep></entry>
227       <entry><ind>      159</ind>       <dep>   180</dep></entry>
228       <entry><ind>      160</ind>       <dep>   216</dep></entry>
229       <entry><ind>      169</ind>       <dep>   216</dep></entry>
230       <entry><ind>      170</ind>       <dep>   252</dep></entry>
231       <entry><ind>      179</ind>       <dep>   252</dep></entry>
232       <entry><ind>      180</ind>       <dep>   288</dep></entry>
233       <entry><ind>      189</ind>       <dep>   288</dep></entry>
234       <entry><ind>      190</ind>       <dep>   324</dep></entry>
235       <entry><ind>      199</ind>       <dep>   324</dep></entry>
236       <entry><ind>      199.9</ind>     <dep>   359.9</dep></entry>
237       <entry><ind>      200</ind>       <dep>   0</dep></entry>
238       <entry><ind>      209</ind>       <dep>   0</dep></entry>
239       <entry><ind>      210</ind>       <dep>   36</dep></entry>
240       <entry><ind>      219</ind>       <dep>   36</dep></entry>
241       <entry><ind>      220</ind>       <dep>   72</dep></entry>
242       <entry><ind>      229</ind>       <dep>   72</dep></entry>
243       <entry><ind>      230</ind>       <dep>   108</dep></entry>
244       <entry><ind>      239</ind>       <dep>   108</dep></entry>
245       <entry><ind>      240</ind>       <dep>   144</dep></entry>
246       <entry><ind>      249</ind>       <dep>   144</dep></entry>
247       <entry><ind>      250</ind>       <dep>   180</dep></entry>
248       <entry><ind>      259</ind>       <dep>   180</dep></entry>
249       <entry><ind>      260</ind>       <dep>   216</dep></entry>
250       <entry><ind>      269</ind>       <dep>   216</dep></entry>
251       <entry><ind>      270</ind>       <dep>   252</dep></entry>
252       <entry><ind>      279</ind>       <dep>   252</dep></entry>
253       <entry><ind>      280</ind>       <dep>   288</dep></entry>
254       <entry><ind>      289</ind>       <dep>   288</dep></entry>
255       <entry><ind>      290</ind>       <dep>   324</dep></entry>
256       <entry><ind>      299</ind>       <dep>   324</dep></entry>
257       <entry><ind>      299.9</ind>     <dep>   359.9</dep></entry>
258       <entry><ind>      300</ind>       <dep>   0</dep></entry>
259       <entry><ind>      309</ind>       <dep>   0</dep></entry>
260       <entry><ind>      310</ind>       <dep>   36</dep></entry>
261       <entry><ind>      319</ind>       <dep>   36</dep></entry>
262       <entry><ind>      320</ind>       <dep>   72</dep></entry>
263       <entry><ind>      329</ind>       <dep>   72</dep></entry>
264       <entry><ind>      330</ind>       <dep>   108</dep></entry>
265       <entry><ind>      339</ind>       <dep>   108</dep></entry>
266       <entry><ind>      340</ind>       <dep>   144</dep></entry>
267       <entry><ind>      349</ind>       <dep>   144</dep></entry>
268       <entry><ind>      350</ind>       <dep>   180</dep></entry>
269       <entry><ind>      359.5</ind>     <dep>   180</dep></entry>
270       <entry><ind>      359.75</ind>    <dep>   359.75</dep></entry>
271     </table>
272   </expression>
273   <center>
274     <x-m>-0.03059</x-m>
275     <y-m>0</y-m>
276     <z-m>0.01779</z-m>
277   </center>
278   <axis>
279     <x>0.0</x>
280     <y>-1.0</y>
281     <z>0.0</z>
282   </axis>
283 </animation>
284 <animation>
285   <type>rotate</type>
286   <object-name>hund_1</object-name>
287   <expression>
288     <table>
289       <mod>
290         <property>tu154/systems/nvu/wind-azimuth-smooth</property>
291         <value>360</value>
292       </mod>
293       <entry><ind>        0</ind>       <dep>   0</dep></entry>
294       <entry><ind>       99</ind>       <dep>   0</dep></entry>
295       <entry><ind>      100</ind>       <dep>   36</dep></entry>
296       <entry><ind>      199</ind>       <dep>   36</dep></entry>
297       <entry><ind>      200</ind>       <dep>   72</dep></entry>
298       <entry><ind>      299</ind>       <dep>   72</dep></entry>
299       <entry><ind>      300</ind>       <dep>   108</dep></entry>
300       <entry><ind>      359.5</ind>     <dep>   108</dep></entry>
301       <entry><ind>      359.75</ind>    <dep>   359.75</dep></entry>
302     </table>
303   </expression>
304   <center>
305     <x-m>-0.03059</x-m>
306     <y-m>0</y-m>
307     <z-m>0.01779</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 <!-- Wind fork -->
317 <animation>
318   <type>rotate</type>
319   <object-name>ones_2</object-name>
320   <expression>
321     <product>
322       <max>
323         <property>tu154/systems/nvu/wind-fork</property>
324         <value>0</value>
325       </max>
326       <value>36</value>
327     </product>
328   </expression>
329   <center>
330     <x-m>-0.03059</x-m>
331     <y-m>0</y-m>
332     <z-m>0.01779</z-m>
333   </center>
334   <axis>
335     <x>0.0</x>
336     <y>-1.0</y>
337     <z>0.0</z>
338   </axis>
339 </animation>
340 <animation>
341   <type>rotate</type>
342   <object-name>dec_2</object-name>
343   <expression>
344     <table>
345       <max>
346         <mod>
347           <property>tu154/systems/nvu/wind-fork</property>
348           <value>100</value>
349         </mod>
350         <value>0</value>
351       </max>
352       <entry><ind>       0</ind>        <dep>   0</dep></entry>
353       <entry><ind>       9</ind>        <dep>   0</dep></entry>
354       <entry><ind>      10</ind>        <dep>   36</dep></entry>
355       <entry><ind>      19</ind>        <dep>   36</dep></entry>
356       <entry><ind>      20</ind>        <dep>   72</dep></entry>
357       <entry><ind>      29</ind>        <dep>   72</dep></entry>
358       <entry><ind>      30</ind>        <dep>   108</dep></entry>
359       <entry><ind>      39</ind>        <dep>   108</dep></entry>
360       <entry><ind>      40</ind>        <dep>   144</dep></entry>
361       <entry><ind>      49</ind>        <dep>   144</dep></entry>
362       <entry><ind>      50</ind>        <dep>   180</dep></entry>
363       <entry><ind>      59</ind>        <dep>   180</dep></entry>
364       <entry><ind>      60</ind>        <dep>   216</dep></entry>
365       <entry><ind>      69</ind>        <dep>   216</dep></entry>
366       <entry><ind>      70</ind>        <dep>   252</dep></entry>
367       <entry><ind>      79</ind>        <dep>   252</dep></entry>
368       <entry><ind>      80</ind>        <dep>   288</dep></entry>
369       <entry><ind>      89</ind>        <dep>   288</dep></entry>
370       <entry><ind>      90</ind>        <dep>   324</dep></entry>
371     </table>
372   </expression>
373   <center>
374     <x-m>-0.03059</x-m>
375     <y-m>0</y-m>
376     <z-m>0.01779</z-m>
377   </center>
378   <axis>
379     <x>0.0</x>
380     <y>-1.0</y>
381     <z>0.0</z>
382   </axis>
383 </animation>
384 <animation>
385   <type>rotate</type>
386   <object-name>hund_2</object-name>
387   <expression>
388     <product>
389       <min>
390         <property>tu154/systems/nvu/wind-fork</property>
391         <value>0</value>
392       </min>
393       <value>-36</value>
394     </product>
395   </expression>
396   <center>
397     <x-m>-0.03059</x-m>
398     <y-m>0</y-m>
399     <z-m>0.01779</z-m>
400   </center>
401   <axis>
402     <x>0.0</x>
403     <y>-1.0</y>
404     <z>0.0</z>
405   </axis>
406 </animation>
407 <animation>
408   <type>rotate</type>
409   <object-name>ths_2</object-name>
410   <expression>
411     <table>
412       <min>
413         <mod>
414           <property>tu154/systems/nvu/wind-fork</property>
415           <value>100</value>
416         </mod>
417         <value>0</value>
418       </min>
419       <entry><ind>        0</ind>       <dep>   0</dep></entry>
420       <entry><ind>       -9</ind>       <dep>   0</dep></entry>
421       <entry><ind>      -10</ind>       <dep>   36</dep></entry>
422       <entry><ind>      -19</ind>       <dep>   36</dep></entry>
423       <entry><ind>      -20</ind>       <dep>   72</dep></entry>
424       <entry><ind>      -29</ind>       <dep>   72</dep></entry>
425       <entry><ind>      -30</ind>       <dep>   108</dep></entry>
426       <entry><ind>      -39</ind>       <dep>   108</dep></entry>
427       <entry><ind>      -40</ind>       <dep>   144</dep></entry>
428       <entry><ind>      -49</ind>       <dep>   144</dep></entry>
429       <entry><ind>      -50</ind>       <dep>   180</dep></entry>
430       <entry><ind>      -59</ind>       <dep>   180</dep></entry>
431       <entry><ind>      -60</ind>       <dep>   216</dep></entry>
432       <entry><ind>      -69</ind>       <dep>   216</dep></entry>
433       <entry><ind>      -70</ind>       <dep>   252</dep></entry>
434       <entry><ind>      -79</ind>       <dep>   252</dep></entry>
435       <entry><ind>      -80</ind>       <dep>   288</dep></entry>
436       <entry><ind>      -89</ind>       <dep>   288</dep></entry>
437       <entry><ind>      -90</ind>       <dep>   324</dep></entry>
438     </table>
439   </expression>
440   <center>
441     <x-m>-0.03059</x-m>
442     <y-m>0</y-m>
443     <z-m>0.01779</z-m>
444   </center>
445   <axis>
446     <x>0.0</x>
447     <y>-1.0</y>
448     <z>0.0</z>
449   </axis>
450 </animation>
451
452 <!--Hide unuse digits-->
453 <animation>
454   <type>select</type>
455   <object-name>ones_2</object-name>
456   <object-name>dec_2</object-name>
457   <condition>
458     <greater-than>
459       <property>tu154/systems/nvu/wind-fork</property>
460       <value>-0.1</value>
461     </greater-than>
462   </condition>
463 </animation>
464
465 <animation>
466   <type>select</type>
467   <object-name>hund_2</object-name>
468   <object-name>ths_2</object-name>
469   <condition>
470     <less-than>
471       <property>tu154/systems/nvu/wind-fork</property>
472       <value>0.1</value>
473     </less-than>
474   </condition>
475 </animation>
476
477 <!-- Wind speed -->
478 <animation>
479   <type>rotate</type>
480   <object-name>ones_3</object-name>
481   <property>tu154/systems/nvu/wind-speed-smooth</property>
482   <factor>36</factor>
483   <center>
484     <x-m>-0.03059</x-m>
485     <y-m>0</y-m>
486     <z-m>0.01779</z-m>
487   </center>
488   <axis>
489     <x>0.0</x>
490     <y>-1.0</y>
491     <z>0.0</z>
492   </axis>
493 </animation>
494 <animation>
495   <type>rotate</type>
496   <object-name>dec_3</object-name>
497   <expression>
498     <table>
499       <mod>
500         <property>tu154/systems/nvu/wind-speed-smooth</property>
501         <value>100</value>
502       </mod>
503       <entry><ind>       0</ind>        <dep>   0</dep></entry>
504       <entry><ind>       9</ind>        <dep>   0</dep></entry>
505       <entry><ind>      10</ind>        <dep>   36</dep></entry>
506       <entry><ind>      19</ind>        <dep>   36</dep></entry>
507       <entry><ind>      20</ind>        <dep>   72</dep></entry>
508       <entry><ind>      29</ind>        <dep>   72</dep></entry>
509       <entry><ind>      30</ind>        <dep>   108</dep></entry>
510       <entry><ind>      39</ind>        <dep>   108</dep></entry>
511       <entry><ind>      40</ind>        <dep>   144</dep></entry>
512       <entry><ind>      49</ind>        <dep>   144</dep></entry>
513       <entry><ind>      50</ind>        <dep>   180</dep></entry>
514       <entry><ind>      59</ind>        <dep>   180</dep></entry>
515       <entry><ind>      60</ind>        <dep>   216</dep></entry>
516       <entry><ind>      69</ind>        <dep>   216</dep></entry>
517       <entry><ind>      70</ind>        <dep>   252</dep></entry>
518       <entry><ind>      79</ind>        <dep>   252</dep></entry>
519       <entry><ind>      80</ind>        <dep>   288</dep></entry>
520       <entry><ind>      89</ind>        <dep>   288</dep></entry>
521       <entry><ind>      90</ind>        <dep>   324</dep></entry>
522       <entry><ind>      99</ind>        <dep>   324</dep></entry>
523       <entry><ind>      99.9</ind>      <dep>   359.9</dep></entry>
524     </table>
525   </expression>
526   <center>
527     <x-m>-0.03059</x-m>
528     <y-m>0</y-m>
529     <z-m>0.01779</z-m>
530   </center>
531   <axis>
532     <x>0.0</x>
533     <y>-1.0</y>
534     <z>0.0</z>
535   </axis>
536 </animation>
537
538 <animation>
539   <type>rotate</type>
540   <object-name>hund_3</object-name>
541   <expression>
542     <table>
543       <mod>
544         <property>tu154/systems/nvu/wind-speed-smooth</property>
545         <value>1000</value>
546       </mod>
547       <entry><ind>        0</ind>       <dep>   0</dep></entry>
548       <entry><ind>       99</ind>       <dep>   0</dep></entry>
549       <entry><ind>      100</ind>       <dep>   36</dep></entry>
550       <entry><ind>      199</ind>       <dep>   36</dep></entry>
551       <entry><ind>      200</ind>       <dep>   72</dep></entry>
552       <entry><ind>      299</ind>       <dep>   72</dep></entry>
553       <entry><ind>      300</ind>       <dep>   108</dep></entry>
554       <entry><ind>      399</ind>       <dep>   108</dep></entry>
555       <entry><ind>      400</ind>       <dep>   144</dep></entry>
556       <entry><ind>      499</ind>       <dep>   144</dep></entry>
557       <entry><ind>      500</ind>       <dep>   180</dep></entry>
558       <entry><ind>      599</ind>       <dep>   180</dep></entry>
559       <entry><ind>      600</ind>       <dep>   216</dep></entry>
560       <entry><ind>      699</ind>       <dep>   216</dep></entry>
561       <entry><ind>      700</ind>       <dep>   252</dep></entry>
562       <entry><ind>      799</ind>       <dep>   252</dep></entry>
563       <entry><ind>      800</ind>       <dep>   288</dep></entry>
564       <entry><ind>      899</ind>       <dep>   288</dep></entry>
565       <entry><ind>      900</ind>       <dep>   324</dep></entry>
566       <entry><ind>      999</ind>       <dep>   324</dep></entry>
567       <entry><ind>      999.9</ind>     <dep>   359.9</dep></entry>
568     </table>
569   </expression>
570   <center>
571     <x-m>-0.03059</x-m>
572     <y-m>0</y-m>
573     <z-m>0.01779</z-m>
574   </center>
575   <axis>
576     <x>0.0</x>
577     <y>-1.0</y>
578     <z>0.0</z>
579   </axis>
580 </animation>
581
582 <!--Controls-->
583 <animation>
584   <type>knob</type>
585   <object-name>hs_7</object-name>
586   <visible>false</visible>
587   <action>
588     <binding>
589       <command>property-adjust</command>
590       <property>tu154/systems/nvu/wind-fork</property>
591       <factor>0.25</factor>
592       <min>-90</min>
593       <max>90</max>
594     </binding>
595   </action>
596 </animation>
597
598 </PropertyList>