Merge branch 'master' of gitorious.org:fg/fgdata
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / iku-1 / iku-1-cp.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-cp.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   <!--<property>fdm/jsbsim/instrumentation/tks-debug</property>-->
49   <axis>
50     <x>1.0</x>
51     <y>0.0</y>
52     <z>0.0</z>
53   </axis>
54 </animation>
55
56
57 <!--Needles-->
58 <animation>
59     <type>rotate</type>
60     <object-name>white_needle</object-name>
61     <property>tu154/instrumentation/iku-1/indicated-heading-r</property>
62     <axis>
63       <x>-1.0</x>
64       <y>0.0</y>
65       <z>0.0</z>
66     </axis>
67 </animation>
68
69 <animation>
70   <type>rotate</type>
71   <object-name>yellow_needle</object-name>
72   <property>tu154/instrumentation/iku-1/indicated-heading-l</property>
73   <axis>
74     <x>-1.0</x>
75     <y>0.0</y>
76     <z>0.0</z>
77   </axis>
78 </animation>
79
80 <!--Handles-->
81
82
83 <animation>
84   <type>rotate</type>
85   <object-name>l_handle</object-name>
86   <property>tu154/instrumentation/iku-1/l-mode</property>
87   <interpolation>
88     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
89     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
90   </interpolation>
91   <center>
92     <x-m>0.0</x-m>
93     <y-m>-0.03140</y-m>
94     <z-m>-0.03425</z-m>
95   </center>
96   <axis>
97     <x>1.0</x>
98     <y>0.0</y>
99     <z>0.0</z>
100   </axis>
101 </animation>
102 <animation>
103   <type>rotate</type>
104   <object-name>r_handle</object-name>
105   <property>tu154/instrumentation/iku-1/r-mode</property>
106   <interpolation>
107     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
108     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
109   </interpolation>
110   <center>
111     <x-m>0.0</x-m>
112     <y-m>0.03062</y-m>
113     <z-m>-0.03425</z-m>
114   </center>
115   <axis>
116     <x>1.0</x>
117     <y>0.0</y>
118     <z>0.0</z>
119   </axis>
120 </animation>
121
122 <!--VOR/ADF indicators-->
123 <animation>
124   <type>rotate</type>
125   <object-name>l_src</object-name>
126   <property>tu154/instrumentation/iku-1/l-mode</property>
127   <interpolation>
128     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
129     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
130   </interpolation>
131   <center>
132     <x-m>0.00045</x-m>
133     <y-m>0.0</y-m>
134     <z-m>-0.04601</z-m>
135   </center>
136   <axis>
137     <x>0.0</x>
138     <y>-1.0</y>
139     <z>0.0</z>
140   </axis>
141 </animation>
142 <animation>
143   <type>rotate</type>
144   <object-name>r_src</object-name>
145   <property>tu154/instrumentation/iku-1/r-mode</property>
146   <interpolation>
147     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
148     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
149   </interpolation>
150   <center>
151     <x-m>0.00045</x-m>
152     <y-m>0.0</y-m>
153     <z-m>-0.04601</z-m>
154   </center>
155   <axis>
156     <x>0.0</x>
157     <y>-1.0</y>
158     <z>0.0</z>
159   </axis>
160 </animation>
161
162 <!--  *******************      Controls      *********************   -->
163 <!--Left handle-->
164 <animation>
165   <type>pick</type>
166   <object-name>l_handle</object-name>
167   <visible>true</visible>
168   <action>
169     <button>0</button>
170     <repeatable>false</repeatable>  
171     <binding>
172       <command>nasal</command>
173       <script>
174         if( getprop("tu154/instrumentation/iku-1/l-mode") == 0.0 )
175                 {interpolate("tu154/instrumentation/iku-1/l-mode", 1.0, 0.1 );}
176         else { interpolate("tu154/instrumentation/iku-1/l-mode", 0.0, 0.1 );}
177       </script>
178     </binding>
179   </action>
180 </animation>
181 <animation>
182   <type>pick</type>
183   <object-name>l_handle</object-name>
184   <visible>true</visible>
185   <action>
186     <button>3</button>
187     <repeatable>false</repeatable>  
188     <binding>
189       <command>nasal</command>
190       <script>interpolate("tu154/instrumentation/iku-1/l-mode", 1.0, 0.1 );</script>
191     </binding>
192     </action>
193 </animation>
194 <animation>
195   <type>pick</type>
196   <object-name>l_handle</object-name>
197   <visible>true</visible>
198   <action>
199     <button>4</button>
200     <repeatable>false</repeatable>  
201     <binding>
202       <command>nasal</command>
203       <script>interpolate("tu154/instrumentation/iku-1/l-mode", 0.0, 0.1 );</script>
204     </binding>
205   </action>
206 </animation>
207
208 <!--Right handle-->
209 <animation>
210   <type>pick</type>
211   <object-name>r_handle</object-name>
212   <visible>true</visible>
213   <action>
214     <button>0</button>
215     <repeatable>false</repeatable>  
216     <binding>
217       <command>nasal</command>
218       <script>
219         if( getprop("tu154/instrumentation/iku-1/r-mode") == 0.0 ){
220         interpolate("tu154/instrumentation/iku-1/r-mode", 1.0, 0.1 );}
221         else {interpolate("tu154/instrumentation/iku-1/r-mode", 0.0, 0.1 );}
222       </script>
223     </binding>
224   </action>
225 </animation>
226 <animation>
227   <type>pick</type>
228   <object-name>r_handle</object-name>
229   <visible>true</visible>
230   <action>
231     <button>3</button>
232     <repeatable>false</repeatable>  
233     <binding>
234       <command>nasal</command>
235       <script>interpolate("tu154/instrumentation/iku-1/r-mode", 1.0, 0.1 );</script>
236     </binding>
237   </action>
238 </animation>
239 <animation>
240   <type>pick</type>
241   <object-name>r_handle</object-name>
242   <visible>true</visible>
243   <action>
244     <button>4</button>
245     <repeatable>false</repeatable>  
246     <binding>
247       <command>nasal</command>
248       <script>interpolate("tu154/instrumentation/iku-1/r-mode", 0.0, 0.1 );</script>
249     </binding>
250   </action>
251 </animation>
252
253 </PropertyList>