Tupolev Tu-154B-2 by Yurik and his team.
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / nvu / v-51.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-51 NVU (navigation system) control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>v-51.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
17   <object-name>base</object-name>
18   <object-name>selector_1</object-name>
19   <object-name>selector_2</object-name>
20   <object-name>power</object-name>
21   <object-name>count</object-name>
22   <object-name>corr</object-name>
23     <emission>
24     <red-prop>tu154/light/panel/ext-red</red-prop>
25     <green-prop>tu154/light/panel/ext-green</green-prop>
26     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
27   </emission>
28 </animation>
29
30 <!-- Internal instruments lighting -->
31 <animation>
32   <type>material</type>
33   <object-name>text</object-name>
34   <object-name>_handle_marker</object-name>
35   <emission>
36     <red-prop>tu154/light/instruments/int-red</red-prop>
37     <green-prop>tu154/light/instruments/int-green</green-prop>
38     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
39   </emission>
40 </animation>
41
42 <animation>
43   <type>material</type>
44   <object-name>lamp_1_on</object-name>
45   <object-name>lamp_2_on</object-name>
46   <emission>
47     <red>1.0</red>
48     <green>1.0</green>
49     <blue>1.0</blue>
50     <factor-prop>tu154/systems/nvu/powered</factor-prop>
51   </emission>
52 </animation>
53
54
55 <!--selectors-->
56 <animation>
57   <type>rotate</type>
58   <object-name>selector_1</object-name>
59   <property>tu154/switches/v-51-selector-1</property>
60   <interpolation>
61     <entry><ind>        0.0</ind>       <dep>   -130.0</dep></entry>
62     <entry><ind>        1.0</ind>       <dep>   -95.0</dep></entry>
63     <entry><ind>        2.0</ind>       <dep>   -62.0</dep></entry>
64     <entry><ind>        3.0</ind>       <dep>   -31.0</dep></entry>
65     <entry><ind>        4.0</ind>       <dep>   0.0</dep></entry>
66     <entry><ind>        5.0</ind>       <dep>   31.0</dep></entry>
67     <entry><ind>        6.0</ind>       <dep>   62.0</dep></entry>
68     <entry><ind>        7.0</ind>       <dep>   98.0</dep></entry>
69     <entry><ind>        8.0</ind>       <dep>   130.0</dep></entry>
70   </interpolation>
71   <center>
72     <x-m>0.0</x-m>
73     <y-m>-0.03017</y-m>
74     <z-m>0.00849</z-m>
75   </center>
76   <axis>
77     <x>-1.0</x>
78     <y>0.0</y>
79     <z>0.0</z>
80   </axis>
81 </animation>
82 <animation>
83   <type>rotate</type>
84   <object-name>selector_2</object-name>
85   <property>tu154/switches/v-51-selector-2</property>
86     <interpolation>
87     <entry><ind>        0.0</ind>       <dep>   -90.0</dep></entry>
88     <entry><ind>        6.0</ind>       <dep>   90.0</dep></entry>
89   </interpolation>
90   <center>
91     <x-m>0.0</x-m>
92     <y-m>0.02607</y-m>
93     <z-m>0.0133</z-m>
94   </center>
95   <axis>
96     <x>-1.0</x>
97     <y>0.0</y>
98     <z>0.0</z>
99   </axis>
100 </animation>
101 <!--Switches-->
102 <animation>
103   <type>rotate</type>
104   <object-name>power</object-name>
105   <property>tu154/switches/v-51-power</property>
106   <interpolation>
107     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
108     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
109   </interpolation>
110   <center>
111     <x-m>0.0</x-m>
112     <y-m>0.0</y-m>
113     <z-m>-0.0202</z-m>
114   </center>
115   <axis>
116     <x>0.0</x>
117     <y>-1.0</y>
118     <z>0.0</z>
119   </axis>
120 </animation>
121 <animation>
122   <type>rotate</type>
123   <object-name>count</object-name>
124   <property>tu154/switches/v-51-count</property>
125   <interpolation>
126     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
127     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
128   </interpolation>
129   <center>
130     <x-m>0.0</x-m>
131     <y-m>0.0</y-m>
132     <z-m>-0.0202</z-m>
133   </center>
134   <axis>
135     <x>0.0</x>
136     <y>-1.0</y>
137     <z>0.0</z>
138   </axis>
139 </animation>
140 <animation>
141   <type>rotate</type>
142   <object-name>corr</object-name>
143   <property>tu154/switches/v-51-corr</property>
144   <interpolation>
145     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
146     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
147   </interpolation>
148   <center>
149     <x-m>0.0</x-m>
150     <y-m>0.0</y-m>
151     <z-m>-0.0202</z-m>
152   </center>
153   <axis>
154     <x>0.0</x>
155     <y>-1.0</y>
156     <z>0.0</z>
157   </axis>
158 </animation>
159 <!--Lamps-->
160 <animation>
161   <type>select</type>
162   <object-name>lamp_1_on</object-name>
163   <condition>
164     <property>tu154/systems/nvu/powered</property>
165     <property>tu154/systems/nvu/serviceable</property>
166   </condition>
167 </animation>
168 <animation>
169   <type>select</type>
170   <object-name>lamp_2_on</object-name>
171   <condition>
172     <property>tu154/systems/nvu/rsbn-corr</property>
173   </condition>
174 </animation>
175
176 <!--Controls-->
177 <animation>
178   <type>pick</type>
179   <object-name>hs_1</object-name>
180   <visible>false</visible>
181   <action>
182     <button>0</button>
183     <repeatable>false</repeatable>
184     <binding>
185       <command>nasal</command>
186       <script>
187         interpolate("tu154/switches/v-51-power", 1.0, 0.1 );
188       </script>
189     </binding>
190     <binding>
191       <command>nasal</command>
192       <script>instruments.nvu_power_on()</script>
193     </binding>
194   </action>
195 </animation>
196 <animation>
197   <type>pick</type>
198   <object-name>hs_2</object-name>
199   <visible>false</visible>
200   <action>
201     <button>0</button>
202     <repeatable>false</repeatable>
203     <binding>
204       <command>nasal</command>
205       <script>
206         interpolate("tu154/switches/v-51-power", 0.0, 0.1 );
207       </script>
208     </binding>
209     <binding>
210       <command>nasal</command>
211       <script>instruments.nvu_power_off()</script>
212     </binding>
213   </action>
214 </animation>
215 <animation>
216   <type>pick</type>
217   <object-name>hs_3</object-name>
218   <visible>false</visible>
219   <action>
220     <button>0</button>
221     <repeatable>false</repeatable>
222     <binding>
223       <command>nasal</command>
224       <script>
225         interpolate("tu154/switches/v-51-count", 1.0, 0.1 );
226       </script>
227     </binding>
228     <binding>
229       <command>nasal</command>
230       <script>instruments.nvu_start_count()</script>
231     </binding>
232   </action>
233 </animation>
234 <animation>
235   <type>pick</type>
236   <object-name>hs_4</object-name>
237   <visible>false</visible>
238   <action>
239     <button>0</button>
240     <repeatable>false</repeatable>
241     <binding>
242       <command>nasal</command>
243       <script>
244         interpolate("tu154/switches/v-51-count", 0.0, 0.1 );
245       </script>
246     </binding>
247     <binding>
248       <command>nasal</command>
249       <script>instruments.nvu_stop_count()</script>
250     </binding>
251   </action>
252 </animation>
253 <animation>
254   <type>pick</type>
255   <object-name>hs_5</object-name>
256   <visible>false</visible>
257   <action>
258     <button>0</button>
259     <repeatable>false</repeatable>
260     <binding>
261       <command>nasal</command>
262       <script>
263         interpolate("tu154/switches/v-51-corr", 1.0, 0.1 );
264       </script>
265     </binding>
266     <binding>
267       <command>nasal</command>
268       <script>instruments.nvu_start_corr()</script>
269     </binding>
270   </action>
271 </animation>
272 <animation>
273   <type>pick</type>
274   <object-name>hs_6</object-name>
275   <visible>false</visible>
276   <action>
277     <button>0</button>
278     <repeatable>false</repeatable>
279     <binding>
280       <command>nasal</command>
281       <script>
282         interpolate("tu154/switches/v-51-corr", 0.0, 0.1 );
283       </script>
284     </binding>
285     <binding>
286       <command>nasal</command>
287       <script>instruments.nvu_stop_corr()</script>
288     </binding>
289   </action>
290 </animation>
291
292 <!--Knobs-->
293
294 <animation>
295   <type>pick</type>
296   <object-name>hs_7</object-name>
297   <visible>false</visible>
298   <action>
299     <button>0</button>
300     <repeatable>false</repeatable>
301     <binding>
302       <command>nasal</command>
303       <script>instruments.nvu_set_d(-1)</script>
304     </binding>
305    <mod-up>
306     <binding>
307       <command>nasal</command>
308       <script>instruments.nvu_set_d(0)</script>
309     </binding>
310    </mod-up>
311   </action>
312 </animation>
313 <animation>
314   <type>pick</type>
315   <object-name>hs_8</object-name>
316   <visible>false</visible>
317   <action>
318     <button>0</button>
319     <repeatable>false</repeatable>
320     <binding>
321       <command>nasal</command>
322       <script>instruments.nvu_toggle_multiplier(1)</script>
323     </binding>
324   </action>
325 </animation>
326 <animation>
327   <type>pick</type>
328   <object-name>hs_9</object-name>
329   <visible>false</visible>
330   <action>
331     <button>0</button>
332     <repeatable>false</repeatable>
333     <binding>
334       <command>nasal</command>
335       <script>instruments.nvu_set_d(1)</script>
336     </binding>
337     <mod-up>
338       <binding>
339         <command>nasal</command>
340         <script>instruments.nvu_set_d(0)</script>
341       </binding>
342     </mod-up>
343   </action>
344 </animation>
345
346 <!--Selectors-->
347 <animation>
348   <type>pick</type>
349   <object-name>selector_1</object-name>
350   <visible>true</visible>
351   <action>
352     <button>0</button>
353     <repeatable>false</repeatable>
354     <binding>
355       <command>property-adjust</command>
356       <property>tu154/switches/v-51-selector-1</property>
357       <step>1.0</step>
358       <min>0.0</min>
359       <max>8.0</max>
360       <wrap>false</wrap>
361     </binding>
362   </action>
363 </animation>
364 <animation>
365   <type>pick</type>
366   <object-name>selector_1</object-name>
367   <visible>true</visible>
368   <action>
369     <button>1</button>
370     <repeatable>false</repeatable>
371     <binding>
372       <command>property-adjust</command>
373       <property>tu154/switches/v-51-selector-1</property>
374       <step>-1.0</step>
375       <min>0.0</min>
376       <max>8.0</max>
377       <wrap>false</wrap>
378     </binding>
379   </action>
380 </animation>
381 <!--Mouse wheel-->
382 <animation>
383   <type>pick</type>
384   <object-name>selector_1</object-name>
385   <visible>true</visible>
386   <action>
387     <button>3</button>
388     <repeatable>false</repeatable>
389     <binding>
390       <command>property-adjust</command>
391       <property>tu154/switches/v-51-selector-1</property>
392       <step>1.0</step>
393       <min>0.0</min>
394       <max>8.0</max>
395       <wrap>false</wrap>
396     </binding>
397   </action>
398 </animation>
399 <animation>
400   <type>pick</type>
401   <object-name>selector_1</object-name>
402   <visible>true</visible>
403   <action>
404     <button>4</button>
405     <repeatable>false</repeatable>
406     <binding>
407       <command>property-adjust</command>
408       <property>tu154/switches/v-51-selector-1</property>
409       <step>-1.0</step>
410       <min>0.0</min>
411       <max>8.0</max>
412       <wrap>false</wrap>
413     </binding>
414   </action>
415 </animation>
416 <animation>
417   <type>pick</type>
418   <object-name>selector_2</object-name>
419   <visible>true</visible>
420   <action>
421     <button>0</button>
422     <repeatable>false</repeatable>
423     <binding>
424       <command>property-adjust</command>
425       <property>tu154/switches/v-51-selector-2</property>
426       <step>1.0</step>
427       <min>0.0</min>
428       <max>6.0</max>
429       <wrap>false</wrap>
430     </binding>
431   </action>
432 </animation>
433 <animation>
434   <type>pick</type>
435   <object-name>selector_2</object-name>
436   <visible>true</visible>
437   <action>
438     <button>1</button>
439     <repeatable>false</repeatable>
440     <binding>
441       <command>property-adjust</command>
442       <property>tu154/switches/v-51-selector-2</property>
443       <step>-1.0</step>
444       <min>0.0</min>
445       <max>8.0</max>
446       <wrap>false</wrap>
447     </binding>
448   </action>
449 </animation>
450 <!--Mouse wheel-->
451 <animation>
452   <type>pick</type>
453   <object-name>selector_2</object-name>
454   <visible>true</visible>
455   <action>
456     <button>3</button>
457     <repeatable>false</repeatable>
458     <binding>
459       <command>property-adjust</command>
460       <property>tu154/switches/v-51-selector-2</property>
461       <step>1.0</step>
462       <min>0.0</min>
463       <max>6.0</max>
464       <wrap>false</wrap>
465     </binding>
466   </action>
467 </animation>
468 <animation>
469   <type>pick</type>
470   <object-name>selector_2</object-name>
471   <visible>true</visible>
472   <action>
473     <button>4</button>
474     <repeatable>false</repeatable>
475     <binding>
476       <command>property-adjust</command>
477       <property>tu154/switches/v-51-selector-2</property>
478       <step>-1.0</step>
479       <min>0.0</min>
480       <max>6.0</max>
481       <wrap>false</wrap>
482     </binding>
483   </action>
484 </animation>
485 <!--Mode selector-->
486 <animation>
487   <type>pick</type>
488   <object-name>hs_10</object-name>
489   <visible>false</visible>
490   <action>
491     <button>0</button>
492     <repeatable>false</repeatable>
493     <binding>
494       <command>property-toggle</command>
495       <property>tu154/systems/nvu/mode</property>
496     </binding>
497   </action>
498 </animation>
499
500 </PropertyList>