Merge branch 'master' of gitorious.org:fg/fgdata
[fg:toms-fgdata.git] / Aircraft / tu154b / Model / vc.xml
1 <?xml version="1.0"?>
2 <!--
3 ############################################################################
4 #    Copyright                                                             #
5 #    (C) 2007-2009, 2013 by Yurik V. Nikiforoff - port for FGFS,  FDM,     #
6 #       instruments, animations, systems and over.                         #
7 #       yurik.nsk@gmail.com                                                #
8 #       This file under GPL license.                                       #
9 ############################################################################              
10
11
12
13   Cabin animations
14 -->
15 <PropertyList>
16  <path>interior.ac</path>
17 <!-- Transparent Surfaces for Rembrandt rendering -->
18  <effect>
19     <inherits-from>Effects/model-transparent</inherits-from>
20     <object-name>MESH199</object-name>
21  </effect>
22
23 <!-- Uncomment it if you want remove cabin glass -->
24 <!--
25 <animation>
26         <type>select</type>
27         <object-name>MESH199</object-name>
28         <condition>
29         <not>   <property>/sim/rendering/rembrandt/enabled</property>   </not>
30         </condition>
31 </animation>
32 -->
33 <!--Group all in VC-->
34 <animation>
35   <type>none</type>
36   <name>virtualcockpit</name>
37     <object-name>us</object-name>
38     <object-name>ias</object-name>
39     <object-name>var-30</object-name>
40     <object-name>var-75</object-name>
41     <object-name>uvid-15m</object-name>
42     <object-name>uvid-15f</object-name>
43     <object-name>pkp-capt</object-name>
44     <object-name>pnp-capt</object-name>
45     <object-name>achs-2</object-name>
46     <object-name>rv-5m</object-name>
47     <object-name>uap-12</object-name>
48     <object-name>iku-1</object-name>
49     <object-name>um-1</object-name>
50     <object-name>tnv-15</object-name>
51     <object-name>idr-1</object-name>
52     <object-name>uvo</object-name>
53     <object-name>agr</object-name>
54     <object-name>hs-1</object-name>
55     <object-name>hs-2</object-name>
56     <object-name>hs-3</object-name>
57     <object-name>hs_brk</object-name>
58     <object-name>check_lamps_1</object-name>
59     <object-name>switch_1</object-name>
60     <object-name>l-1</object-name>
61     <object-name>l-2</object-name>
62     <object-name>l-3</object-name>
63     <object-name>l-4</object-name>
64     <object-name>left-indic-1</object-name>
65     <object-name>left-indic-2</object-name>
66     <object-name>left-indic-3</object-name>
67     <object-name>left-indic-4</object-name>
68     <object-name>pkp-cp</object-name>
69     <object-name>pnp-cp</object-name>
70     <object-name>var-30-cp</object-name>
71     <object-name>uvid-15m-cp</object-name>
72     <object-name>iku-1-cp</object-name>
73     <object-name>rv-5m-cp</object-name>
74     <object-name>uvo-cp</object-name>
75     <object-name>ias-cp</object-name>
76     <object-name>us-cp</object-name>
77     <object-name>um-cp</object-name>
78     <object-name>idr-1-cp</object-name>
79     <object-name>utd4-3t-cp</object-name>
80     <object-name>check_lamps_2</object-name>
81     <object-name>copilot-indic-1</object-name>
82     <object-name>copilot-indic-2</object-name>
83     <object-name>copilot-indic-3</object-name>
84     <object-name>copilot-indic-4</object-name>
85     <object-name>sw-2</object-name>
86     <object-name>ip-33</object-name>
87     <object-name>ip-32m</object-name>
88     <object-name>in-3</object-name>
89     <object-name>ushdb</object-name>
90     <object-name>ush</object-name>
91     <object-name>usvp</object-name>
92     <object-name>ppda</object-name>
93     <object-name>eup</object-name>
94     <object-name>ite_1</object-name>
95     <object-name>ite_2</object-name>
96     <object-name>ite_3</object-name>
97     <object-name>central-indic-1</object-name>
98     <object-name>central-indic-2</object-name>
99     <object-name>central-indic-3</object-name>
100     <object-name>central-indic-4</object-name>
101     <object-name>central-indic-5</object-name>
102     <object-name>central-indic-6</object-name>
103     <object-name>sw-3</object-name>
104     <object-name>pu-11</object-name>
105     <object-name>ark-15-1</object-name>
106     <object-name>ark-15-2</object-name>
107     <object-name>kurs-mp-1</object-name>
108     <object-name>kurs-mp-2</object-name>
109     <object-name>comm-1</object-name>
110     <object-name>comm-2</object-name>
111     <object-name>skawk</object-name>
112     <object-name>rsbn</object-name>
113     <object-name>ushdb-selector</object-name>
114     <object-name>sw-41</object-name>
115     <object-name>sw-42</object-name>
116     <object-name>sw-43</object-name>
117     <object-name>sw-44</object-name>
118     <object-name>sw-45</object-name>
119     <object-name>sw-46</object-name>
120     <object-name>sw-47</object-name>
121     <object-name>sw-48</object-name>
122     <object-name>sw-49</object-name>
123     <object-name>sw-50</object-name>
124     <object-name>sw-51</object-name>
125     <object-name>sw-52</object-name>
126     <object-name>sw-53</object-name>
127     <object-name>sw-54</object-name>
128     <object-name>sw-55</object-name>
129     <object-name>sw-56</object-name>
130     <object-name>sw-57</object-name>
131     <object-name>sw-58</object-name>
132     <object-name>sw-59</object-name>
133     <object-name>sw-60</object-name>
134     <object-name>sw-61</object-name>
135     <object-name>sw-62</object-name>
136     <object-name>sw-63</object-name>
137     <object-name>sw-64</object-name>
138     <object-name>sw-65</object-name>
139     <object-name>sw-66</object-name>
140     <object-name>sw-67</object-name>
141     <object-name>sw-68</object-name>
142     <object-name>sw-69</object-name>
143     <object-name>sw-70</object-name>
144     <object-name>sw-71</object-name>
145     <object-name>sw-72</object-name>
146     <object-name>sw-73</object-name>
147     <object-name>sw-74</object-name>
148     <object-name>sw-75</object-name>
149     <object-name>sw-76</object-name>
150     <object-name>sw-77</object-name>
151     <object-name>sw-78</object-name>
152     <object-name>sw-79</object-name>
153     <object-name>sw-80</object-name>
154     <object-name>sw-81</object-name>
155     <object-name>sw-82</object-name>
156     <object-name>sw-83</object-name>
157     <object-name>sw-84</object-name>
158     <object-name>sw-85</object-name>
159     <object-name>stab-manu</object-name>
160     <object-name>pu-46+pn-5</object-name>
161     <object-name>pn-6</object-name>
162     <object-name>v-51</object-name>
163     <object-name>v-140</object-name>
164     <object-name>v-52-1</object-name>
165     <object-name>v-52-2</object-name>
166     <object-name>b-8m</object-name>
167     <object-name>bano</object-name>
168     <object-name>busters</object-name>
169     <object-name>v-57</object-name>
170     <object-name>ip21_1</object-name>
171     <object-name>ip21_2</object-name>
172     <object-name>ip21_3</object-name>
173     <object-name>ite-2t_1</object-name>
174     <object-name>ite-2t_2</object-name>
175     <object-name>ite-2t_3</object-name>
176     <object-name>ut-7a_1</object-name>
177     <object-name>ut-7a_2</object-name>
178     <object-name>ut-7a_3</object-name>
179     <object-name>uiz-3_1</object-name>
180     <object-name>uiz-3_2</object-name>
181     <object-name>uiz-3_3</object-name>
182     <object-name>umrt1-21_1</object-name>
183     <object-name>umrt1-21_2</object-name>
184     <object-name>umrt1-21_3</object-name>
185     <object-name>us3t-5t</object-name>
186     <object-name>utd4-3t</object-name>
187     <object-name>uto2-5t</object-name>
188     <object-name>utd4-2t</object-name>
189     <object-name>utd4-1t</object-name>
190     <object-name>hydro-40</object-name>
191     <object-name>hydro-28</object-name>
192     <object-name>hs-1-fe</object-name>
193     <object-name>hs-2-fe</object-name>
194     <object-name>hs-3-fe</object-name>
195     <object-name>hs-brk-fe</object-name>
196     <object-name>ias-fe</object-name>
197     <object-name>uvo-fe</object-name>
198     <object-name>var-30-fe-1</object-name>
199     <object-name>var-30-fe-2</object-name>
200     <object-name>v-27</object-name>
201     <object-name>a-27-1</object-name>
202     <object-name>a-27-2</object-name>
203     <object-name>a-27-3</object-name>
204     <object-name>hz-200</object-name>
205     <object-name>v-200</object-name>
206     <object-name>a-200</object-name>
207     <object-name>achs-2-fe</object-name>
208     <object-name>tnv-15-fe</object-name>
209     <object-name>ite-apu</object-name>
210     <object-name>fe-indic-1</object-name>
211     <object-name>engine-indic-1</object-name>
212     <object-name>engine-indic-2</object-name>
213     <object-name>engine-indic-3</object-name>
214     <object-name>l-5</object-name>
215     <object-name>l-6</object-name>
216     <object-name>l-7</object-name>
217     <object-name>l-8</object-name>
218     <object-name>l-9</object-name>
219     <object-name>l-10</object-name>
220     <object-name>l-11</object-name>
221     <object-name>l-12</object-name>
222     <object-name>l-13</object-name>
223     <object-name>l-14</object-name>
224     <object-name>l-15</object-name>
225     <object-name>l-16</object-name>
226     <object-name>l-17</object-name>
227     <object-name>l-18</object-name>
228     <object-name>l-19</object-name>
229     <object-name>l-20</object-name>
230     <object-name>l-21</object-name>
231     <object-name>l-22</object-name>
232     <object-name>l-23</object-name>
233     <object-name>l-24</object-name>
234     <object-name>l-25</object-name>
235     <object-name>l-26</object-name>
236     <object-name>l-27</object-name>
237     <object-name>l-28</object-name>
238     <object-name>l-29</object-name>
239     <object-name>l-30</object-name>
240     <object-name>l-31</object-name>
241     <object-name>l-32</object-name>
242     <object-name>l-33</object-name>
243     <object-name>l-34</object-name>
244     <object-name>l-35</object-name>
245     <object-name>l-36</object-name>
246     <object-name>l-37</object-name>
247     <object-name>l-38</object-name>
248     <object-name>l-39</object-name>
249     <object-name>l-40</object-name>
250     <object-name>l-41</object-name>
251     <object-name>l-42</object-name>
252     <object-name>l-43</object-name>
253     <object-name>l-44</object-name>
254     <object-name>l-45</object-name>
255     <object-name>l-46</object-name>
256     <object-name>l-47</object-name>
257     <object-name>l-48</object-name>
258 <!--    <object-name>l-49</object-name>
259     <object-name>l-50</object-name>
260     <object-name>l-51</object-name>-->
261     <object-name>h-1</object-name>
262     <object-name>h-2</object-name>
263     <object-name>h-3</object-name>
264     <object-name>h-4</object-name>
265     <object-name>h-5</object-name>
266     <object-name>sw-4</object-name>
267     <object-name>sw-5</object-name>
268     <object-name>sw-6</object-name>
269     <object-name>sw-7</object-name>
270     <object-name>sw-8</object-name>
271     <object-name>sw-9</object-name>
272     <object-name>sw-10</object-name>
273     <object-name>sw-11</object-name>
274     <object-name>sw-12</object-name>
275     <object-name>sw-13</object-name>
276     <object-name>sw-14</object-name>
277     <object-name>sw-15</object-name>
278     <object-name>sw-16</object-name>
279     <object-name>sw-17</object-name>
280     <object-name>sw-18</object-name>
281     <object-name>sw-19</object-name>
282     <object-name>sw-20</object-name>
283     <object-name>sw-21</object-name>
284     <object-name>sw-22</object-name>
285     <object-name>sw-23</object-name>
286     <object-name>sw-24</object-name>
287     <object-name>sw-25</object-name>
288     <object-name>sw-26</object-name>
289     <object-name>sw-27</object-name>
290     <object-name>sw-28</object-name>
291     <object-name>sw-29</object-name>
292     <object-name>sw-30</object-name>
293     <object-name>sw-31</object-name>
294     <object-name>sw-32</object-name>
295     <object-name>sw-33</object-name>
296     <object-name>sw-34</object-name>
297     <object-name>sw-35</object-name>
298     <object-name>sw-36</object-name>
299     <object-name>sw-37</object-name>
300     <object-name>sw-38</object-name>
301     <object-name>sw-39</object-name>
302     <object-name>sw-40</object-name>
303     <object-name>sw-86</object-name>
304     <object-name>sw-87</object-name>
305     <object-name>sw-88</object-name>
306     <object-name>sw-89</object-name>
307     <object-name>sw-90</object-name>
308     <object-name>sw-91</object-name>
309     <object-name>sw-92</object-name>
310     <object-name>sw-93</object-name>
311     <object-name>sw-94</object-name>
312     <object-name>sw-95</object-name>
313     <object-name>sw-96</object-name>
314     <object-name>check_lamps_3</object-name>
315     <object-name>check-lamps-4</object-name>
316     <object-name>bt-1</object-name>
317     <object-name>bt-2</object-name>
318     <object-name>bt-3</object-name>
319     <object-name>bt-4</object-name>
320     <object-name>bt-5</object-name>
321     <object-name>bt-6</object-name>
322     <object-name>bt-7</object-name>
323     <object-name>bt-8</object-name>
324     <object-name>km-5-2</object-name>
325     <object-name>km-5-1</object-name>
326     <object-name>startpanel</object-name>
327     <object-name>nadp4</object-name>
328     <object-name>lever_sti2</object-name>
329     <object-name>lever_sti8</object-name>
330     <object-name>lever_sti0</object-name>
331     <object-name>lever_sti7</object-name>  
332 </animation>
333 <!--Hide VC on external views-->
334 <animation>
335   <type>select</type>
336   <object-name>interior</object-name>
337   <object-name>virtualcockpit</object-name>
338   <condition>
339       <property>/sim/current-view/internal</property>
340   </condition>
341   <nopreview/>
342 </animation>
343
344 <!-- ************************ Cabin animation *****************************-->
345
346 <!--Yoke animation-->
347 <animation>
348   <type>rotate</type>
349   <object-name>lever_sti2</object-name>
350   <object-name>lever_sti8</object-name>
351   <object-name>lever_sti0</object-name>
352   <object-name>lever_sti7</object-name>  
353   <property>/fdm/jsbsim/fcs/pitch-trim-sum</property>
354   <factor>-10.0</factor>
355   <offset-deg>10.0</offset-deg>
356   <center>
357     <x-m>0.76</x-m>
358     <y-m>0.0</y-m>
359     <z-m>-0.18</z-m>
360   </center>
361   <axis>
362     <x>0.0</x>
363     <y>1.0</y>
364     <z>0.0</z>
365   </axis>
366 </animation>
367
368 <animation>
369   <type>rotate</type>
370   <object-name>lever_sti2</object-name>
371   <property>/controls/flight/aileron</property>
372   <factor>120.0</factor>
373   <offset-deg>120.0</offset-deg>
374   <axis>
375     <x1-m>0.717</x1-m>
376     <y1-m>-0.561</y1-m>
377     <z1-m>0.76</z1-m>
378     
379     <x2-m>0.415</x2-m>
380     <y2-m>-0.561</y2-m>
381     <z2-m>0.715</z2-m>    
382   </axis>
383 </animation>
384
385 <animation>
386   <type>rotate</type>
387   <object-name>lever_sti0</object-name>
388   <property>/controls/flight/aileron</property>
389   <factor>120.0</factor>
390   <offset-deg>120.0</offset-deg>
391   <axis>
392     <x1-m>0.717</x1-m>
393     <y1-m>0.575</y1-m>
394     <z1-m>0.76</z1-m>
395     
396     <x2-m>0.415</x2-m>
397     <y2-m>0.575</y2-m>
398     <z2-m>0.715</z2-m>    
399   </axis>
400 </animation>
401
402
403 <!--Hide yoke for mod view-->
404 <animation>
405   <type>select</type>
406   <!--Left yoke-->
407   <object-name>lever_sti2</object-name>
408   <object-name>lever_sti8</object-name>
409   <condition>
410      <not>
411       <property>tu154/mod-views/mod</property>
412       <equals>
413        <property>/sim/current-view/view-number</property>
414        <value>0</value>
415       </equals>
416      </not>
417   </condition>
418 </animation>
419
420 <animation>
421   <type>select</type>
422   <!--Right yoke-->
423   <object-name>lever_sti0</object-name>
424   <object-name>lever_sti7</object-name>
425   <condition>
426      <not>
427       <property>tu154/mod-views/mod</property>
428       <property>/tu154/mod-views/copilot-view</property>
429      </not>
430   </condition>
431 </animation>
432
433 <animation>
434   <type>select</type>
435   <!--Chair handle-->
436   <object-name>right_hand_handle</object-name>
437   <condition>
438      <not>
439       <equals>
440        <property>/sim/current-view/view-number</property>
441        <value>0</value>
442       </equals>
443      </not>
444   </condition>
445 </animation>
446  
447
448
449 <!-- Pedals -->
450 <animation>
451   <type>translate</type>
452   <object-name>MESH82</object-name>
453   <object-name>MESH84</object-name>
454   <property>controls/flight/rudder</property>
455   <factor>-0.05</factor>
456   <offset-m>-0.05</offset-m>
457   <axis>
458     <x>-1.0</x>
459     <y>0.0</y>
460     <z>0.0</z>
461   </axis>
462 </animation>
463 <animation>
464   <type>translate</type>
465   <object-name>MESH83</object-name>
466   <object-name>MESH85</object-name>
467   <property>controls/flight/rudder</property>
468   <factor>-0.05</factor>
469   <offset-m>-0.05</offset-m>
470   <axis>
471     <x>1.0</x>
472     <y>0.0</y>
473     <z>0.0</z>
474   </axis>
475 </animation>
476
477
478 <!--Gear handle-->
479 <animation>
480   <type>rotate</type>
481   <object-name>gear_handle</object-name>
482   <property>controls/gear/gear-down</property>
483   <factor>45.0</factor>
484         
485   <condition>
486   <equals>
487    <property>gear/gear/wow</property>
488    <value>false</value>
489   </equals>
490  </condition>
491   
492   <center>
493     <x-m>0.7007</x-m>
494     <y-m>0.0</y-m>
495     <z-m>1.3225</z-m>
496   </center>
497   <axis>
498     <x>0.0</x>
499     <y>1.0</y>
500     <z>0.0</z>
501   </axis>
502 </animation>
503 <animation>
504   <type>pick</type>
505   <object-name>gear_handle</object-name>
506   <visible>true</visible>
507   <action>
508     <button>0</button>
509     <repeatable>false</repeatable>
510     <binding>
511       <command>property-toggle</command>
512   <condition>
513     <equals>
514         <property>gear/gear/wow</property>
515             <value>false</value>
516      </equals>
517  </condition>    
518       <property>controls/gear/gear-down</property>
519     </binding>
520   </action>
521 </animation>
522
523 <!--Flap handle-->
524 <animation>
525   <type>rotate</type>
526   <object-name>flaps_handle</object-name>
527   <property>controls/flight/flaps</property>
528   <factor>45.0</factor>
529   <center>
530     <x-m>0.688</x-m>
531     <y-m>0.0</y-m>
532     <z-m>1.335</z-m>
533   </center>
534   <axis>
535     <x>0.0</x>
536     <y>1.0</y>
537     <z>0.0</z>
538   </axis>
539 </animation>
540
541 <animation>
542   <type>pick</type>
543   <object-name>flaps_handle</object-name>
544   <visible>true</visible>
545   <action>
546     <button>0</button>
547     <repeatable>false</repeatable>
548     <binding>
549       <command>nasal</command>
550       <script>controls.flapsDown(1)</script>
551     </binding>
552   </action>  
553   <action>
554     <button>1</button>
555     <repeatable>false</repeatable>
556     <binding>
557       <command>nasal</command>
558       <script>controls.flapsDown(-1)</script>
559     </binding>
560   </action>  
561   <action>
562     <button>3</button>
563     <repeatable>false</repeatable>
564     <binding>
565       <command>nasal</command>
566       <script>controls.flapsDown(1)</script>
567     </binding>
568   </action>
569   <action>
570     <button>4</button>
571     <repeatable>false</repeatable>
572     <binding>
573       <command>nasal</command>
574       <script>controls.flapsDown(-1)</script>
575     </binding>
576   </action>
577 </animation>
578
579 <!--Stabilizer-->
580 <!--Manu cover-->
581 <animation>
582   <type>rotate</type>
583   <object-name>stab_manu_cover</object-name>  
584   <property>tu154/switches/stab-manu-cover</property>
585   <interpolation>
586     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
587     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
588   </interpolation>
589   <axis>
590     <x1-m>0.613</x1-m>
591     <y1-m>-0.1694</y1-m>
592     <z1-m>1.2153</z1-m>
593     <x2-m>0.7594</x2-m>
594     <y2-m>-0.1694</y2-m>
595     <z2-m>1.0254</z2-m>
596   </axis>
597 </animation>
598 <animation>
599   <type>pick</type>
600   <object-name>stab_manu_cover</object-name>  
601   <visible>true</visible>
602   <action>
603     <button>0</button>
604     <repeatable>false</repeatable>
605     <binding>
606       <command>nasal</command>
607       <script>
608         var pos = getprop("tu154/switches/stab-manu-cover");
609         if( pos == nil ) pos = 0.0;
610         if( pos == 0.0 ) pos = 1.0; else pos = 0.0;
611         interpolate("tu154/switches/stab-manu-cover", pos, 0.1 );
612         setprop("fdm/jsbsim/fcs/stab-manu-switch", pos);
613         pos = getprop("fdm/jsbsim/fcs/stabilizer-auto-pos");
614         if( pos == nil ) pos = 0.0;
615         setprop("fdm/jsbsim/fcs/stab-manu-cmd", pos);
616       </script>
617     </binding>
618   </action>
619 </animation>
620
621 <!--Stab auto selector-->
622 <animation>
623   <type>rotate</type>
624   <object-name>stab_auto_handle</object-name>
625   <property>tu154/switches/stab-auto-handle</property>
626   <interpolation>
627     <entry><ind>        0.0</ind>       <dep>   -50.0</dep></entry>
628     <entry><ind>        1.0</ind>       <dep>   0.0</dep></entry>
629     <entry><ind>        2.0</ind>       <dep>   35.0</dep></entry>
630   </interpolation>
631   <center>
632     <x-m>0.652</x-m>
633     <y-m>0.0</y-m>
634     <z-m>1.1192</z-m>
635   </center>
636   <axis>
637     <x>0.0</x>
638     <y>1.0</y>
639     <z>0.0</z>
640   </axis>
641 </animation>
642 <animation>
643   <type>pick</type>
644   <object-name>stab_auto_handle</object-name>  
645   <visible>true</visible>
646   <action>
647     <button>0</button>
648     <repeatable>false</repeatable>
649     <binding>
650       <command>nasal</command>
651       <script>
652         var pos = getprop("tu154/switches/stab-auto-handle");
653         if( pos == nil ) pos = 0.0;
654         pos = pos + 1.0;
655         if( pos == 3.0 ) pos = 2.0;
656         interpolate("tu154/switches/stab-auto-handle", pos, 0.2 );
657         if( getprop("fdm/jsbsim/fcs/flap-cmd-norm") == 0.0 ) 
658                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
659         else if( pos > getprop("fdm/jsbsim/fcs/stab-auto-cmd") ) 
660                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
661       </script>
662     </binding>
663   </action>
664   <action>
665     <button>1</button>
666     <repeatable>false</repeatable>
667     <binding>
668       <command>nasal</command>
669       <script>
670         var pos = getprop("tu154/switches/stab-auto-handle");
671         if( pos == nil ) pos = 0.0;
672         pos = pos - 1.0;
673         if( 0.0 > pos ) pos = 0.0;
674         interpolate("tu154/switches/stab-auto-handle", pos, 0.2 );
675         if( getprop("fdm/jsbsim/fcs/flap-cmd-norm") == 0.0 ) 
676                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
677       </script>
678     </binding>
679   </action>
680   <action>
681     <button>3</button>
682     <repeatable>false</repeatable>
683     <binding>
684       <command>nasal</command>
685       <script>
686         var pos = getprop("tu154/switches/stab-auto-handle");
687         if( pos == nil ) pos = 0.0;
688         pos = pos + 1.0;
689         if( pos == 3.0 ) pos = 2.0;
690         interpolate("tu154/switches/stab-auto-handle", pos, 0.2 );
691         if( getprop("fdm/jsbsim/fcs/flap-cmd-norm") == 0.0 ) 
692                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
693         else if( pos > getprop("fdm/jsbsim/fcs/stab-auto-cmd") ) 
694                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
695       </script>
696     </binding>
697   </action>
698   <action>
699     <button>4</button>
700     <repeatable>false</repeatable>
701     <binding>
702       <command>nasal</command>
703       <script>
704         var pos = getprop("tu154/switches/stab-auto-handle");
705         if( pos == nil ) pos = 0.0;
706         pos = pos - 1.0;
707         if( 0.0 > pos ) pos = 0.0;
708         interpolate("tu154/switches/stab-auto-handle", pos, 0.2 );
709         if( getprop("fdm/jsbsim/fcs/flap-cmd-norm") == 0.0 ) 
710                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
711       </script>
712     </binding>
713   </action>
714
715 </animation>
716
717
718
719
720 <!-- Engines and reversers -->
721
722 <animation>
723   <type>rotate</type>
724   <object-name>lever_thr3</object-name>
725   <object-name>thrust_re2</object-name>
726   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[0]</property>
727   <factor>-65.0</factor>
728   <offset-deg>65.0</offset-deg>
729   <center>
730     <x-m>0.77436</x-m>
731     <y-m>0.0</y-m>
732     <z-m>0.3973</z-m>
733   </center>
734   <axis>
735     <x>0.0</x>
736     <y>1.0</y>
737     <z>0.0</z>
738   </axis>
739 </animation>
740
741 <animation>
742   <type>rotate</type>
743   <object-name>lever_thr2</object-name>
744   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[1]</property>
745   <factor>-65.0</factor>
746   <offset-deg>65.0</offset-deg>
747   <center>
748     <x-m>0.77436</x-m>
749     <y-m>0.0</y-m>
750     <z-m>0.3973</z-m>
751   </center>
752   <axis>
753     <x>0.0</x>
754     <y>1.0</y>
755     <z>0.0</z>
756   </axis>
757 </animation>
758
759 <animation>
760   <type>rotate</type>
761   <object-name>lever_thr1</object-name>
762   <object-name>thrust_re0</object-name>
763   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[2]</property>
764   <factor>-65.0</factor>
765   <offset-deg>65.0</offset-deg>
766   <center>
767     <x-m>0.77436</x-m>
768     <y-m>0.0</y-m>
769     <z-m>0.3973</z-m>
770   </center>
771   <axis>
772     <x>0.0</x>
773     <y>1.0</y>
774     <z>0.0</z>
775   </axis>
776 </animation>
777
778 <animation>
779   <type>rotate</type>
780   <object-name>thrust_re0</object-name>
781   <property>fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad</property>
782   <factor>28.65</factor>
783   <center>
784     <x-m>0.71229</x-m>
785     <y-m>0.0</y-m>
786     <z-m>0.62634</z-m>
787   </center>
788   <axis>
789     <x>0.0</x>
790     <y>1.0</y>
791     <z>0.0</z>
792   </axis>
793 </animation>
794
795 <animation>
796   <type>rotate</type>
797   <object-name>thrust_re2</object-name>
798   <property>fdm/jsbsim/propulsion/engine[2]/reverser-angle-rad</property>
799   <factor>28.65</factor>
800   <center>
801     <x-m>0.71229</x-m>
802     <y-m>0.0</y-m>
803     <z-m>0.62634</z-m>
804   </center>
805   <axis>
806     <x>0.0</x>
807     <y>1.0</y>
808     <z>0.0</z>
809   </axis>
810 </animation>
811
812 <!--Speedbrake lever-->
813 <animation>
814   <type>rotate</type>
815   <object-name>lever_speedbrake</object-name>
816   <condition>
817     <not><property>fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad</property></not>
818   </condition>
819   <property>surface-positions/speedbrake-pos-norm</property>
820   <interpolation>
821     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
822     <entry><ind>        0.4</ind>       <dep>   50.0</dep></entry>
823   </interpolation>
824   <center>
825     <x-m>0.77436</x-m>
826     <y-m>0.0</y-m>
827     <z-m>0.3973</z-m>
828   </center>
829   <axis>
830     <x>0.0</x>
831     <y>1.0</y>
832     <z>0.0</z>
833   </axis>
834 </animation>
835
836 <!--Hide levers for navigator view - avoid shade nav indicators-->
837 <animation>
838   <type>select</type>
839   <object-name>lever_spee</object-name>
840   <object-name>lever_thr1</object-name>
841   <object-name>lever_thr2</object-name>
842   <object-name>lever_thr3</object-name>
843   <object-name>thrust_re0</object-name>
844   <object-name>thrust_re2</object-name>
845   <object-name>lever_speedbrake</object-name>
846   <condition>
847    <not>
848      <property>/tu154/mod-views/nav-view</property>
849   </not>
850  </condition>
851 </animation>
852
853 <!--Flight Engineer levers-->
854 <!--Throttle-->
855 <animation>
856   <type>rotate</type>
857   <object-name>lever_thr6</object-name>
858   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[0]</property>
859   <factor>-65.0</factor>
860   <offset-deg>65.0</offset-deg>
861   <center>
862     <x-m>0.0</x-m>
863     <y-m>0.68</y-m>
864     <z-m>0.558</z-m>
865   </center>
866   <axis>
867     <x>1.0</x>
868     <y>0.0</y>
869     <z>0.0</z>
870   </axis>
871 </animation>
872 <animation>
873   <type>rotate</type>
874   <object-name>lever_thr5</object-name>
875   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[1]</property>
876   <factor>-65.0</factor>
877   <offset-deg>65.0</offset-deg>
878   <center>
879     <x-m>0.0</x-m>
880     <y-m>0.68</y-m>
881     <z-m>0.558</z-m>
882   </center>
883   <axis>
884     <x>1.0</x>
885     <y>0.0</y>
886     <z>0.0</z>
887   </axis>
888 </animation>
889 <animation>
890   <type>rotate</type>
891   <object-name>lever_thr4</object-name>  
892   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[2]</property>
893   <factor>-65.0</factor>
894   <offset-deg>65.0</offset-deg>
895   <center>
896     <x-m>0.0</x-m>
897     <y-m>0.68</y-m>
898     <z-m>0.558</z-m>
899   </center>
900   <axis>
901     <x>1.0</x>
902     <y>0.0</y>
903     <z>0.0</z>
904   </axis>
905 </animation>
906 <!--Throttle lock-->
907 <animation>
908   <type>rotate</type>
909   <object-name>MESH16</object-name>
910   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[0]</property>
911   <interpolation>
912     <entry><ind>        0.85</ind>      <dep>   10.0</dep></entry>
913     <entry><ind>        1.0</ind>       <dep>   -30.0</dep></entry>
914   </interpolation>
915   <center>
916     <x-m>0.0</x-m>
917     <y-m>0.68</y-m>
918     <z-m>0.558</z-m>
919   </center>
920   <axis>
921     <x>1.0</x>
922     <y>0.0</y>
923     <z>0.0</z>
924   </axis>
925 </animation>
926
927
928 <!--Stop engine levers-->
929 <animation>
930     <type>rotate</type>
931     <object-name>lever_mix0</object-name>
932     <object-name>lever_mix1</object-name>
933     <object-name>lever_mix8</object-name>
934     <!--<object-name>l-49</object-name>-->
935     <object-name>lever_lamp_1</object-name>
936     <property>tu154/switches/cutoff-lever-1</property>
937     <factor>-40.0</factor>
938     <offset-deg>40.0</offset-deg>
939     <center>
940       <x-m>0.0</x-m>
941       <y-m>0.68</y-m>
942       <z-m>0.558</z-m>
943     </center>
944     <axis>
945       <x>1.0</x>
946       <y>0.0</y>
947       <z>0.0</z>
948     </axis>
949   </animation>
950   
951   <animation>
952     <type>rotate</type>
953     <object-name>lever_mix3</object-name>
954     <object-name>lever_mix4</object-name>
955     <object-name>lever_mix9</object-name>
956     <!--<object-name>l-50</object-name>-->
957     <object-name>lever_lamp_2</object-name>
958     <property>tu154/switches/cutoff-lever-2</property>
959     <factor>-40.0</factor>
960     <offset-deg>40.0</offset-deg>
961     <center>
962       <x-m>0.0</x-m>
963       <y-m>0.68</y-m>
964       <z-m>0.558</z-m>
965     </center>
966     <axis>
967       <x>1.0</x>
968       <y>0.0</y>
969       <z>0.0</z>
970     </axis>
971   </animation>
972   <animation>
973     <type>rotate</type>
974     <object-name>lever_mix6</object-name>
975     <object-name>lever_mix7</object-name>  
976     <object-name>lever_mi10</object-name>
977     <object-name>lever_lamp_3</object-name>
978     <!--<object-name>l-51</object-name>-->
979     <property>tu154/switches/cutoff-lever-3</property>
980     <factor>-40.0</factor>
981     <offset-deg>40.0</offset-deg>
982     <center>
983       <x-m>0.0</x-m>
984       <y-m>0.68</y-m>
985       <z-m>0.558</z-m>
986     </center>
987     <axis>
988       <x>1.0</x>
989       <y>0.0</y>
990       <z>0.0</z>
991     </axis>
992   </animation>
993
994 <!--Engine failure lamps on stop levers-->
995 <animation>
996 <type>select</type>
997 <object-name>lever_lamp_1</object-name>
998 <condition>
999   <property>tu154/systems/electrical/indicators/engine-failure-1</property>
1000 </condition>
1001 </animation>
1002 <animation>
1003
1004 <type>select</type>
1005 <object-name>lever_lamp_2</object-name>
1006 <condition>
1007   <property>tu154/systems/electrical/indicators/engine-failure-2</property>
1008 </condition>
1009 </animation>
1010
1011 <animation>
1012 <type>select</type>
1013 <object-name>lever_lamp_3</object-name>
1014 <condition>
1015   <property>tu154/systems/electrical/indicators/engine-failure-3</property>
1016 </condition>
1017 </animation>
1018
1019
1020
1021 <animation>
1022   <type>pick</type>
1023   <object-name>lever_mix0</object-name>
1024   <visible>true</visible>
1025   <action>
1026     <button>0</button>
1027     <repeatable>false</repeatable>
1028     <binding>
1029       <command>nasal</command>
1030       <script>
1031         if( getprop("tu154/switches/cutoff-lever-1") == nil )
1032                 setprop("tu154/switches/cutoff-lever-1", 0.0 );
1033         if( getprop("tu154/switches/cutoff-lever-1") == 0.0 )
1034                 interpolate( "tu154/switches/cutoff-lever-1", 1.0, 0.2 );
1035         else    interpolate( "tu154/switches/cutoff-lever-1", 0.0, 0.2 );
1036       </script>
1037     </binding>
1038   </action>
1039 </animation>
1040 <animation>
1041   <type>pick</type>
1042   <object-name>lever_mix3</object-name>
1043   <visible>true</visible>
1044   <action>
1045     <button>0</button>
1046     <repeatable>false</repeatable>
1047     <binding>
1048       <command>nasal</command>
1049       <script>
1050         if( getprop("tu154/switches/cutoff-lever-2") == nil )
1051         setprop("tu154/switches/cutoff-lever-2", 0.0 );
1052         if( getprop("tu154/switches/cutoff-lever-2") == 0.0 )
1053         interpolate( "tu154/switches/cutoff-lever-2", 1.0, 0.2 );
1054         else    interpolate( "tu154/switches/cutoff-lever-2", 0.0, 0.2 );
1055       </script>
1056     </binding>
1057   </action>
1058 </animation>
1059 <animation>
1060   <type>pick</type>
1061   <object-name>lever_mix6</object-name>
1062   <visible>true</visible>
1063   <action>
1064     <button>0</button>
1065     <repeatable>false</repeatable>
1066     <binding>
1067       <command>nasal</command>
1068       <script>
1069         if( getprop("tu154/switches/cutoff-lever-3") == nil )
1070         setprop("tu154/switches/cutoff-lever-3", 0.0 );
1071         if( getprop("tu154/switches/cutoff-lever-3") == 0.0 )
1072         interpolate( "tu154/switches/cutoff-lever-3", 1.0, 0.2 );
1073         else    interpolate( "tu154/switches/cutoff-lever-3", 0.0, 0.2 );
1074       </script>
1075     </binding>
1076   </action>
1077 </animation>
1078
1079 <!--Fan animation from Valeo aug 2009-->
1080 <animation>
1081         <type>spin</type>
1082         <object-name>fan1</object-name>
1083         <property>tu154/fan/rpm1</property>
1084         <factor>-1</factor>
1085         <axis>
1086                 <x1-m>2.177</x1-m>
1087                 <y1-m>0.647</y1-m>
1088                 <z1-m>1.489</z1-m>
1089                 <x2-m>2.1</x2-m>
1090                 <y2-m>0.663</y2-m>
1091                 <z2-m>1.513</z2-m>
1092         </axis>
1093 </animation>
1094
1095 <animation>
1096         <type>pick</type>
1097         <object-name>fan1.001</object-name>
1098         <visible>true</visible>
1099         <action>
1100                 <button>0</button>
1101                 <repeatable>false</repeatable>
1102                 <binding>
1103                         <command>nasal</command>
1104                         <script>
1105                                 if( getprop("tu154/fan/rpm1") == nil )
1106                                 setprop("tu154/fan/rpm1", 0.0 );
1107                                 if( getprop("tu154/fan/rpm1") == 0.0 )
1108                                 interpolate( "tu154/fan/rpm1", 256, 1 );
1109                                 else    interpolate( "tu154/fan/rpm1", 0, 4 );
1110                         </script>
1111                 </binding>
1112         </action>
1113 </animation>
1114
1115 <animation>
1116         <type>spin</type>
1117         <object-name>fan2</object-name>
1118         <property>tu154/fan/rpm2</property>
1119         <factor>-1</factor>
1120         <axis>
1121                 <x1-m>0.904</x1-m>
1122                 <y1-m>0.461</y1-m>
1123                 <z1-m>1.252</z1-m>
1124                 <x2-m>0.850</x2-m>
1125                 <y2-m>0.432</y2-m>
1126                 <z2-m>1.305</z2-m>
1127         </axis>
1128 </animation>
1129
1130 <animation>
1131         <type>pick</type>
1132         <object-name>fan2.001</object-name>
1133         <visible>true</visible>
1134         <action>
1135                 <button>0</button>
1136                 <repeatable>false</repeatable>
1137                 <binding>
1138                         <command>nasal</command>
1139                         <script>
1140                                 if( getprop("tu154/fan/rpm2") == nil )
1141                                 setprop("tu154/fan/rpm2", 0.0 );
1142                                 if( getprop("tu154/fan/rpm2") == 0.0 )
1143                                 interpolate( "tu154/fan/rpm2", 256, 1 );
1144                                 else    interpolate( "tu154/fan/rpm2", 0, 4 );
1145                         </script>
1146                 </binding>
1147         </action>
1148 </animation>
1149
1150 <animation>
1151         <type>spin</type>
1152         <object-name>fan3</object-name>
1153         <property>tu154/fan/rpm3</property>
1154         <factor>1</factor>
1155         <axis>
1156                 <x1-m>0.949</x1-m>
1157                 <y1-m>-0.430</y1-m>
1158                 <z1-m>1.292</z1-m>
1159                 <x2-m>0.872</x2-m>
1160                 <y2-m>-0.414</y2-m>
1161                 <z2-m>1.316</z2-m>
1162         </axis>
1163 </animation>
1164
1165 <animation>
1166         <type>pick</type>
1167         <object-name>fan3.001</object-name>
1168         <visible>true</visible>
1169         <action>
1170                 <button>0</button>
1171                 <repeatable>false</repeatable>
1172                 <binding>
1173                         <command>nasal</command>
1174                         <script>
1175                                 if( getprop("tu154/fan/rpm3") == nil )
1176                                 setprop("tu154/fan/rpm3", 0.0 );
1177                                 if( getprop("tu154/fan/rpm3") == 0.0 )
1178                                 interpolate( "tu154/fan/rpm3", 256, 1 );
1179                                 else    interpolate( "tu154/fan/rpm3", 0, 4 );
1180                         </script>
1181                 </binding>
1182         </action>
1183 </animation>
1184
1185 <!--******************************* End cabin animations ************************************-->
1186
1187 <!-- Rembrandt light -->
1188  
1189
1190
1191
1192 </PropertyList>