Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / dme / dme.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 <!-- DME radio control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13   <params>
14     <freq>instrumentation/dme[0]/frequencies/selected-mhz</freq>
15     <power>tu154/switches/dme-1-power</power>
16     <reserve>tu154/switches/dme-1-reserve</reserve>
17   </params>
18
19  <path>dme.ac</path>
20
21  <effect>
22     <inherits-from>Effects/model-transparent</inherits-from>
23     <object-name>base</object-name>
24  </effect>
25
26 <animation>
27   <type>material</type>
28   <object-name>base</object-name>
29   <emission>
30     <red-prop>tu154/light/panel/ext-red</red-prop>
31     <green-prop>tu154/light/panel/ext-green</green-prop>
32     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
33   </emission>
34 </animation>
35
36 <animation>
37   <type>material</type>
38   <object-name>digits</object-name>
39   <emission>
40     <red-prop>tu154/light/instruments/int-red</red-prop>
41     <green-prop>tu154/light/instruments/int-green</green-prop>
42     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
43   </emission>
44 </animation>
45
46 <animation>
47   <type>rotate</type>
48   <object-name>dig_f_hi</object-name>
49   <expression>
50     <table>
51       <difference>
52         <property alias="../../../../../params/freq"/>
53         <mod>
54           <property alias="../../../../../../params/freq"/>
55           <value>1</value>
56         </mod>
57       </difference>
58       <entry><ind>      108</ind>       <dep>   0</dep></entry>
59       <entry><ind>      118</ind>       <dep>   360</dep></entry>
60     </table>
61   </expression>
62   <center>
63     <x-m>-0.01754</x-m>
64     <y-m>0.0</y-m>
65     <z-m>0.00904</z-m>
66   </center>
67   <axis>
68     <x>0.0</x>
69     <y>-1.0</y>
70     <z>0.0</z>
71   </axis>
72 </animation>
73 <animation>
74   <type>rotate</type>
75   <object-name>dig_f_low</object-name>
76   <property alias="../../params/freq"/>
77   <factor>360</factor>
78   <center>
79     <x-m>-0.03178</x-m>
80     <y-m>0.0</y-m>
81     <z-m>0.00616</z-m>
82   </center>
83   <axis>
84     <x>0.0</x>
85     <y>-1.0</y>
86     <z>0.0</z>
87   </axis>
88 </animation>
89
90 <!--Frequency-->
91 <animation>
92   <type>knob</type>
93   <object-name>c1</object-name>
94   <visible>true</visible>
95   <action>
96     <binding>
97       <command>property-adjust</command>
98       <property alias="../../../../params/freq"/>
99       <mask>integer</mask>
100       <min>108</min>
101       <max>118</max>
102       <wrap>true</wrap>
103     </binding>
104   </action>
105 </animation>
106 <animation>
107   <type>knob</type>
108   <object-name>c2</object-name>
109   <visible>true</visible>
110   <action>
111     <binding>
112       <command>property-adjust</command>
113       <property alias="../../../../params/freq"/>
114       <mask>decimal</mask>
115       <factor>0.05</factor>
116       <min>0</min>
117       <max>1</max>
118       <wrap>true</wrap>
119     </binding>
120   </action>
121 </animation>
122
123 <!--Power-->
124 <animation>
125   <type>rotate</type>
126   <object-name>power</object-name>
127   <property alias="../../params/power"/>
128   <interpolation>
129     <entry><ind>        0.0</ind>       <dep>   45.0</dep></entry>
130     <entry><ind>        1.0</ind>       <dep>   -45.0</dep></entry>
131   </interpolation>
132   <center>
133     <x-m>0.0023</x-m>
134     <y-m>0</y-m>
135     <z-m>0.00868</z-m>
136   </center>
137   <axis>
138     <x>0</x>
139     <y>1</y>
140     <z>0</z>
141   </axis>
142 </animation>
143 <animation>
144   <type>pick</type>
145   <object-name>hs_1</object-name>
146   <visible>false</visible>
147   <action>
148     <button>0</button>
149     <repeatable>false</repeatable>
150     <binding>
151       <command>property-interpolate</command>
152       <property alias="../../../../params/power"/>
153       <value type="double">1</value>
154       <time>0.1</time>
155     </binding>
156   </action>
157 </animation>
158 <animation>
159   <type>pick</type>
160   <object-name>hs_2</object-name>
161   <visible>false</visible>
162   <action>
163     <button>0</button>
164     <repeatable>false</repeatable>
165     <binding>
166       <command>property-interpolate</command>
167       <property alias="../../../../params/power"/>
168       <value type="double">0</value>
169       <time>0.1</time>
170     </binding>
171   </action>
172 </animation>
173
174 <!--Reserve-->
175 <animation>
176   <type>rotate</type>
177   <object-name>reserve</object-name>
178   <property alias="../../params/reserve"/>
179   <interpolation>
180     <entry><ind>        0.0</ind>       <dep>   45.0</dep></entry>
181     <entry><ind>        1.0</ind>       <dep>   -45.0</dep></entry>
182   </interpolation>
183   <center>
184     <x-m>0.0023</x-m>
185     <y-m>0</y-m>
186     <z-m>0.00868</z-m>
187   </center>
188   <axis>
189     <x>0</x>
190     <y>-1</y>
191     <z>0</z>
192   </axis>
193 </animation>
194 <animation>
195   <type>pick</type>
196   <object-name>hs_3</object-name>
197   <visible>false</visible>
198   <action>
199     <button>0</button>
200     <repeatable>false</repeatable>
201     <binding>
202       <command>property-interpolate</command>
203       <property alias="../../../../params/reserve"/>
204       <value type="double">0</value>
205       <time>0.1</time>
206     </binding>
207   </action>
208 </animation>
209 <animation>
210   <type>pick</type>
211   <object-name>hs_4</object-name>
212   <visible>false</visible>
213   <action>
214     <button>0</button>
215     <repeatable>false</repeatable>
216     <binding>
217       <command>property-interpolate</command>
218       <property alias="../../../../params/reserve"/>
219       <value type="double">1</value>
220       <time>0.1</time>
221     </binding>
222   </action>
223 </animation>
224
225
226 </PropertyList>