<?xml version="1.0"?>

<PropertyList>

 <path>c172p.ac</path>

 <!-- Temporarily use the 2D panel hack, until I have time to make
      3D instruments -->

 <panel>
  <name>PanelInstruments</name>
  <path>Aircraft/c172p/Models/c172p-2d-panel.xml</path>
  <bottom-left>
   <x-m>-0.35</x-m>
   <y-m>-0.50</y-m>
   <z-m>-0.10</z-m>
  </bottom-left>
  <bottom-right>
   <x-m>-0.35</x-m>
   <y-m> 0.50</y-m>
   <z-m>-0.10</z-m>
  </bottom-right>
  <top-left>
   <x-m>-0.35</x-m>
   <y-m>-0.50</y-m>
   <z-m> 0.25</z-m>
  </top-left>
 </panel>

 <!-- LOD for the model as a whole -->

 <animation>
  <type>range</type>
  <min-m>0</min-m>
  <max-m>10000</max-m>
 </animation>

<!-- Controls -->

 <animation>
  <name>CarbHeatGroup</name>
  <object-name>CarbHeat</object-name>
  <object-name>CarbHeatBack</object-name>
  <object-name>CarbHeatRod</object-name>
 </animation>

 <animation>
  <name>ThrottleGroup</name>
  <object-name>Throttle</object-name>
  <object-name>ThrottleRod</object-name>
 </animation>

 <animation>
  <name>MixtureGroup</name>
  <object-name>Mixture</object-name>
  <object-name>MixtureRod</object-name>
 </animation>

 <animation>
  <name>FlapSwitchGroup</name>
  <object-name>FlapSwitch</object-name>
  <object-name>FlapSwitchRod</object-name>
 </animation>

 <animation>
  <name>ElectronicsGroup</name>
  <object-name>TaxiLightSwitch</object-name>
  <object-name>LandingLightSwitch</object-name>
  <object-name>PitotHeatSwitch</object-name>
  <object-name>NavLightSwitch</object-name>
  <object-name>BeaconSwitch</object-name>
  <object-name>StrobeSwitch</object-name>
<!--
  <object-name>ElectronicsLabels</object-name>
  <object-name>ElectronicsLabels2</object-name>
