Tu-154B2 version 3.1:
[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.0565</factor>
456   <offset-m>-0.0565</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.0565</factor>
469   <offset-m>-0.0565</offset-m>
470   <axis>
471     <x>1.0</x>
472     <y>0.0</y>
473     <z>0.0</z>
474   </axis>
475 </animation>
476 <animation>
477   <type>rotate</type>
478   <object-name>MESH82</object-name>
479   <object-name>MESH84</object-name>
480   <property>controls/gear/brake-left</property>
481   <factor>-45</factor>
482   <center>
483     <x-m>0.4600</x-m>
484     <y-m>0</y-m>
485     <z-m>0.1691</z-m>
486   </center>
487   <axis>
488     <x>0.0</x>
489     <y>1.0</y>
490     <z>0.0</z>
491   </axis>
492 </animation>
493 <animation>
494   <type>rotate</type>
495   <object-name>MESH83</object-name>
496   <object-name>MESH85</object-name>
497   <property>controls/gear/brake-right</property>
498   <factor>-45</factor>
499   <center>
500     <x-m>0.5730</x-m>
501     <y-m>0</y-m>
502     <z-m>0.1691</z-m>
503   </center>
504   <axis>
505     <x>0.0</x>
506     <y>1.0</y>
507     <z>0.0</z>
508   </axis>
509 </animation>
510
511
512 <!--Gear handle-->
513 <animation>
514   <type>rotate</type>
515   <object-name>gear_handle</object-name>
516   <property>controls/gear/gear-down</property>
517   <factor>45.0</factor>
518         
519   <condition>
520   <equals>
521    <property>gear/gear/wow</property>
522    <value>false</value>
523   </equals>
524  </condition>
525   
526   <center>
527     <x-m>0.7007</x-m>
528     <y-m>0.0</y-m>
529     <z-m>1.3225</z-m>
530   </center>
531   <axis>
532     <x>0.0</x>
533     <y>1.0</y>
534     <z>0.0</z>
535   </axis>
536 </animation>
537 <animation>
538   <type>pick</type>
539   <object-name>gear_handle</object-name>
540   <visible>true</visible>
541   <action>
542     <button>0</button>
543     <repeatable>false</repeatable>
544     <binding>
545       <command>property-toggle</command>
546   <condition>
547     <equals>
548         <property>gear/gear/wow</property>
549             <value>false</value>
550      </equals>
551  </condition>    
552       <property>controls/gear/gear-down</property>
553     </binding>
554   </action>
555 </animation>
556
557 <!--Flap handle-->
558 <animation>
559   <type>rotate</type>
560   <object-name>flaps_handle</object-name>
561   <property>controls/flight/flaps</property>
562   <factor>45.0</factor>
563   <center>
564     <x-m>0.688</x-m>
565     <y-m>0.0</y-m>
566     <z-m>1.335</z-m>
567   </center>
568   <axis>
569     <x>0.0</x>
570     <y>1.0</y>
571     <z>0.0</z>
572   </axis>
573 </animation>
574
575 <animation>
576   <type>pick</type>
577   <object-name>flaps_handle</object-name>
578   <visible>true</visible>
579   <action>
580     <button>0</button>
581     <repeatable>false</repeatable>
582     <binding>
583       <command>nasal</command>
584       <script>controls.flapsDown(1)</script>
585     </binding>
586   </action>  
587   <action>
588     <button>1</button>
589     <repeatable>false</repeatable>
590     <binding>
591       <command>nasal</command>
592       <script>controls.flapsDown(-1)</script>
593     </binding>
594   </action>  
595   <action>
596     <button>3</button>
597     <repeatable>false</repeatable>
598     <binding>
599       <command>nasal</command>
600       <script>controls.flapsDown(1)</script>
601     </binding>
602   </action>
603   <action>
604     <button>4</button>
605     <repeatable>false</repeatable>
606     <binding>
607       <command>nasal</command>
608       <script>controls.flapsDown(-1)</script>
609     </binding>
610   </action>
611 </animation>
612
613 <!--Stabilizer-->
614 <!--Manu cover-->
615 <animation>
616   <type>rotate</type>
617   <object-name>stab_manu_cover</object-name>  
618   <property>tu154/switches/stab-manu-cover</property>
619   <interpolation>
620     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
621     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
622   </interpolation>
623   <axis>
624     <x1-m>0.613</x1-m>
625     <y1-m>-0.1694</y1-m>
626     <z1-m>1.2153</z1-m>
627     <x2-m>0.7594</x2-m>
628     <y2-m>-0.1694</y2-m>
629     <z2-m>1.0254</z2-m>
630   </axis>
631 </animation>
632 <animation>
633   <type>pick</type>
634   <object-name>stab_manu_cover</object-name>  
635   <visible>true</visible>
636   <action>
637     <button>0</button>
638     <repeatable>false</repeatable>
639     <binding>
640       <command>nasal</command>
641       <script>
642         var pos = getprop("tu154/switches/stab-manu-cover");
643         if( pos == nil ) pos = 0.0;
644         if( pos == 0.0 ) pos = 1.0; else pos = 0.0;
645         interpolate("tu154/switches/stab-manu-cover", pos, 0.1 );
646         setprop("fdm/jsbsim/fcs/stab-manu-switch", pos);
647         pos = getprop("fdm/jsbsim/fcs/stabilizer-auto-pos");
648         if( pos == nil ) pos = 0.0;
649         setprop("fdm/jsbsim/fcs/stab-manu-cmd", pos);
650       </script>
651     </binding>
652   </action>
653 </animation>
654
655 <!--Stab auto selector-->
656 <animation>
657   <type>rotate</type>
658   <object-name>stab_auto_handle</object-name>
659   <property>tu154/switches/stab-auto-handle</property>
660   <interpolation>
661     <entry><ind>        0.0</ind>       <dep>   -50.0</dep></entry>
662     <entry><ind>        1.0</ind>       <dep>   0.0</dep></entry>
663     <entry><ind>        2.0</ind>       <dep>   35.0</dep></entry>
664   </interpolation>
665   <center>
666     <x-m>0.652</x-m>
667     <y-m>0.0</y-m>
668     <z-m>1.1192</z-m>
669   </center>
670   <axis>
671     <x>0.0</x>
672     <y>1.0</y>
673     <z>0.0</z>
674   </axis>
675 </animation>
676 <animation>
677   <type>pick</type>
678   <object-name>stab_auto_handle</object-name>  
679   <visible>true</visible>
680   <action>
681     <button>0</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>1</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   <action>
715     <button>3</button>
716     <repeatable>false</repeatable>
717     <binding>
718       <command>nasal</command>
719       <script>
720         var pos = getprop("tu154/switches/stab-auto-handle");
721         if( pos == nil ) pos = 0.0;
722         pos = pos + 1.0;
723         if( pos == 3.0 ) pos = 2.0;
724         interpolate("tu154/switches/stab-auto-handle", pos, 0.2 );
725         if( getprop("fdm/jsbsim/fcs/flap-cmd-norm") == 0.0 ) 
726                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
727         else if( pos > getprop("fdm/jsbsim/fcs/stab-auto-cmd") ) 
728                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
729       </script>
730     </binding>
731   </action>
732   <action>
733     <button>4</button>
734     <repeatable>false</repeatable>
735     <binding>
736       <command>nasal</command>
737       <script>
738         var pos = getprop("tu154/switches/stab-auto-handle");
739         if( pos == nil ) pos = 0.0;
740         pos = pos - 1.0;
741         if( 0.0 > pos ) pos = 0.0;
742         interpolate("tu154/switches/stab-auto-handle", pos, 0.2 );
743         if( getprop("fdm/jsbsim/fcs/flap-cmd-norm") == 0.0 ) 
744                 setprop("fdm/jsbsim/fcs/stab-auto-cmd", pos);
745       </script>
746     </binding>
747   </action>
748
749 </animation>
750
751
752
753
754 <!-- Engines and reversers -->
755
756 <animation>
757   <type>rotate</type>
758   <object-name>lever_thr3</object-name>
759   <object-name>thrust_re2</object-name>
760   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[0]</property>
761   <factor>-65.0</factor>
762   <offset-deg>65.0</offset-deg>
763   <center>
764     <x-m>0.77436</x-m>
765     <y-m>0.0</y-m>
766     <z-m>0.3973</z-m>
767   </center>
768   <axis>
769     <x>0.0</x>
770     <y>1.0</y>
771     <z>0.0</z>
772   </axis>
773 </animation>
774
775 <animation>
776   <type>rotate</type>
777   <object-name>lever_thr2</object-name>
778   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[1]</property>
779   <factor>-65.0</factor>
780   <offset-deg>65.0</offset-deg>
781   <center>
782     <x-m>0.77436</x-m>
783     <y-m>0.0</y-m>
784     <z-m>0.3973</z-m>
785   </center>
786   <axis>
787     <x>0.0</x>
788     <y>1.0</y>
789     <z>0.0</z>
790   </axis>
791 </animation>
792
793 <animation>
794   <type>rotate</type>
795   <object-name>lever_thr1</object-name>
796   <object-name>thrust_re0</object-name>
797   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[2]</property>
798   <factor>-65.0</factor>
799   <offset-deg>65.0</offset-deg>
800   <center>
801     <x-m>0.77436</x-m>
802     <y-m>0.0</y-m>
803     <z-m>0.3973</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 <animation>
813   <type>rotate</type>
814   <object-name>thrust_re0</object-name>
815   <property>fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad</property>
816   <factor>28.65</factor>
817   <center>
818     <x-m>0.71229</x-m>
819     <y-m>0.0</y-m>
820     <z-m>0.62634</z-m>
821   </center>
822   <axis>
823     <x>0.0</x>
824     <y>1.0</y>
825     <z>0.0</z>
826   </axis>
827 </animation>
828
829 <animation>
830   <type>rotate</type>
831   <object-name>thrust_re2</object-name>
832   <property>fdm/jsbsim/propulsion/engine[2]/reverser-angle-rad</property>
833   <factor>28.65</factor>
834   <center>
835     <x-m>0.71229</x-m>
836     <y-m>0.0</y-m>
837     <z-m>0.62634</z-m>
838   </center>
839   <axis>
840     <x>0.0</x>
841     <y>1.0</y>
842     <z>0.0</z>
843   </axis>
844 </animation>
845
846 <!--Speedbrake lever-->
847 <animation>
848   <type>rotate</type>
849   <object-name>lever_speedbrake</object-name>
850   <condition>
851     <not><property>fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad</property></not>
852   </condition>
853   <property>surface-positions/speedbrake-pos-norm</property>
854   <interpolation>
855     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
856     <entry><ind>        0.4</ind>       <dep>   50.0</dep></entry>
857   </interpolation>
858   <center>
859     <x-m>0.77436</x-m>
860     <y-m>0.0</y-m>
861     <z-m>0.3973</z-m>
862   </center>
863   <axis>
864     <x>0.0</x>
865     <y>1.0</y>
866     <z>0.0</z>
867   </axis>
868 </animation>
869
870 <!--Hide levers for navigator view - avoid shade nav indicators-->
871 <animation>
872   <type>select</type>
873   <object-name>lever_spee</object-name>
874   <object-name>lever_thr1</object-name>
875   <object-name>lever_thr2</object-name>
876   <object-name>lever_thr3</object-name>
877   <object-name>thrust_re0</object-name>
878   <object-name>thrust_re2</object-name>
879   <object-name>lever_speedbrake</object-name>
880   <condition>
881    <not>
882      <property>/tu154/mod-views/nav-view</property>
883   </not>
884  </condition>
885 </animation>
886
887 <!--Flight Engineer levers-->
888 <!--Throttle-->
889 <animation>
890   <type>rotate</type>
891   <object-name>lever_thr6</object-name>
892   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[0]</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 <animation>
907   <type>rotate</type>
908   <object-name>lever_thr5</object-name>
909   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[1]</property>
910   <factor>-65.0</factor>
911   <offset-deg>65.0</offset-deg>
912   <center>
913     <x-m>0.0</x-m>
914     <y-m>0.68</y-m>
915     <z-m>0.558</z-m>
916   </center>
917   <axis>
918     <x>1.0</x>
919     <y>0.0</y>
920     <z>0.0</z>
921   </axis>
922 </animation>
923 <animation>
924   <type>rotate</type>
925   <object-name>lever_thr4</object-name>  
926   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[2]</property>
927   <factor>-65.0</factor>
928   <offset-deg>65.0</offset-deg>
929   <center>
930     <x-m>0.0</x-m>
931     <y-m>0.68</y-m>
932     <z-m>0.558</z-m>
933   </center>
934   <axis>
935     <x>1.0</x>
936     <y>0.0</y>
937     <z>0.0</z>
938   </axis>
939 </animation>
940 <!--Throttle lock-->
941 <animation>
942   <type>rotate</type>
943   <object-name>MESH16</object-name>
944   <property>fdm/jsbsim/fcs/at-throttle-cmd-norm[0]</property>
945   <interpolation>
946     <entry><ind>        0.85</ind>      <dep>   10.0</dep></entry>
947     <entry><ind>        1.0</ind>       <dep>   -30.0</dep></entry>
948   </interpolation>
949   <center>
950     <x-m>0.0</x-m>
951     <y-m>0.68</y-m>
952     <z-m>0.558</z-m>
953   </center>
954   <axis>
955     <x>1.0</x>
956     <y>0.0</y>
957     <z>0.0</z>
958   </axis>
959 </animation>
960
961
962 <!--Stop engine levers-->
963 <animation>
964     <type>rotate</type>
965     <object-name>lever_mix0</object-name>
966     <object-name>lever_mix1</object-name>
967     <object-name>lever_mix8</object-name>
968     <!--<object-name>l-49</object-name>-->
969     <object-name>lever_lamp_1</object-name>
970     <property>tu154/switches/cutoff-lever-1</property>
971     <factor>-40.0</factor>
972     <offset-deg>40.0</offset-deg>
973     <center>
974       <x-m>0.0</x-m>
975       <y-m>0.68</y-m>
976       <z-m>0.558</z-m>
977     </center>
978     <axis>
979       <x>1.0</x>
980       <y>0.0</y>
981       <z>0.0</z>
982     </axis>
983   </animation>
984   
985   <animation>
986     <type>rotate</type>
987     <object-name>lever_mix3</object-name>
988     <object-name>lever_mix4</object-name>
989     <object-name>lever_mix9</object-name>
990     <!--<object-name>l-50</object-name>-->
991     <object-name>lever_lamp_2</object-name>
992     <property>tu154/switches/cutoff-lever-2</property>
993     <factor>-40.0</factor>
994     <offset-deg>40.0</offset-deg>
995     <center>
996       <x-m>0.0</x-m>
997       <y-m>0.68</y-m>
998       <z-m>0.558</z-m>
999     </center>
1000     <axis>
1001       <x>1.0</x>
1002       <y>0.0</y>
1003       <z>0.0</z>
1004     </axis>
1005   </animation>
1006   <animation>
1007     <type>rotate</type>
1008     <object-name>lever_mix6</object-name>
1009     <object-name>lever_mix7</object-name>  
1010     <object-name>lever_mi10</object-name>
1011     <object-name>lever_lamp_3</object-name>
1012     <!--<object-name>l-51</object-name>-->
1013     <property>tu154/switches/cutoff-lever-3</property>
1014     <factor>-40.0</factor>
1015     <offset-deg>40.0</offset-deg>
1016     <center>
1017       <x-m>0.0</x-m>
1018       <y-m>0.68</y-m>
1019       <z-m>0.558</z-m>
1020     </center>
1021     <axis>
1022       <x>1.0</x>
1023       <y>0.0</y>
1024       <z>0.0</z>
1025     </axis>
1026   </animation>
1027
1028 <!--Engine failure lamps on stop levers-->
1029 <animation>
1030 <type>select</type>
1031 <object-name>lever_lamp_1</object-name>
1032 <condition>
1033   <property>tu154/systems/electrical/indicators/engine-failure-1</property>
1034 </condition>
1035 </animation>
1036 <animation>
1037
1038 <type>select</type>
1039 <object-name>lever_lamp_2</object-name>
1040 <condition>
1041   <property>tu154/systems/electrical/indicators/engine-failure-2</property>
1042 </condition>
1043 </animation>
1044
1045 <animation>
1046 <type>select</type>
1047 <object-name>lever_lamp_3</object-name>
1048 <condition>
1049   <property>tu154/systems/electrical/indicators/engine-failure-3</property>
1050 </condition>
1051 </animation>
1052
1053
1054
1055 <animation>
1056   <type>pick</type>
1057   <object-name>lever_mix0</object-name>
1058   <visible>true</visible>
1059   <action>
1060     <button>0</button>
1061     <repeatable>false</repeatable>
1062     <binding>
1063       <command>nasal</command>
1064       <script>
1065         if( getprop("tu154/switches/cutoff-lever-1") == nil )
1066                 setprop("tu154/switches/cutoff-lever-1", 0.0 );
1067         if( getprop("tu154/switches/cutoff-lever-1") == 0.0 )
1068                 interpolate( "tu154/switches/cutoff-lever-1", 1.0, 0.2 );
1069         else    interpolate( "tu154/switches/cutoff-lever-1", 0.0, 0.2 );
1070       </script>
1071     </binding>
1072   </action>
1073 </animation>
1074 <animation>
1075   <type>pick</type>
1076   <object-name>lever_mix3</object-name>
1077   <visible>true</visible>
1078   <action>
1079     <button>0</button>
1080     <repeatable>false</repeatable>
1081     <binding>
1082       <command>nasal</command>
1083       <script>
1084         if( getprop("tu154/switches/cutoff-lever-2") == nil )
1085         setprop("tu154/switches/cutoff-lever-2", 0.0 );
1086         if( getprop("tu154/switches/cutoff-lever-2") == 0.0 )
1087         interpolate( "tu154/switches/cutoff-lever-2", 1.0, 0.2 );
1088         else    interpolate( "tu154/switches/cutoff-lever-2", 0.0, 0.2 );
1089       </script>
1090     </binding>
1091   </action>
1092 </animation>
1093 <animation>
1094   <type>pick</type>
1095   <object-name>lever_mix6</object-name>
1096   <visible>true</visible>
1097   <action>
1098     <button>0</button>
1099     <repeatable>false</repeatable>
1100     <binding>
1101       <command>nasal</command>
1102       <script>
1103         if( getprop("tu154/switches/cutoff-lever-3") == nil )
1104         setprop("tu154/switches/cutoff-lever-3", 0.0 );
1105         if( getprop("tu154/switches/cutoff-lever-3") == 0.0 )
1106         interpolate( "tu154/switches/cutoff-lever-3", 1.0, 0.2 );
1107         else    interpolate( "tu154/switches/cutoff-lever-3", 0.0, 0.2 );
1108       </script>
1109     </binding>
1110   </action>
1111 </animation>
1112
1113 <!--Fan animation from Valeo aug 2009-->
1114 <animation>
1115         <type>spin</type>
1116         <object-name>fan1</object-name>
1117         <property>tu154/fan/rpm1</property>
1118         <factor>-1</factor>
1119         <axis>
1120                 <x1-m>2.177</x1-m>
1121                 <y1-m>0.647</y1-m>
1122                 <z1-m>1.489</z1-m>
1123                 <x2-m>2.1</x2-m>
1124                 <y2-m>0.663</y2-m>
1125                 <z2-m>1.513</z2-m>
1126         </axis>
1127 </animation>
1128
1129 <animation>
1130         <type>pick</type>
1131         <object-name>fan1.001</object-name>
1132         <visible>true</visible>
1133         <action>
1134                 <button>0</button>
1135                 <repeatable>false</repeatable>
1136                 <binding>
1137                         <command>nasal</command>
1138                         <script>
1139                                 if( getprop("tu154/fan/rpm1") == nil )
1140                                 setprop("tu154/fan/rpm1", 0.0 );
1141                                 if( getprop("tu154/fan/rpm1") == 0.0 )
1142                                 interpolate( "tu154/fan/rpm1", 256, 1 );
1143                                 else    interpolate( "tu154/fan/rpm1", 0, 4 );
1144                         </script>
1145                 </binding>
1146         </action>
1147 </animation>
1148
1149 <animation>
1150         <type>spin</type>
1151         <object-name>fan2</object-name>
1152         <property>tu154/fan/rpm2</property>
1153         <factor>-1</factor>
1154         <axis>
1155                 <x1-m>0.904</x1-m>
1156                 <y1-m>0.461</y1-m>
1157                 <z1-m>1.252</z1-m>
1158                 <x2-m>0.850</x2-m>
1159                 <y2-m>0.432</y2-m>
1160                 <z2-m>1.305</z2-m>
1161         </axis>
1162 </animation>
1163
1164 <animation>
1165         <type>pick</type>
1166         <object-name>fan2.001</object-name>
1167         <visible>true</visible>
1168         <action>
1169                 <button>0</button>
1170                 <repeatable>false</repeatable>
1171                 <binding>
1172                         <command>nasal</command>
1173                         <script>
1174                                 if( getprop("tu154/fan/rpm2") == nil )
1175                                 setprop("tu154/fan/rpm2", 0.0 );
1176                                 if( getprop("tu154/fan/rpm2") == 0.0 )
1177                                 interpolate( "tu154/fan/rpm2", 256, 1 );
1178                                 else    interpolate( "tu154/fan/rpm2", 0, 4 );
1179                         </script>
1180                 </binding>
1181         </action>
1182 </animation>
1183
1184 <animation>
1185         <type>rotate</type>
1186         <object-name>fan3</object-name>
1187         <object-name>fan3.002</object-name>
1188         <property>tu154/fan/rpm3</property>
1189         <factor>0.1171875</factor>
1190         <offset-deg>-30</offset-deg>
1191         <center>
1192           <x-m>0.8321</x-m>
1193           <y-m>-0.37</y-m>
1194           <z-m>1.33892</z-m>
1195         </center>
1196         <axis>
1197           <x>0</x>
1198           <y>1</y>
1199           <z>0.5</z>
1200         </axis>
1201 </animation>
1202
1203 <animation>
1204         <type>spin</type>
1205         <object-name>fan3</object-name>
1206         <property>tu154/fan/rpm3</property>
1207         <factor>1</factor>
1208         <axis>
1209                 <x1-m>0.949</x1-m>
1210                 <y1-m>-0.430</y1-m>
1211                 <z1-m>1.292</z1-m>
1212                 <x2-m>0.872</x2-m>
1213                 <y2-m>-0.414</y2-m>
1214                 <z2-m>1.316</z2-m>
1215         </axis>
1216 </animation>
1217
1218
1219
1220 <animation>
1221         <type>pick</type>
1222         <object-name>fan3.001</object-name>
1223         <object-name>fan3.002</object-name>
1224         <visible>true</visible>
1225         <action>
1226                 <button>0</button>
1227                 <repeatable>false</repeatable>
1228                 <binding>
1229                         <command>nasal</command>
1230                         <script>
1231                                 if( getprop("tu154/fan/rpm3") == nil )
1232                                 setprop("tu154/fan/rpm3", 0.0 );
1233                                 if( getprop("tu154/fan/rpm3") == 0.0 )
1234                                 interpolate( "tu154/fan/rpm3", 256, 1 );
1235                                 else    interpolate( "tu154/fan/rpm3", 0, 4 );
1236                         </script>
1237                 </binding>
1238         </action>
1239 </animation>
1240
1241 <!--******************************* End cabin animations ************************************-->
1242
1243 <!-- Rembrandt light -->
1244  
1245
1246
1247
1248 </PropertyList>