Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / pu-11 / pu-11.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 <!-- PU-11 control gauge
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>pu-11.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 <animation>
25   <type>material</type>
26   <object-name>switches</object-name>
27   <emission>
28     <red-prop>tu154/light/panel/ext-red</red-prop>
29     <green-prop>tu154/light/panel/ext-green</green-prop>
30     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
31     <factor>0.5</factor>
32   </emission>
33 </animation>
34
35 <!-- Internal instruments lighting -->
36 <animation>
37   <type>material</type>
38   <object-name>text</object-name>
39   <object-name>lat</object-name>
40   <object-name>handle_fi</object-name>
41   <object-name>otkaz_o_2</object-name>
42   <object-name>otkaz_k_2</object-name>
43   <emission>
44     <red-prop>tu154/light/instruments/int-red</red-prop>
45     <green-prop>tu154/light/instruments/int-green</green-prop>
46     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
47   </emission>
48 </animation>
49
50
51
52 <!--Failure lamps-->
53
54 <!--Have voltage?-->
55 <animation>
56   <type>material</type>
57   <object-name>otkaz_o_on</object-name>
58   <object-name>otkaz_k_on</object-name>
59   <emission>
60     <red>1.0</red>
61     <green>0.0</green>
62     <blue>0.0</blue>
63     <factor-prop>tu154/systems/electrical/buses/DC27-bus-L/volts</factor-prop>
64   </emission>
65 </animation>
66
67
68 <animation>
69   <type>select</type>
70   <object-name>otkaz_o_on</object-name>
71   <condition>
72     <not><property>instrumentation/heading-indicator[0]/serviceable</property></not>
73  </condition>
74 </animation>
75 <animation>
76   <type>select</type>
77   <object-name>otkaz_k_on</object-name>
78   <condition>
79     <not><property>instrumentation/heading-indicator[1]/serviceable</property></not>
80   </condition>
81 </animation>
82   
83 <animation>
84   <type>rotate</type>
85   <object-name>potr_handle</object-name>
86   <property>tu154/switches/pu-11-consumers</property>
87   <interpolation>
88     <entry><ind>        0.0</ind>       <dep>   -45.0</dep></entry>
89     <entry><ind>        1.0</ind>       <dep>   45.0</dep></entry>
90   </interpolation>
91   <center>
92     <x-m>-0.00274</x-m>
93     <y-m>0.0</y-m>
94     <z-m>-0.00725</z-m>
95   </center>
96   <axis>
97     <x>0.0</x>
98     <y>-1.0</y>
99     <z>0.0</z>
100   </axis>
101 </animation>
102
103 <animation>
104   <type>rotate</type>
105   <object-name>korr_handle</object-name>
106   <property>tu154/switches/pu-11-corr</property> 
107   <interpolation>
108     <entry><ind>        0.0</ind>       <dep>   -45.0</dep></entry>
109     <entry><ind>        1.0</ind>       <dep>   45.0</dep></entry>
110   </interpolation>
111   <center>
112     <x-m>-0.00271</x-m>
113     <y-m>0.0</y-m>
114     <z-m>-0.00721</z-m>
115   </center>
116   <axis>
117     <x>0.0</x>
118     <y>-1.0</y>
119     <z>0.0</z>
120   </axis>
121 </animation>
122
123 <animation>
124   <type>rotate</type>
125   <object-name>auto_handle</object-name>
126   <property>tu154/switches/pu-11-auto</property>
127   <interpolation>
128     <entry><ind>        0.0</ind>       <dep>   -45.0</dep></entry>
129     <entry><ind>        1.0</ind>       <dep>   45.0</dep></entry>
130   </interpolation>
131   <center>
132     <x-m>-0.00280</x-m>
133     <y-m>-0.05414</y-m>
134     <z-m>0.0</z-m>
135   </center>
136   <axis>
137     <x>0.0</x>
138     <y>0.0</y>
139     <z>-1.0</z>
140   </axis>
141 </animation>
142
143 <animation>
144   <type>rotate</type>
145   <object-name>gpk_handle</object-name>
146   <property>tu154/switches/pu-11-gpk</property>
147   <interpolation>
148     <entry><ind>        -1.0</ind>      <dep>   -45.0</dep></entry>
149     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
150     <entry><ind>        1.0</ind>       <dep>   45.0</dep></entry>
151   </interpolation>
152   <center>
153     <x-m>-0.0028</x-m>
154     <y-m>0.00255</y-m>
155     <z-m>0.0</z-m>
156   </center>
157   <axis>
158     <x>0.0</x>
159     <y>0.0</y>
160     <z>-1.0</z>
161   </axis>
162 </animation>
163
164 <animation>
165   <type>rotate</type>
166   <object-name>kurs_handle</object-name>
167   <property>tu154/switches/pu-11-kurs</property>
168   <interpolation>
169     <entry><ind>        -1.0</ind>      <dep>   -45.0</dep></entry>
170     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
171     <entry><ind>        1.0</ind>       <dep>   45.0</dep></entry>
172   </interpolation>
173   <center>
174     <x-m>-0.0028</x-m>
175     <y-m>0.00258</y-m>
176     <z-m>0.0</z-m>
177   </center>
178   <axis>
179     <x>0.0</x>
180     <y>0.0</y>
181     <z>-1.0</z>
182   </axis>
183 </animation>
184
185 <!--Latitude disc-->
186 <animation>
187   <type>rotate</type>
188   <object-name>lat</object-name>
189   <property>fdm/jsbsim/instrumentation/tks-lat-deg</property>
190   <interpolation>
191     <entry><ind>        90.0</ind>      <dep>   -131.0</dep></entry>
192     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
193     <entry><ind>        -90.0</ind>     <dep>   139.0</dep></entry>
194   </interpolation>
195   <axis>
196     <x>-1.0</x>
197     <y>0.0</y>
198     <z>0.0</z>
199   </axis>
200 </animation>
201 <!--Latitude handle-->
202 <animation>
203   <type>knob</type>
204   <object-name>handle_fi</object-name>
205   <property>fdm/jsbsim/instrumentation/pu11-latitude</property>
206   <factor>20.0</factor>
207   <visible>true</visible>
208   <action>
209     <binding>
210       <command>property-adjust</command>
211       <property>fdm/jsbsim/instrumentation/pu11-latitude</property>
212       <min>-90.0</min>
213       <max>90.0</max>
214       <wrap>false</wrap>
215     </binding>
216   </action>
217   <hovered>
218     <binding>
219       <command>set-tooltip</command>
220       <tooltip-id>pu-11-latitude</tooltip-id>
221       <label>Latitude: %+03d°</label>
222       <property>fdm/jsbsim/instrumentation/pu11-latitude</property>
223     </binding>
224   </hovered>
225   <center>
226     <x-m>0.0</x-m>
227     <y-m>0.05483</y-m>
228     <z-m>0.0303</z-m>
229   </center>
230   <axis>
231     <x>1.0</x>
232     <y>0.0</y>
233     <z>0.0</z>
234   </axis>
235 </animation>
236
237
238 <!--Button-->
239 <animation>
240   <type>translate</type>
241   <object-name>button</object-name>
242   <property>tu154/switches/pu-11-button</property>
243   <interpolation>
244     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
245     <entry><ind>        1.0</ind>       <dep>   0.003</dep></entry>
246   </interpolation>
247   <axis>
248     <x>-1.0</x>
249     <y>0.0</y>
250     <z>0.0</z>
251   </axis>
252 </animation>
253
254 <!--Hotspots-->
255
256 <animation>
257   <type>pick</type>
258   <object-name>potr_hotspot_1</object-name>
259   <visible>false</visible>
260   <action>
261     <button>0</button>
262     <repeatable>false</repeatable>
263     <binding>
264       <command>nasal</command>
265       <script>
266         interpolate("tu154/switches/pu-11-consumers", 1.0, 0.1 );
267       </script>
268     </binding>
269     <binding>
270       <command>property-assign</command>
271       <property>fdm/jsbsim/instrumentation/tks-consumers</property>
272       <value>0.0</value>
273     </binding>    
274   </action>
275 </animation>
276 <animation>
277   <type>pick</type>
278   <object-name>potr_hotspot_2</object-name>
279   <visible>false</visible>
280   <action>
281     <button>0</button>
282     <repeatable>false</repeatable>
283     <binding>
284       <command>nasal</command>
285       <script>
286         interpolate("tu154/switches/pu-11-consumers", 0.0, 0.1 );
287       </script>
288     </binding>
289     <binding>
290       <command>property-assign</command>
291       <property>fdm/jsbsim/instrumentation/tks-consumers</property>
292       <value>1.0</value>
293     </binding>    
294   </action>
295 </animation>
296 <animation>
297   <type>pick</type>
298   <object-name>korr_hotspot_1</object-name>
299   <visible>false</visible>
300   <action>
301     <button>0</button>
302     <repeatable>false</repeatable>
303     <binding>
304       <command>nasal</command>
305       <script>
306         interpolate("tu154/switches/pu-11-corr", 1.0, 0.1 );
307       </script>
308     </binding>
309   </action>
310 </animation>
311 <animation>
312   <type>pick</type>
313   <object-name>korr_hotspot_2</object-name>
314   <visible>false</visible>
315   <action>
316     <button>0</button>
317     <repeatable>false</repeatable>
318     <binding>
319       <command>nasal</command>
320       <script>
321         interpolate("tu154/switches/pu-11-corr", 0.0, 0.1 );
322       </script>
323     </binding>
324   </action>
325 </animation>
326 <animation>
327   <type>pick</type>
328   <object-name>auto_hotspot_1</object-name>
329   <visible>false</visible>
330   <action>
331     <button>0</button>
332     <repeatable>false</repeatable>
333     <binding>
334       <command>nasal</command>
335       <script>
336         interpolate("tu154/switches/pu-11-auto", 1.0, 0.1 );
337       </script>
338     </binding>
339     <binding>
340       <command>property-assign</command>
341       <property>fdm/jsbsim/instrumentation/tks-latitude-auto</property>
342       <value>1.0</value>
343     </binding>    
344   </action>
345 </animation>
346 <animation>
347   <type>pick</type>
348   <object-name>auto_hotspot_2</object-name>
349   <visible>false</visible>
350   <action>
351     <button>0</button>
352     <repeatable>false</repeatable>
353     <binding>
354       <command>nasal</command>
355       <script>
356         interpolate("tu154/switches/pu-11-auto", 0.0, 0.1 );
357       </script>
358     </binding>
359     <binding>
360       <command>property-assign</command>
361       <property>fdm/jsbsim/instrumentation/tks-latitude-auto</property>
362       <value>0.0</value>
363     </binding>    
364   </action>
365 </animation>
366 <animation>
367   <type>pick</type>
368   <object-name>gpk_hotspot_3</object-name>
369   <visible>false</visible>
370   <action>
371     <button>0</button>
372     <repeatable>false</repeatable>
373     <binding>
374       <command>nasal</command>
375       <script>
376         interpolate("tu154/switches/pu-11-gpk", -1.0, 0.1 );
377       </script>
378     </binding>
379   </action>
380 </animation>
381 <animation>
382   <type>pick</type>
383   <object-name>gpk_hotspot_2</object-name>
384   <visible>false</visible>
385   <action>
386     <button>0</button>
387     <repeatable>false</repeatable>
388     <binding>
389       <command>nasal</command>
390       <script>
391         interpolate("tu154/switches/pu-11-gpk", 0.0, 0.1 );
392       </script>
393     </binding>
394   </action>
395 </animation>
396 <animation>
397   <type>pick</type>
398   <object-name>gpk_hotspot_1</object-name>
399   <visible>false</visible>
400   <action>
401     <button>0</button>
402     <repeatable>false</repeatable>
403     <binding>
404       <command>nasal</command>
405       <script>
406         interpolate("tu154/switches/pu-11-gpk", 1.0, 0.1 );
407       </script>
408     </binding>
409   </action>
410 </animation>
411
412 <animation>
413   <type>pick</type>
414   <object-name>kur_hotspot_2</object-name>
415   <visible>false</visible>
416   <action>
417     <button>0</button>
418     <repeatable>true</repeatable>
419     <interval-sec>0.15</interval-sec>
420     <binding>
421       <command>nasal</command>
422       <script>
423         interpolate("tu154/switches/pu-11-kurs", -1.0, 0.1 );
424       </script>
425     </binding>
426     <binding>
427       <command>nasal</command>
428       <script>
429         instruments.tks_adj(1);
430       </script>
431     </binding>
432     <mod-up>
433       <binding>
434         <command>nasal</command>
435         <script>
436           interpolate("tu154/switches/pu-11-kurs", 0.0, 0.1 );
437         </script>
438       </binding>      
439     </mod-up>
440   </action>
441 </animation>
442 <animation>
443   <type>pick</type>
444   <object-name>kur_hotspot_1</object-name>
445   <visible>false</visible>
446   <action>
447     <button>0</button>
448     <repeatable>true</repeatable>
449     <interval-sec>0.15</interval-sec>
450     <binding>
451       <command>nasal</command>
452       <script>
453         interpolate("tu154/switches/pu-11-kurs", 1.0, 0.1 );
454       </script>
455     </binding>
456     <binding>
457       <command>nasal</command>
458       <script>
459         instruments.tks_adj(0);
460       </script>
461     </binding>
462     <mod-up>
463       <binding>
464         <command>nasal</command>
465         <script>
466           interpolate("tu154/switches/pu-11-kurs", 0.0, 0.1 );
467         </script>
468       </binding>      
469     </mod-up>
470   </action>
471 </animation>
472
473 <animation>
474   <type>pick</type>
475   <object-name>button</object-name>
476   <visible>true</visible>
477   <action>
478     <button>0</button>
479     <repeatable>true</repeatable>
480     <interval-sec>0.15</interval-sec>
481     <binding>
482       <command>nasal</command>
483       <script>
484         interpolate("tu154/switches/pu-11-button", 1.0, 0.1 );
485         instruments.tks_corr();
486       </script>
487     </binding>
488     <mod-up>
489       <binding>
490         <command>nasal</command>
491         <script>
492           interpolate("tu154/switches/pu-11-button", 0.0, 0.1 );
493           setprop("fdm/jsbsim/instrumentation/bgmk-corrector-1",0);
494           setprop("fdm/jsbsim/instrumentation/bgmk-corrector-2",0);
495         </script>
496       </binding>      
497     </mod-up>
498   </action>
499 </animation>
500
501 </PropertyList>