-->
 </animation>

 <animation>
  <name>ControlsGroup</name>
  <object-name>PanelInstruments</object-name>
  <object-name>ElectronicsGroup</object-name>
  <object-name>LeftYoke</object-name>
  <object-name>RightYoke</object-name>
  <object-name>CarbHeatGroup</object-name>
  <object-name>ThrottleGroup</object-name>
  <object-name>MixtureGroup</object-name>
  <object-name>FlapSwitchGroup</object-name>
  <object-name>TrimWheel</object-name>
 </animation>

 <animation>
  <type>range</type>
  <object-name>ControlsGroup</object-name>
  <min-m>0</min-m>
  <max-m>10.0</max-m>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>LeftYoke</object-name>
  <object-name>RightYoke</object-name>
  <property>/controls/elevator</property>
  <factor>-0.03</factor>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>LeftYoke</object-name>
  <property>/controls/aileron</property>
  <factor>-45</factor>
  <center>
   <x-m>-0.23</x-m>
   <y-m>-0.28</y-m>
   <z-m>-0.13</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>RightYoke</object-name>
  <property>/controls/aileron</property>
  <factor>-45</factor>
  <center>
   <x-m>-0.23</x-m>
   <y-m>0.28</y-m>
   <z-m>-0.13</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>CarbHeatGroup</object-name>
  <property>/controls/carb-heat</property>
  <factor>-0.08</factor>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>ThrottleGroup</object-name>
  <property>/controls/throttle</property>
  <factor>-0.10</factor>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>MixtureGroup</object-name>
  <property>/controls/mixture</property>
  <factor>-0.10</factor>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <property>/controls/flaps</property>
  <object-name>FlapSwitchGroup</object-name>
  <factor>60</factor>
  <offset-deg>-30</offset-deg>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.39</x-m>
   <y-m>0.19</y-m>
   <z-m>-0.25</z-m>
  </center>
 </animation>  

 <animation>
  <type>rotate</type>
  <object-name>TrimWheel</object-name>
  <property>/controls/elevator-trim</property>
  <factor>-360</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.41</x-m>
   <y-m>-0.04</y-m>
   <z-m>-0.46</z-m>
  </center>
 </animation>  

 <animation>
  <type>rotate</type>
  <object-name>TaxiLightSwitch</object-name>
  <property>/controls/lights/taxi</property>
  <factor>-55</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.363</x-m>
   <y-m>0</y-m>
   <z-m>-0.221</z-m>
  </center>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>LandingLightSwitch</object-name>
  <property>/controls/lights/landing</property>
  <factor>-55</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.363</x-m>
   <y-m>0</y-m>
   <z-m>-0.221</z-m>
  </center>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>PitotHeatSwitch</object-name>
  <property>/controls/pitot-heat</property>
  <factor>-55</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.363</x-m>
   <y-m>0</y-m>
   <z-m>-0.269</z-m>
  </center>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>NavLightSwitch</object-name>
  <property>/controls/lights/navigation</property>
  <factor>-55</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.363</x-m>
   <y-m>0</y-m>
   <z-m>-0.269</z-m>
  </center>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>BeaconSwitch</object-name>
  <property>/controls/lights/beacon</property>
  <factor>-55</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.363</x-m>
   <y-m>0</y-m>
   <z-m>-0.269</z-m>
  </center>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>StrobeSwitch</object-name>
  <property>/controls/lights/strobes</property>
  <factor>-55</factor>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
  <center>
   <x-m>-0.363</x-m>
   <y-m>0</y-m>
   <z-m>-0.269</z-m>
  </center>
 </animation>

 <!-- Interior -->

 <animation>
  <name>InteriorGroup</name>
  <object-name>Cabin</object-name>
  <object-name>Panel</object-name>
  <object-name>PilotSeat</object-name>
  <object-name>CopilotSeat</object-name>
  <object-name>BackSeat</object-name>
 </animation>

 <animation>
  <type>range</type>
  <object-name>InteriorGroup</object-name>
  <min-m>0</min-m>
  <max-m>50</max-m>
 </animation>

 <!-- Airframe -->

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

 <animation>
  <type>select</type>
  <object-name>Propeller.Slow</object-name>
  <condition>
   <and>
    <greater-than>
     <property>/engines/engine[0]/rpm</property>
     <value>190</value>
    </greater-than>
    <less-than>
     <property>/engines/engine[0]/rpm</property>
     <value>1200</value>
    </less-than>
   </and>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>Propeller.Fast</object-name>
  <condition>
   <greater-than>
    <property>/engines/engine[0]/rpm</property>
    <value>1200</value>
   </greater-than>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>LeftNavLightOn</object-name>
  <object-name>RightNavLightOn</object-name>
  <object-name>RearNavLightOn</object-name>
  <condition>
   <property>/controls/lights/navigation</property>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>LeftNavLightOff</object-name>
  <object-name>RightNavLightOff</object-name>
  <object-name>RearNavLightOff</object-name>
  <condition>
   <not>
    <property>/controls/lights/navigation</property>
   </not>
  </condition>
 </animation>

 <animation>
  <name>BeaconFlasher</name>
  <type>timed</type>
  <object-name>BeaconOff</object-name>
  <object-name>BeaconOn</object-name>
  <duration-sec>1.0</duration-sec>
 </animation>

 <animation>
  <type>select</type>
  <object-name>BeaconFlasher</object-name>
  <condition>
   <property>/controls/lights/beacon</property>
  </condition>
 </animation>

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

 <animation>
  <type>spin</type>
  <object-name>Propeller.Slow</object-name>
  <property>/engines/engine[0]/rpm</property>
  <factor>-0.1</factor>
  <center>
   <x-m>-1.77</x-m>
   <y-m>0</y-m>
   <z-m>-0.12</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>Propeller.Fast</object-name>
  <property>/engines/engine[0]/rpm</property>
  <factor>-0.001</factor>
  <center>
   <x-m>-1.77</x-m>
   <y-m>0</y-m>
   <z-m>-0.12</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>NoseWheel</object-name>
  <object-name>NoseWheelStrut</object-name>
  <property>/surface-positions/rudder-pos-norm</property>
  <factor>-30.0</factor>
  <center>
   <x-m>-1.36</x-m>
   <y-m>0</y-m>
   <z-m>-0.59</z-m>
  </center>
  <axis>
   <x>0.18</x>
   <y>0.05</y>
   <z>0.46</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>LeftAileron</object-name>
  <property>/surface-positions/left-aileron-pos-norm</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>20</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>1.1</x-m>
   <y-m>-1.96</y-m>
   <z-m>0.35</z-m>
  </center>
  <axis>
   <x>0.49</x>
   <y>2.65</y>
   <z>-0.03</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>RightAileron</object-name>
  <property>/surface-positions/right-aileron-pos-norm</property>
  <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>20</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.1</x-m>
   <y-m>1.96</y-m>
   <z-m>0.35</z-m>
  </center>
  <axis>
   <x>0.49</x>
   <y>-2.65</y>
   <z>-0.03</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>LeftFlap</object-name>
  <object-name>RightFlap</object-name>
  <property>/surface-positions/flap-pos-norm</property>
  <factor>0.15</factor>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.2</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>LeftFlap</object-name>
  <property>/surface-positions/flap-pos-norm</property>
  <factor>30</factor>
  <center>
   <x-m>0.76</x-m>
   <y-m>-0.53</y-m>
   <z-m>0.32</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>-0.1</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>RightFlap</object-name>
  <property>/surface-positions/flap-pos-norm</property>
  <factor>30</factor>
  <center>
   <x-m>0.76</x-m>
   <y-m>-0.53</y-m>
   <z-m>0.32</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.1</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>Elevators</object-name>
  <object-name>ElevatorTrimTab</object-name>
  <property>/surface-positions/elevator-pos-norm</property>
  <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>-28</dep>
   </entry>
   <entry>
    <ind>0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>1.0</ind>
    <dep>23</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>4.84</x-m>
   <y-m>0.0</y-m>
   <z-m>-0.17</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>ElevatorTrimTab</object-name>
  <property>/controls/elevator-trim</property>
  <factor>25</factor>
  <center>
   <x-m>5.06</x-m>
   <y-m>1.12</y-m>
   <z-m>-0.18</z-m>
  </center>
  <axis>
   <x>0.17</x>
   <y>-0.82</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>Rudder</object-name>
  <property>/surface-positions/rudder-pos-norm</property>
  <factor>17.5</factor>
  <center>
   <x-m>4.84</x-m>
   <y-m>0.0</y-m>
   <z-m>-.16</z-m>
  </center>
  <axis>
   <x>0.25</x>
   <y>0.0</y>
   <z>1.0</z>
  </axis>
 </animation>

</PropertyList>
