Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / uvid-15 / uvid-15-ft.xml
1 <?xml version="1.0"?>
2 <!--
3     #############################################################################
4     #    (C) 2007 by Yurik V. Nikiforoff                                        #
5     #           yurik@megasignal.com                                            #
6     #############################################################################         
7 -->
8
9 <!-- Altimeter UVID-15 feet
10 3D instrument for Tu-154 -->
11 <PropertyList>
12  <path>uvid-15f.ac</path>
13
14  <animation>
15   <type>material</type>
16   <object-name>base</object-name>
17   <object-name>dig_a_dec</object-name>
18   <object-name>dig_a_hund</object-name>
19   <object-name>dig_a_ths</object-name>
20   <object-name>dig_a_decths</object-name>
21   <object-name>dig_p_ones</object-name>
22   <object-name>dig_p_dec</object-name>
23   <object-name>dig_p_hund</object-name>
24   <object-name>dig_p_ths</object-name>
25   <object-name>needle</object-name>
26   <emission>
27     <red-prop>tu154/light/instruments/int-red</red-prop>
28     <green-prop>tu154/light/instruments/int-green</green-prop>
29     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
30   </emission>
31 </animation>
32
33 <!--Warning lamp-->
34 <animation>
35   <type>material</type>
36   <object-name>lamp</object-name>
37   <emission>
38     <red>1.0</red>
39     <green>1.0</green>
40     <blue>1.0</blue>
41     <factor-prop>tu154/systems/electrical/checking-lamps/lamps-power</factor-prop>
42   </emission>
43 </animation>
44
45 <animation>
46   <type>select</type>
47   <object-name>lamp</object-name>
48   <condition>
49     <or>
50       <and>
51        <less-than>
52         <property>instrumentation/altimeter[1]/indicated-altitude-ft</property>
53         <value>0.0</value>
54        </less-than>
55        <property>tu154/instrumentation/altimeter[1]/powered</property>
56       </and>
57       <property>tu154/systems/electrical/checking-lamps/main-panel</property>
58     </or>
59   </condition>
60 </animation>
61
62   
63 <!--Needles-->
64 <animation>
65     <type>rotate</type>
66     <object-name>needle</object-name>
67     <property>instrumentation/altimeter[1]/indicated-altitude-ft</property>
68     <factor>0.36</factor>
69     <condition>
70         <property>tu154/instrumentation/altimeter[1]/powered</property>
71     </condition>
72     <axis>
73       <x>-1.0</x>
74       <y>0.0</y>
75       <z>0.0</z>
76     </axis>
77 </animation>
78
79 <!--Altitude digits-->
80 <animation>
81   <type>rotate</type>
82   <object-name>dig_a_dec</object-name>
83   <condition>
84     <property>tu154/instrumentation/altimeter[1]/powered</property>
85   </condition>
86   <property>instrumentation/altimeter[1]/indicated-altitude-ft</property>
87   <factor>3.6</factor>
88   <center>
89     <x-m>-0.01985</x-m>
90     <y-m>0</y-m>
91     <z-m>0.00511</z-m>
92   </center>
93   <axis>
94     <x>0.0</x>
95     <y>-1.0</y>
96     <z>0.0</z>
97   </axis>
98 </animation>
99 <animation>
100   <type>rotate</type>
101   <object-name>dig_a_hund</object-name>
102   <condition>
103     <property>tu154/instrumentation/altimeter[1]/powered</property>
104   </condition>
105   <expression>
106     <table>
107       <mod>
108         <property>instrumentation/altimeter[1]/indicated-altitude-ft</property>
109         <value>1000</value>
110       </mod>
111       <entry><ind>        0</ind>       <dep>   0</dep></entry>
112       <entry><ind>       90</ind>       <dep>   0</dep></entry>
113       <entry><ind>      100</ind>       <dep>   36</dep></entry>
114       <entry><ind>      190</ind>       <dep>   36</dep></entry>
115       <entry><ind>      200</ind>       <dep>   72</dep></entry>
116       <entry><ind>      290</ind>       <dep>   72</dep></entry>
117       <entry><ind>      300</ind>       <dep>   108</dep></entry>
118       <entry><ind>      390</ind>       <dep>   108</dep></entry>
119       <entry><ind>      400</ind>       <dep>   144</dep></entry>
120       <entry><ind>      490</ind>       <dep>   144</dep></entry>
121       <entry><ind>      500</ind>       <dep>   180</dep></entry>
122       <entry><ind>      590</ind>       <dep>   180</dep></entry>
123       <entry><ind>      600</ind>       <dep>   216</dep></entry>
124       <entry><ind>      690</ind>       <dep>   216</dep></entry>
125       <entry><ind>      700</ind>       <dep>   252</dep></entry>
126       <entry><ind>      790</ind>       <dep>   252</dep></entry>
127       <entry><ind>      800</ind>       <dep>   288</dep></entry>
128       <entry><ind>      890</ind>       <dep>   288</dep></entry>
129       <entry><ind>      900</ind>       <dep>   324</dep></entry>
130       <entry><ind>      990</ind>       <dep>   324</dep></entry>
131       <entry><ind>      999</ind>       <dep>   359.9</dep></entry>
132     </table>
133   </expression>
134   <center>
135     <x-m>-0.01985</x-m>
136     <y-m>0</y-m>
137     <z-m>0.00511</z-m>
138   </center>
139   <axis>
140     <x>0.0</x>
141     <y>-1.0</y>
142     <z>0.0</z>
143   </axis>
144 </animation>
145
146 <animation>
147   <type>rotate</type>
148   <object-name>dig_a_ths</object-name>
149   <condition>
150     <property>tu154/instrumentation/altimeter[1]/powered</property>
151   </condition>
152   <expression>
153     <table>
154       <mod>
155         <property>instrumentation/altimeter[1]/indicated-altitude-ft</property>
156         <value>10000</value>
157       </mod>
158       <entry><ind>         0</ind>      <dep>   0</dep></entry>
159       <entry><ind>       990</ind>      <dep>   0</dep></entry>
160       <entry><ind>      1000</ind>      <dep>   36</dep></entry>
161       <entry><ind>      1990</ind>      <dep>   36</dep></entry>
162       <entry><ind>      2000</ind>      <dep>   72</dep></entry>
163       <entry><ind>      2990</ind>      <dep>   72</dep></entry>
164       <entry><ind>      3000</ind>      <dep>   108</dep></entry>
165       <entry><ind>      3990</ind>      <dep>   108</dep></entry>
166       <entry><ind>      4000</ind>      <dep>   144</dep></entry>
167       <entry><ind>      4990</ind>      <dep>   144</dep></entry>
168       <entry><ind>      5000</ind>      <dep>   180</dep></entry>
169       <entry><ind>      5990</ind>      <dep>   180</dep></entry>
170       <entry><ind>      6000</ind>      <dep>   216</dep></entry>
171       <entry><ind>      6990</ind>      <dep>   216</dep></entry>
172       <entry><ind>      7000</ind>      <dep>   252</dep></entry>
173       <entry><ind>      7990</ind>      <dep>   252</dep></entry>
174       <entry><ind>      8000</ind>      <dep>   288</dep></entry>
175       <entry><ind>      8990</ind>      <dep>   288</dep></entry>
176       <entry><ind>      9000</ind>      <dep>   324</dep></entry>
177       <entry><ind>      9990</ind>      <dep>   324</dep></entry>
178       <entry><ind>      9999</ind>      <dep>   359.9</dep></entry>
179     </table>
180   </expression>
181   <center>
182     <x-m>-0.01985</x-m>
183     <y-m>0</y-m>
184     <z-m>0.00511</z-m>
185   </center>
186   <axis>
187     <x>0.0</x>
188     <y>-1.0</y>
189     <z>0.0</z>
190   </axis>
191 </animation>
192
193 <animation>
194   <type>rotate</type>
195   <object-name>dig_a_decths</object-name>
196   <condition>
197     <property>tu154/instrumentation/altimeter[1]/powered</property>
198   </condition>
199   <expression>
200     <table>
201       <mod>
202         <property>instrumentation/altimeter[1]/indicated-altitude-ft</property>
203         <value>100000</value>
204       </mod>
205       <entry><ind>          0</ind>     <dep>   0</dep></entry>
206       <entry><ind>       9990</ind>     <dep>   0</dep></entry>
207       <entry><ind>      10000</ind>     <dep>   36</dep></entry>
208       <entry><ind>      19990</ind>     <dep>   36</dep></entry>
209       <entry><ind>      20000</ind>     <dep>   72</dep></entry>
210       <entry><ind>      29990</ind>     <dep>   72</dep></entry>
211       <entry><ind>      30000</ind>     <dep>   108</dep></entry>
212       <entry><ind>      39990</ind>     <dep>   108</dep></entry>
213       <entry><ind>      40000</ind>     <dep>   144</dep></entry>
214       <entry><ind>      49990</ind>     <dep>   144</dep></entry>
215       <entry><ind>      50000</ind>     <dep>   180</dep></entry>
216       <entry><ind>      59990</ind>     <dep>   180</dep></entry>
217       <entry><ind>      60000</ind>     <dep>   216</dep></entry>
218       <entry><ind>      69990</ind>     <dep>   216</dep></entry>
219       <entry><ind>      70000</ind>     <dep>   252</dep></entry>
220       <entry><ind>      79990</ind>     <dep>   252</dep></entry>
221       <entry><ind>      80000</ind>     <dep>   288</dep></entry>
222       <entry><ind>      89990</ind>     <dep>   288</dep></entry>
223       <entry><ind>      90000</ind>     <dep>   324</dep></entry>
224       <entry><ind>      99990</ind>     <dep>   324</dep></entry>
225       <entry><ind>      99999</ind>     <dep>   359.9</dep></entry>
226     </table>
227   </expression>
228   <center>
229     <x-m>-0.01985</x-m>
230     <y-m>0</y-m>
231     <z-m>0.00511</z-m>
232   </center>
233   <axis>
234     <x>0.0</x>
235     <y>-1.0</y>
236     <z>0.0</z>
237   </axis>
238 </animation>
239
240
241 <!--Pressure digits-->
242 <animation>
243   <type>rotate</type>
244   <object-name>dig_p_ones</object-name>
245   <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
246   <factor>36.0</factor>
247   <center>
248     <x-m>-0.01257</x-m>
249     <y-m>0.0</y-m>
250     <z-m>-0.02389</z-m>
251   </center>
252   <axis>
253     <x>0.0</x>
254     <y>-1.0</y>
255     <z>0.0</z>
256   </axis>
257 </animation>
258
259 <animation>
260   <type>rotate</type>
261   <object-name>dig_p_dec</object-name>
262   <expression>
263     <product>
264       <difference>
265         <mod>
266           <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
267           <value>100</value>
268         </mod>
269         <mod>
270           <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
271           <value>10</value>
272         </mod>
273       </difference>
274       <value>3.6</value>
275     </product>
276   </expression>
277   <center>
278     <x-m>-0.01257</x-m>
279     <y-m>0.0</y-m>
280     <z-m>-0.02389</z-m>
281   </center>
282   <axis>
283     <x>0.0</x>
284     <y>-1.0</y>
285     <z>0.0</z>
286   </axis>
287 </animation>
288
289 <animation>
290   <type>rotate</type>
291   <object-name>dig_p_hund</object-name>
292   <expression>
293     <product>
294       <difference>
295         <mod>
296           <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
297           <value>1000</value>
298         </mod>
299         <mod>
300           <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
301           <value>100</value>
302         </mod>
303       </difference>
304       <value>0.36</value>
305     </product>
306   </expression>
307   <center>
308     <x-m>-0.01257</x-m>
309     <y-m>0.0</y-m>
310     <z-m>-0.02389</z-m>
311   </center>
312   <axis>
313     <x>0.0</x>
314     <y>-1.0</y>
315     <z>0.0</z>
316   </axis>
317 </animation>
318
319 <animation>
320   <type>rotate</type>
321   <object-name>dig_p_ths</object-name>
322   <expression>
323     <product>
324       <difference>
325         <mod>
326           <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
327           <value>10000</value>
328         </mod>
329         <mod>
330           <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
331           <value>1000</value>
332         </mod>
333       </difference>
334       <value>0.036</value>
335     </product>
336   </expression>
337   <center>
338     <x-m>-0.01257</x-m>
339     <y-m>0.0</y-m>
340     <z-m>-0.02389</z-m>
341   </center>
342   <axis>
343     <x>0.0</x>
344     <y>-1.0</y>
345     <z>0.0</z>
346   </axis>
347 </animation>
348
349 <!--Controls-->
350
351 <animation>
352   <type>knob</type>
353   <object-name>hs</object-name>
354   <visible>false</visible>
355   <action>
356     <binding>
357       <command>property-adjust</command>
358       <property>tu154/instrumentation/altimeter[1]/inhgX100</property>
359       <min>0</min>
360       <max>3365</max>
361     </binding>
362   </action>
363 </animation>
364
365
366 </PropertyList>