<?xml version="1.0"?>

<PropertyList>


 <path>flash2a.ac</path>

 <!-- 3D Instruments -->
 <model>
  <name>ASI</name>
  <path>Aircraft/flash2a/Models/asi/asi.xml</path>
  <offsets>
   <x-m>0.66</x-m>
   <y-m>-0.14</y-m>
   <z-m>0.32</z-m>
   <pitch-deg>-38</pitch-deg>
  </offsets>
 </model>

 <model>
  <name>Compass</name>
  <path>Aircraft/flash2a/Models/compass/compass.xml</path>
  <offsets>
   <x-m>0.67</x-m>
   <y-m>0.0</y-m>
   <z-m>0.305</z-m>
  </offsets>
 </model>

 <model>
  <name>Altimeter</name>
  <path>Aircraft/flash2a/Models/alt/alt.xml</path>
  <offsets>
   <x-m>0.64</x-m>
   <y-m>-0.06</y-m>
   <z-m>0.345</z-m>
   <pitch-deg>-38</pitch-deg>
  </offsets>
 </model>

 <model>
  <name>EGT</name>
  <path>Aircraft/flash2a/Models/egt/egt.xml</path>
  <offsets>
   <x-m>0.64</x-m>
   <y-m>0.09</y-m>
   <z-m>0.35</z-m>
   <pitch-deg>-38</pitch-deg>
  </offsets>
 </model>

 <model>
  <name>RPM</name>
  <path>Aircraft/flash2a/Models/rpm/rpm.xml</path>
  <offsets>
   <x-m>0.665</x-m>
   <y-m>0.14</y-m>
   <z-m>0.33</z-m>
   <pitch-deg>-38</pitch-deg>
  </offsets>
 </model>

<!-- Transparent Surfaces for Rembrandt rendering -->
 <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>Visor</object-name>
 </effect>

  
<!-- Hand Throttle -->
  <animation>
  <type>rotate</type>
  <object-name>HandThrottle</object-name>
   <property>controls/engines/engine[0]/handthrottle</property>
  <factor>270</factor>
  <axis>
      <x1-m>1.33</x1-m>
      <y1-m>-0.342</y1-m>
      <z1-m>0.227</z1-m>
      <x2-m>1.329</x2-m>
      <y2-m>-0.32</y2-m>
      <z2-m>0.226</z2-m>
    </axis>
 </animation>

<!-- 
 <animation>
  <type>pick</type>
  <object-name>HandThrottleDown</object-name>
  <visible>false</visible>
  <action>
    <name>decrease hand throttle fine</name>
    <button>0</button>
    <repeatable>true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>controls/engines/engine/handthrottle</property>
      <step>-0.01</step>
      <min>0.0</min>
      <max>1.0</max>
      <wrap>false</wrap>
    </binding>
  </action>
  <action>
    <name>decrease hand throttle coarse</name>
    <button>1</button>
    <repeatable>true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>controls/engines/engine/handthrottle</property>
      <step>-0.1</step>
      <min>0.0</min>
      <max>1.0</max>
      <wrap>false</wrap>
    </binding>
  </action>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>HandThrottleUp</object-name>
  <visible>false</visible>
  <action>
    <name>increase hand throttle fine</name>
    <button>0</button>
    <repeatable>true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>controls/engines/engine/handthrottle</property>
      <step>0.01</step>
      <min>0.0</min>
      <max>1.0</max>
      <wrap>false</wrap>
    </binding>
  </action>
  <action>
    <name>increase hand throttlecoarse</name>
    <button>1</button>
    <repeatable>true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>controls/engines/engine/handthrottle</property>
      <step>0.1</step>
      <min>0.0</min>
      <max>1.0</max>
      <wrap>false</wrap>
    </binding>
  </action>
 </animation>
-->

<!-- Magneto Switch-->

  <animation>
  <type>rotate</type>
  <object-name>MagnetoSwitch</object-name>
   <property>controls/engines/engine[0]/magnetos</property>
  <factor>30</factor>
  <axis>
      <x1-m>1.325</x1-m>
      <y1-m>0.318</y1-m>
      <z1-m>0.236</z1-m>
      <x2-m>1.322</x2-m>
      <y2-m>-0.309</y2-m>
      <z2-m>0.234</z2-m>
    </axis>
 </animation>

