Tupolev Tu-154B-2 by Yurik and his team.
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / iku-1 / iku-1-1.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 <!-- IKU-1 heading indicator
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>iku-1.ac</path>
14 <!-- Internal instruments lighting -->
15 <animation>
16   <type>material</type>
17   <object-name>text</object-name>
18   <object-name>compass</object-name>
19   <object-name>l_handle</object-name>
20   <object-name>r_handle</object-name>
21   <object-name>l_src</object-name>
22   <object-name>r_src</object-name>
23   <object-name>white_needle</object-name>
24   <object-name>yellow_needle</object-name>
25   <emission>
26     <red-prop>tu154/light/instruments/int-red</red-prop>
27     <green-prop>tu154/light/instruments/int-green</green-prop>
28     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
29   </emission>
30 </animation>
31
32 <!-- External instruments lighting -->
33 <animation>
34   <type>material</type>
35   <object-name>base</object-name>
36   <emission>
37     <red-prop>tu154/light/panel/ext-red</red-prop>
38     <green-prop>tu154/light/panel/ext-green</green-prop>
39     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
40   </emission>
41 </animation>
42
43 <!-- Compass -->
44 <animation>
45   <type>rotate</type>
46   <object-name>compass</object-name>
47   <property>fdm/jsbsim/instrumentation/bgmk-1</property>
48   <axis>
49     <x>1.0</x>
50     <y>0.0</y>
51     <z>0.0</z>
52   </axis>
53 </animation>
54
55
56 <!--Needles-->
57 <animation>
58     <type>rotate</type>
59     <object-name>white_needle</object-name>
60     <property>tu154/instrumentation/iku-1/indicated-heading-r</property>
61     <axis>
62       <x>-1.0</x>
63       <y>0.0</y>
64       <z>0.0</z>
65     </axis>
66 </animation>
67
68 <animation>
69   <type>rotate</type>
70   <object-name>yellow_needle</object-name>
71   <property>tu154/instrumentation/iku-1/indicated-heading-l</property>
72   <axis>
73     <x>-1.0</x>
74     <y>0.0</y>
75     <z>0.0</z>
76   </axis>
77 </animation>
78
79 <!--Handles-->
80
81
82 <animation>
83   <type>rotate</type>
84   <object-name>l_handle</object-name>
85   <property>tu154/instrumentation/iku-1/l-mode</property>
86   <interpolation>
87     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
88     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
89   </interpolation>
90   <center>
91     <x-m>0.0</x-m>
92     <y-m>-0.03140</y-m>
93     <z-m>-0.03425</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 <animation>
102   <type>rotate</type>
103   <object-name>r_handle</object-name>
104   <property>tu154/instrumentation/iku-1/r-mode</property>
105   <interpolation>
106     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
107     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
108   </interpolation>
109   <center>
110     <x-m>0.0</x-m>
111     <y-m>0.03062</y-m>
112     <z-m>-0.03425</z-m>
113   </center>
114   <axis>
115     <x>1.0</x>
116     <y>0.0</y>
117     <z>0.0</z>
118   </axis>
119 </animation>
120
121 <!--VOR/ADF indicators-->
122 <animation>
123   <type>rotate</type>
124   <object-name>l_src</object-name>
125   <property>tu154/instrumentation/iku-1/l-mode</property>
126   <interpolation>
127     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
128     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
129   </interpolation>
130   <center>
131     <x-m>0.00045</x-m>
132     <y-m>0.0</y-m>
133     <z-m>-0.04601</z-m>
134   </center>
135   <axis>
136     <x>0.0</x>
137     <y>-1.0</y>
138     <z>0.0</z>
139   </axis>
140 </animation>
141 <animation>
142   <type>rotate</type>
143   <object-name>r_src</object-name>
144   <property>tu154/instrumentation/iku-1/r-mode</property>
145   <interpolation>
146     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
147     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
148   </interpolation>
149   <center>
150     <x-m>0.00045</x-m>
151     <y-m>0.0</y-m>
152     <z-m>-0.04601</z-m>
153   </center>
154   <axis>
155     <x>0.0</x>
156     <y>-1.0</y>
157     <z>0.0</z>
158   </axis>
159 </animation>
160
161 <!--  *******************      Controls      *********************   -->
162 <!--Left handle-->
163 <animation>
164   <type>pick</type>
165   <object-name>l_handle</object-name>
166   <visible>true</visible>
167   <action>
168     <button>0</button>
169     <repeatable>false</repeatable>  
170     <binding>
171       <command>nasal</command>
172       <script>
173         if( getprop("tu154/instrumentation/iku-1/l-mode") == 0.0 )
174                 {interpolate("tu154/instrumentation/iku-1/l-mode", 1.0, 0.1 );}
175         else { interpolate("tu154/instrumentation/iku-1/l-mode", 0.0, 0.1 );}
176       </script>
177     </binding>
178   </action>
179 </animation>
180 <animation>
181   <type>pick</type>
182   <object-name>l_handle</object-name>
183   <visible>true</visible>
184   <action>
185     <button>3</button>
186     <repeatable>false</repeatable>  
187     <binding>
188       <command>nasal</command>
189       <script>interpolate("tu154/instrumentation/iku-1/l-mode", 1.0, 0.1 );</script>
190     </binding>
191     </action>
192 </animation>
193 <animation>
194   <type>pick</type>
195   <object-name>l_handle</object-name>
196   <visible>true</visible>
197   <action>
198     <button>4</button>
199     <repeatable>false</repeatable>  
200     <binding>
201       <command>nasal</command>
202       <script>interpolate("tu154/instrumentation/iku-1/l-mode", 0.0, 0.1 );</script>
203     </binding>
204   </action>
205 </animation>
206
207 <!--Right handle-->
208 <animation>
209   <type>pick</type>
210   <object-name>r_handle</object-name>
211   <visible>true</visible>
212   <action>
213     <button>0</button>
214     <repeatable>false</repeatable>  
215     <binding>
216       <command>nasal</command>
217       <script>
218         if( getprop("tu154/instrumentation/iku-1/r-mode") == 0.0 ){
219         interpolate("tu154/instrumentation/iku-1/r-mode", 1.0, 0.1 );}
220         else {interpolate("tu154/instrumentation/iku-1/r-mode", 0.0, 0.1 );}
221       </script>
222     </binding>
223   </action>
224 </animation>
225 <animation>
226   <type>pick</type>
227   <object-name>r_handle</object-name>
228   <visible>true</visible>
229   <action>
230     <button>3</button>
231     <repeatable>false</repeatable>  
232     <binding>
233       <command>nasal</command>
234       <script>interpolate("tu154/instrumentation/iku-1/r-mode", 1.0, 0.1 );</script>
235     </binding>
236   </action>
237 </animation>
238 <animation>
239   <type>pick</type>
240   <object-name>r_handle</object-name>
241   <visible>true</visible>
242   <action>
243     <button>4</button>
244     <repeatable>false</repeatable>  
245     <binding>
246       <command>nasal</command>
247       <script>interpolate("tu154/instrumentation/iku-1/r-mode", 0.0, 0.1 );</script>
248     </binding>
249   </action>
250 </animation>
251
252 </PropertyList>