<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Author : Syd Adams Primus 1000 Autopilot Controller
     updated bt Helijah 2013                             -->
<PropertyList>

  <path>AP-control.ac</path>

  <animation>
    <object-name>APcontrol</object-name>
    <object-name>Pitch.wheel</object-name>
    <object-name>Roll.trim</object-name>
    <object-name>Lowbank.btn</object-name>
    <object-name>AP-on.btn</object-name>
    <object-name>YD-on.btn</object-name>
    <object-name>Low-on</object-name>
    <object-name>AP-on</object-name>
    <object-name>YD-on</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>APcontrol</object-name>
    <object-name>Pitch.wheel</object-name>
    <object-name>Roll.trim</object-name>
    <object-name>Lowbank.btn</object-name>
    <object-name>AP-on.btn</object-name>
    <object-name>YD-on.btn</object-name>
    <object-name>Low-on</object-name>
    <object-name>AP-on</object-name>
    <object-name>YD-on</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>APcontrol</object-name>
    <object-name>Pitch.wheel</object-name>
    <object-name>Roll.trim</object-name>
    <object-name>Lowbank.btn</object-name>
    <object-name>AP-on.btn</object-name>
    <object-name>YD-on.btn</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>Low-on</object-name>
    <object-name>AP-on</object-name>
    <object-name>YD-on</object-name>
    <emission>
      <red>   0 </red>
      <green> 2 </green>
      <blue>  0 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>AP-on</object-name>
    <condition>
      <not><property>autopilot/locks/passive-mode</property></not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>YD-on</object-name>
    <condition>
      <property>autopilot/locks/yaw-damper</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>Low-on</object-name>
    <condition>
      <property>instrumentation/flightdirector/bank-limit-switch</property>
    </condition>
  </animation>

  <!-- hotspots-->
  <animation>
    <type>pick</type>
    <object-name>AP-on.btn</object-name>
    <object-name>AP-on</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.toggle_autopilot("ap");</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>YD-on.btn</object-name>
    <object-name>YD-on</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.toggle_autopilot("yd");</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Lowbank.btn</object-name>
    <object-name>Low-on</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.toggle_autopilot("bank");</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Pitch.wheel</object-name>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.pitch_wheel(1);</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.pitch_wheel(-1);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Pitch.wheel</object-name>
    <property>autopilot/settings/target-pitch-deg</property>
    <center>
      <x-m> -0.01141 </x-m>
      <y-m> -0.04148 </y-m>
      <z-m> -0.00014 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>
  <!--
  <animation>
    <type>pick</type>
    <object-name>Roll.trim</object-name>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.roll_knob(-1);</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.roll_knob(1);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Roll.trim</object-name>
    <property>?????</property>
    <center>
      <x-m>  0.01307 </x-m>
      <y-m>  0.04122 </y-m>
      <z-m> -0.00201 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>
  -->
</PropertyList>