<!-- 
 <animation>
  <type>pick</type>
  <object-name>MagnetoOff</object-name>
  <visible>false</visible>
  <action>
    <name>Magneto Off</name>
    <repeatable>false</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>controls/engines/engine/magnetos</property>
      <step>-3.0</step>
      <min>0.0</min>
      <max>3.0</max>
      <wrap>false</wrap>
    </binding>
  </action>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>MagnetoOn</object-name>
  <visible>false</visible>
  <action>
    <name>Switch Magneto On</name>
    <repeatable>false</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>controls/engines/engine/magnetos</property>
      <step>3.0</step>
      <min>0.0</min>
      <max>3.0</max>
      <wrap>false</wrap>
    </binding>
  </action>
 </animation>
-->

 <!-- Starter -->
 <animation>
  <type>pick</type>
  <object-name>StarterHandle</object-name>
  <action>
    <name>Start</name>
    <button>0</button>
    <repeatable>true</repeatable>
    <binding>
     <command>nasal</command>
     <script>controls.startEngine()</script>
    </binding>
    <mod-up>
     <binding>
      <command>nasal</command>
      <script>props.setAll("/controls/engines/engine", "starter", 0)</script>
     </binding>
    </mod-up>
  </action>
 </animation>

 <animation>
  <type>select</type>
  <object-name>StarterHandle</object-name>
  <condition>
   <equals>
    <property>engines/engine[0]/cranking</property>
    <value>false</value>
   </equals>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>StarterHandlePulled</object-name>
  <object-name>StarterRope2Pulled</object-name>
  <condition>
   <equals>
    <property>engines/engine[0]/cranking</property>
    <value>true</value>
   </equals>
  </condition>
 </animation>

  <!-- Object movements -->

 <animation>
  <type>rotate</type>
  <object-name>NoseWheel</object-name>
  <object-name>NoseStrut</object-name>
  <property>fdm/jsbsim/fcs/rudder-cmd-norm</property>
  <factor>20</factor>
  <center>
   <x-m>0.24</x-m>
   <y-m>0.0</y-m>
   <z-m>-0.22</z-m>
  </center>
  <axis>
   <x>-0.2</x>
   <y>0</y>
   <z>1</z>
  </axis>
 </animation>

 <animation>
  <type>select</type>
  <object-name>Prop</object-name>
  <condition>
   <less-than>
    <property>engines/engine[0]/rpm</property>
    <value>500</value>
   </less-than>
  </condition>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>Prop</object-name>
  <property>engines/engine[0]/rpm</property>
  <factor>-1</factor>
  <center>
   <x-m>2.4</x-m>
   <y-m>0</y-m>
   <z-m>0.55</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>Wing</object-name>
  <object-name>ControlBar</object-name>
  <object-name>ControlBar2</object-name>
  <object-name>Rudder</object-name>
  <object-name>KingPost</object-name>
  <object-name>WingKeel</object-name>
  <object-name>ControlBarStrap</object-name>
  <object-name>ControlBarBolt1</object-name>
  <object-name>ControlBarBolt2</object-name>
  <property>controls/flight/aileron</property>
  <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>15</dep>
   </entry>
   <entry>
    <ind>0.0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>1.0</ind>
    <dep>-15</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>1.55</x-m>
   <y-m>0.0</y-m>
   <z-m>1.96</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>Wing</object-name>
  <object-name>ControlBar</object-name>
  <object-name>ControlBar2</object-name>
  <object-name>Rudder</object-name>
  <object-name>KingPost</object-name>
  <object-name>WingKeel</object-name>
  <object-name>ControlBarStrap</object-name>
  <object-name>ControlBarBolt1</object-name>
  <object-name>ControlBarBolt2</object-name>
  <object-name>HangStrap</object-name>
  <property>controls/flight/elevator</property>
  <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>-6</dep>
   </entry>
   <entry>
    <ind>0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>1.0</ind>
    <dep>12</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>1.55</x-m>
   <y-m>0.0</y-m>
   <z-m>1.96</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 
</PropertyList>
