Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / rv-5m / rv-5m.xml
1 <?xml version="1.0"?>
2 <!--
3     #############################################################################
4     #    (C) 2007 by Yurik V. Nikiforoff                                        #
5     #           yurik@megasignal.com                                            #
6     #           Jul 2007                                                        #
7     #############################################################################         
8     -->
9
10 <!-- Radio altimeter
11 3D instrument for Tu-154 -->
12 <PropertyList>
13   <params>
14     <altitude>tu154/instrumentation/rv-5m[0]/altitude</altitude>
15     <blank>tu154/instrumentation/rv-5m[0]/blank</blank>
16     <warn>tu154/instrumentation/rv-5m[0]/warn</warn>
17     <dialed>tu154/instrumentation/rv-5m[0]/dialed</dialed>
18   </params>
19
20  <path>rv-5m.ac</path>
21 <!-- Internal instruments lighting -->
22 <animation>
23   <type>material</type>
24   <object-name>text</object-name>
25   <object-name>needle</object-name>
26   <object-name>index</object-name>
27   <object-name>flag</object-name>
28   <emission>
29     <red-prop>tu154/light/instruments/int-red</red-prop>
30     <green-prop>tu154/light/instruments/int-green</green-prop>
31     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
32   </emission>
33 </animation>
34
35 <!-- External instruments lighting -->
36 <animation>
37   <type>material</type>
38   <object-name>base</object-name>
39   <emission>
40     <red-prop>tu154/light/panel/ext-red</red-prop>
41     <green-prop>tu154/light/panel/ext-green</green-prop>
42     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
43   </emission>
44 </animation>
45
46
47 <!--Blank-->
48 <animation>
49   <type>select</type>
50   <object-name>flag</object-name>
51   <condition>
52     <property alias="../../../params/blank"/>
53   </condition>
54 </animation>
55
56 <!--Warning lamp-->
57 <animation>
58   <type>material</type>
59   <object-name>lamp</object-name>
60   <emission>
61     <red>1.0</red>
62     <green>1.0</green>
63     <blue>1.0</blue>
64     <factor-prop>tu154/systems/electrical/checking-lamps/lamps-power</factor-prop>
65   </emission>
66 </animation>
67
68 <animation>
69   <type>select</type>
70   <object-name>lamp</object-name>
71   <condition>
72     <or>
73       <property alias="../../../../params/warn"/>
74       <property>tu154/systems/electrical/checking-lamps/main-panel</property>
75     </or>
76   </condition>
77 </animation>
78
79
80 <!--Needles-->
81 <animation>
82     <type>rotate</type>
83     <object-name>needle</object-name>
84     <property alias="../../params/altitude"/>
85     <interpolation>
86       <entry><ind>      0.0</ind>       <dep>   0.0</dep></entry>
87       <entry><ind>      50.0</ind>      <dep>   75.0</dep></entry>
88       <entry><ind>      60.0</ind>      <dep>   91.5</dep></entry>
89       <entry><ind>      80.0</ind>      <dep>   123.0</dep></entry>
90       <entry><ind>      100.0</ind>     <dep>   155.0</dep></entry>
91       <entry><ind>      200.0</ind>     <dep>   179.0</dep></entry>
92       <entry><ind>      300.0</ind>     <dep>   203.0</dep></entry>
93       <entry><ind>      400.0</ind>     <dep>   226.0</dep></entry>
94       <entry><ind>      500.0</ind>     <dep>   251.0</dep></entry>
95       <entry><ind>      700.0</ind>     <dep>   300.0</dep></entry>
96       <entry><ind>      800.0</ind>     <dep>   325.0</dep></entry>
97     </interpolation>
98     <axis>
99       <x>-1.0</x>
100       <y>0.0</y>
101       <z>0.0</z>
102     </axis>
103 </animation>
104
105 <animation>
106   <type>rotate</type>
107   <object-name>index</object-name>
108   <property alias="../../params/dialed"/>
109   <interpolation>
110     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
111     <entry><ind>        50.0</ind>      <dep>   75.0</dep></entry>
112     <entry><ind>        60.0</ind>      <dep>   91.5</dep></entry>
113     <entry><ind>        80.0</ind>      <dep>   123.0</dep></entry>
114     <entry><ind>        100.0</ind>     <dep>   155.0</dep></entry>
115     <entry><ind>        200.0</ind>     <dep>   179.0</dep></entry>
116     <entry><ind>        300.0</ind>     <dep>   203.0</dep></entry>
117     <entry><ind>        400.0</ind>     <dep>   226.0</dep></entry>
118     <entry><ind>        500.0</ind>     <dep>   251.0</dep></entry>
119     <entry><ind>        700.0</ind>     <dep>   300.0</dep></entry>
120     <entry><ind>        800.0</ind>     <dep>   325.0</dep></entry>
121   </interpolation>
122   <axis>
123     <x>-1.0</x>
124     <y>0.0</y>
125     <z>0.0</z>
126   </axis>
127 </animation>
128
129 <!--Controls-->
130
131 <animation>
132   <type>knob</type>
133   <object-name>hs</object-name>
134   <visible>false</visible>
135   <action>
136     <binding>
137       <command>property-adjust</command>
138       <property alias="../../../../params/dialed"/>
139       <factor>5</factor>
140       <min>0</min>
141       <max>750</max>
142     </binding>
143   </action>
144 </animation>
145
146
147 </PropertyList>