Major update: fixed fdm-bug (thanks to LesterBoffo!), added tutorials, added replayre...
[fg:toms-fgdata.git] / Aircraft / ec130 / Models / Instruments / Levers / levers.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5  <path>levers.ac</path>
6 <animation>
7         <type>pick</type>
8         <object-name>cutofflever</object-name>
9         <action>
10             <button>0</button>
11             <repeatable>false</repeatable>
12             <binding>
13                 <command>property-cycle</command>
14             <property>controls/engines/engine/cutoff</property>
15             <value>true</value>
16             <value>false</value>
17                </binding>
18         </action>
19     </animation>
20     
21
22     
23 <!--<animation>
24         <type>pick</type>
25         <object-name>rotorbrakelever</object-name>
26         <action>
27             <button>0</button>
28             <repeatable>false</repeatable>
29            <binding>
30                                         <command>nasal</command>
31                                         <script>interpolate("/controls/rotor/brake", 1.0, 2)</script>
32                                 </binding>
33                                 <mod-up>
34                                         <binding>
35                                                 <command>nasal</command>
36                                                 <script>interpolate("/controls/rotor/brake", 0.0, 2)</script>
37                                         </binding>
38                                 </mod-up>
39         </action>
40     </animation>-->
41     
42 <animation>
43       <type>pick</type>
44        <object-name>rotorbrakelever</object-name>
45       <visible>true</visible>
46       <action>
47         <button>0</button>
48         <repeatable>false</repeatable>
49         <binding>
50           <command>nasal</command>
51           <script>ec130.mouseHandlerY.set( "/controls/rotor/brake", -0.01 );</script>
52          </binding>
53          <mod-up>
54           <binding>
55            <command>nasal</command>
56            <script>ec130.mouseHandlerY.set()</script>
57           </binding>
58          </mod-up>
59       </action>
60     </animation>
61     
62     
63 <animation>
64     <type>rotate</type>
65     <object-name>cutofflever</object-name>
66    
67     <property>controls/engines/engine/cutoff</property>
68       <factor>-30</factor>
69     <center>
70       <x-m>0 </x-m>
71       <y-m>  -0.031 </y-m>
72       <z-m> -0.035 </z-m>
73     </center>
74     <axis>
75       <x> 0 </x>
76       <y> 1 </y>
77       <z> 0 </z>
78     </axis>
79   </animation>
80   
81   <animation>
82     <type>rotate</type>
83     <object-name>rotorbrakelever</object-name>
84    
85   <property>/controls/rotor/brake</property>
86     <factor>-30</factor>
87     <center>
88       <x-m>0 </x-m>
89       <y-m>  -0.031 </y-m>
90       <z-m> -0.035 </z-m>
91     </center>
92     <axis>
93       <x> 0 </x>
94       <y> 1 </y>
95       <z> 0 </z>
96     </axis>
97   </animation>
98  
99 </PropertyList>
100
101