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

<!-- 777-200 - Justin Smithies - Syd Adams - Autopilot Control Panel -->
<PropertyList>

  <path>APpanel.ac</path>

  <animation>
    <object-name>AP.panel</object-name>
    <object-name>AP.panel2</object-name>
    <object-name>fondgris</object-name>
    <object-name>APletters</object-name>
    <object-name>IAS.knob</object-name>
    <object-name>SPD.knob</object-name>
    <object-name>BLimit.knob</object-name>
    <object-name>HDG.knob</object-name>
    <object-name>HDG.sel</object-name>
    <object-name>SPD.dec</object-name>
    <object-name>SPD.inc</object-name>
    <object-name>IAS.dwn</object-name>
    <object-name>IAS.up</object-name>
    <object-name>Pitchwheel.dec</object-name>
    <object-name>Pitchwheel.inc</object-name>
    <object-name>ALTmode.knob</object-name>
    <object-name>ALT.knob</object-name>
    <object-name>ALTmode.auto</object-name>
    <object-name>ALTmode.1000</object-name>
    <object-name>ALT.sel</object-name>
    <object-name>HDG.inc</object-name>
    <object-name>HDG.dec</object-name>
    <object-name>Bank.dec</object-name>
    <object-name>Bank.inc</object-name>
    <object-name>MACH.toggle</object-name>
    <object-name>TRK.toggle</object-name>
    <object-name>FPA.toggle</object-name>
    <object-name>FD-on</object-name>
    <object-name>FDtoggle</object-name>

    <object-name>AP.btn</object-name>
    <object-name>CLB.btn</object-name>
    <object-name>AT.btn</object-name>
    <object-name>LNAV.btn</object-name>
    <object-name>VNAV.btn</object-name>
    <object-name>FLCH.btn</object-name>
    <object-name>HDG.btn</object-name>
    <object-name>VS.btn</object-name>
    <object-name>ALT.btn</object-name>
    <object-name>LOC.btn</object-name>
    <object-name>APP.btn</object-name>

    <object-name>AP.disengage</object-name>
    <object-name>zonebarre</object-name>
    <object-name>THARM.switch</object-name>
    <object-name>THARM1.switch</object-name>
    <object-name>IasMach.btn</object-name>
    <object-name>HdgTrk.btn</object-name>
    <object-name>VsFpa.btn</object-name>
    <object-name>lampe</object-name>

    <object-name>APtoggle</object-name>
    <object-name>ATtoggle</object-name>
    <object-name>LNAV.toggle</object-name>
    <object-name>VNAV.toggle</object-name>
    <object-name>FLCH.toggle</object-name>
    <object-name>HDGtoggle</object-name>
    <object-name>VS.toggle</object-name>
    <object-name>ALTtoggle</object-name>
    <object-name>APP.toggle</object-name>
    <object-name>LOC.toggle</object-name>

    <object-name>mach.ind</object-name>
    <object-name>MACH.led1</object-name>
    <object-name>MACH.led2</object-name>
    <object-name>MACH.led3</object-name>
    <object-name>ias.ind</object-name>
    <object-name>IAS.led1</object-name>
    <object-name>IAS.led2</object-name>
    <object-name>IAS.led3</object-name>
    <object-name>trk.ind</object-name>
    <object-name>TRK.led1</object-name>
    <object-name>TRK.led2</object-name>
    <object-name>TRK.led3</object-name>
    <object-name>hdg.ind</object-name>
    <object-name>HDG.led1</object-name>
    <object-name>HDG.led2</object-name>
    <object-name>HDG.led3</object-name>
    <object-name>vs.ind</object-name>
    <object-name>VS.led1</object-name>
    <object-name>VS.led2</object-name>
    <object-name>VS.led3</object-name>
    <object-name>VS.ledminus</object-name>
    <object-name>APvs.minus2</object-name>
    <object-name>FPA.ledminus</object-name>
    <object-name>fpa.ind</object-name>
    <object-name>FPA.led1</object-name>
    <object-name>FPA.led2</object-name>
    <object-name>ALT.led1</object-name>
    <object-name>ALT.led2</object-name>
    <object-name>ALT.led3</object-name>
    <object-name>ALT.led4</object-name>
    <object-name>ALT.led5</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>AP.panel</object-name>
    <object-name>AP.panel2</object-name>
    <object-name>fondgris</object-name>
    <object-name>APletters</object-name>
    <object-name>IAS.knob</object-name>
    <object-name>SPD.knob</object-name>
    <object-name>BLimit.knob</object-name>
    <object-name>HDG.knob</object-name>
    <object-name>HDG.sel</object-name>
    <object-name>SPD.dec</object-name>
    <object-name>SPD.inc</object-name>
    <object-name>IAS.dwn</object-name>
    <object-name>IAS.up</object-name>
    <object-name>Pitchwheel.dec</object-name>
    <object-name>Pitchwheel.inc</object-name>
    <object-name>ALTmode.knob</object-name>
    <object-name>ALT.knob</object-name>
    <object-name>ALTmode.auto</object-name>
    <object-name>ALTmode.1000</object-name>
    <object-name>ALT.sel</object-name>
    <object-name>HDG.inc</object-name>
    <object-name>HDG.dec</object-name>
    <object-name>Bank.dec</object-name>
    <object-name>Bank.inc</object-name>
    <object-name>MACH.toggle</object-name>
    <object-name>TRK.toggle</object-name>
    <object-name>FPA.toggle</object-name>
    <object-name>FD-on</object-name>
    <object-name>FDtoggle</object-name>
    <object-name>AP.btn</object-name>
    <object-name>CLB.btn</object-name>
    <object-name>AT.btn</object-name>
    <object-name>LNAV.btn</object-name>
    <object-name>VNAV.btn</object-name>
    <object-name>FLCH.btn</object-name>
    <object-name>HDG.btn</object-name>
    <object-name>VS.btn</object-name>
    <object-name>ALT.btn</object-name>
    <object-name>LOC.btn</object-name>
    <object-name>APP.btn</object-name>
    <object-name>AP.disengage</object-name>
    <object-name>zonebarre</object-name>
    <object-name>THARM.switch</object-name>
    <object-name>THARM1.switch</object-name>
    <object-name>IasMach.btn</object-name>
    <object-name>HdgTrk.btn</object-name>
    <object-name>VsFpa.btn</object-name>
    <object-name>lampe</object-name>
    <object-name>APtoggle</object-name>
    <object-name>ATtoggle</object-name>
    <object-name>LNAV.toggle</object-name>
    <object-name>VNAV.toggle</object-name>
    <object-name>FLCH.toggle</object-name>
    <object-name>HDGtoggle</object-name>
    <object-name>VS.toggle</object-name>
    <object-name>ALTtoggle</object-name>
    <object-name>APP.toggle</object-name>
    <object-name>LOC.toggle</object-name>
    <object-name>mach.ind</object-name>
    <object-name>MACH.led1</object-name>
    <object-name>MACH.led2</object-name>
    <object-name>MACH.led3</object-name>
    <object-name>ias.ind</object-name>
    <object-name>IAS.led1</object-name>
    <object-name>IAS.led2</object-name>
    <object-name>IAS.led3</object-name>
    <object-name>trk.ind</object-name>
    <object-name>TRK.led1</object-name>
    <object-name>TRK.led2</object-name>
    <object-name>TRK.led3</object-name>
    <object-name>hdg.ind</object-name>
    <object-name>HDG.led1</object-name>
    <object-name>HDG.led2</object-name>
    <object-name>HDG.led3</object-name>
    <object-name>vs.ind</object-name>
    <object-name>VS.led1</object-name>
    <object-name>VS.led2</object-name>
    <object-name>VS.led3</object-name>
    <object-name>VS.ledminus</object-name>
    <object-name>APvs.minus2</object-name>
    <object-name>FPA.ledminus</object-name>
    <object-name>fpa.ind</object-name>
    <object-name>FPA.led1</object-name>
    <object-name>FPA.led2</object-name>
    <object-name>ALT.led1</object-name>
    <object-name>ALT.led2</object-name>
    <object-name>ALT.led3</object-name>
    <object-name>ALT.led4</object-name>
    <object-name>ALT.led5</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>APletters</object-name>
    <object-name>mach.ind</object-name>
    <object-name>MACH.led1</object-name>
    <object-name>MACH.led2</object-name>
    <object-name>MACH.led3</object-name>
    <object-name>ias.ind</object-name>
    <object-name>IAS.led1</object-name>
    <object-name>IAS.led2</object-name>
    <object-name>IAS.led3</object-name>
    <object-name>trk.ind</object-name>
    <object-name>TRK.led1</object-name>
    <object-name>TRK.led2</object-name>
    <object-name>TRK.led3</object-name>
    <object-name>hdg.ind</object-name>
    <object-name>HDG.led1</object-name>
    <object-name>HDG.led2</object-name>
    <object-name>HDG.led3</object-name>
    <object-name>vs.ind</object-name>
    <object-name>VS.led1</object-name>
    <object-name>VS.led2</object-name>
    <object-name>VS.led3</object-name>
    <object-name>VS.ledminus</object-name>
    <object-name>APvs.minus2</object-name>
    <object-name>FPA.ledminus</object-name>
    <object-name>fpa.ind</object-name>
    <object-name>FPA.led1</object-name>
    <object-name>FPA.led2</object-name>
    <object-name>ALT.led1</object-name>
    <object-name>ALT.led2</object-name>
    <object-name>ALT.led3</object-name>
    <object-name>ALT.led4</object-name>
    <object-name>ALT.led5</object-name>
    <object-name>APtoggle</object-name>
    <object-name>ATtoggle</object-name>
    <object-name>LNAV.toggle</object-name>
    <object-name>VNAV.toggle</object-name>
    <object-name>FLCH.toggle</object-name>
    <object-name>HDGtoggle</object-name>
    <object-name>VS.toggle</object-name>
    <object-name>ALTtoggle</object-name>
    <object-name>APP.toggle</object-name>
    <object-name>LOC.toggle</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>AP.panel2</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.60 </red>
      <green> 0.60 </green>
      <blue>  0.60 </blue>
    </emission>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>BLimit.knob</object-name>
    <property>instrumentation/afds/inputs/bank-limit-switch</property>
    <factor> -20 </factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.007 </y-m>
      <z-m> -0.006 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>IAS.knob</object-name>
    <property>instrumentation/afds/inputs/speed-src</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> 122 </dep></entry>
      <entry><ind> 2 </ind><dep> 188 </dep></entry>
      <entry><ind> 3 </ind><dep> 239 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.133 </y-m>
      <z-m> -0.018 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>ALTmode.knob</object-name>
    <property>instrumentation/afds/inputs/alt-knob</property>
    <factor>100</factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m>  0.135 </y-m>
      <z-m> -0.007 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>FDtoggle</object-name>
    <property>instrumentation/afds/inputs/FD</property>
    <factor> -30 </factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.207 </y-m>
      <z-m> -0.020 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>THARM.switch</object-name>
    <property>instrumentation/afds/inputs/at-armed</property>
    <factor> -30 </factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.179 </y-m>
      <z-m>  0.025 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>THARM1.switch</object-name>
    <property>instrumentation/afds/inputs/at-armed[1]</property>
    <factor> -30 </factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.179 </y-m>
      <z-m>  0.025 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>AP.disengage</object-name>
    <property>instrumentation/afds/inputs/AP-disengage</property>
    <factor> 0.011 </factor>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z> -1 </z>
    </axis>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>HDGtoggle</object-name>
    <condition>
      <equals>
        <property>instrumentation/afds/ap-modes/roll-mode</property>
        <value>HDG HOLD</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>LNAV.toggle</object-name>
    <condition>
      <or>
        <equals>
          <property>instrumentation/afds/ap-modes/roll-mode</property>
          <value>LNAV</value>
        </equals>
        <equals>
          <property>instrumentation/afds/ap-modes/roll-mode-arm</property>
          <value>LNAV</value>
        </equals>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>ALTtoggle</object-name>
    <condition>
      <equals>
        <property>instrumentation/afds/ap-modes/pitch-mode</property>
        <value>ALT</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>ATtoggle</object-name>
    <condition>
      <not-equals>
        <property>instrumentation/afds/ap-modes/speed-mode</property>
        <value></value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>VNAV.toggle</object-name>
    <condition>
      <or>
        <equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV ALT</value>
        </equals>
        <equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV SPD</value>
        </equals>
        <equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV PTH</value>
        </equals>
        <equals>
          <property>instrumentation/afds/ap-modes/pitch-mode-arm</property>
          <value>VNAV</value>
        </equals>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>FLCH.toggle</object-name>
    <condition>
      <equals>
        <property>instrumentation/afds/ap-modes/pitch-mode</property>
        <value>FLCH SPD</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>LOC.toggle</object-name>
    <condition>
      <or>
        <equals>
          <property>instrumentation/afds/ap-modes/roll-mode</property>
          <value>LOC</value>
        </equals>
        <property>instrumentation/afds/inputs/loc-armed</property>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>APP.toggle</object-name>
    <condition>
      <or>
        <equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>G/S</value>
        </equals>
        <property>instrumentation/afds/inputs/gs-armed</property>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>VS.toggle</object-name>
    <condition>
    <or>
      <equals>
        <property>instrumentation/afds/ap-modes/pitch-mode</property>
        <value>V/S</value>
      </equals>
      <equals>
        <property>instrumentation/afds/ap-modes/pitch-mode</property>
        <value>FPA</value>
        </equals>
      </or>
    </condition>
  </animation>

  <!-- LED displays-->

  <!-- IAS/MACH -->
  <animation>
    <type>select</type>
    <object-name>ias.ind</object-name>
    <object-name>IAS.led1</object-name>
    <object-name>IAS.led2</object-name>
    <object-name>IAS.led3</object-name>
    <condition>
      <and>
        <property>/systems/electrical/outputs/avionics</property>
        <not><property>instrumentation/afds/inputs/ias-mach-selected</property></not>
        <not-equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV ALT</value>
        </not-equals>
        <not-equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV SPD</value>
        </not-equals>
        <or>
          <not-equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>VNAV PTH</value>
          </not-equals>
          <and>
            <equals>
              <property>instrumentation/afds/ap-modes/pitch-mode</property>
              <value>VNAV PTH</value>
            </equals>
            <property>instrumentation/afds/settings/manual-intervention</property>
          </and>
        </or>
      </and>
    </condition>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>IAS.led1</object-name>
    <property>autopilot/settings/target-speed-kt</property>
    <factor> 0.001 </factor>
    <step> 100 </step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>IAS.led2</object-name>
    <property>autopilot/settings/target-speed-kt</property>
    <factor>0.01</factor>
    <step>10</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>IAS.led3</object-name>
    <property>autopilot/settings/target-speed-kt</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>mach.ind</object-name>
    <object-name>MACH.led1</object-name>
    <object-name>MACH.led2</object-name>
    <object-name>MACH.led3</object-name>
    <condition>
      <and>
        <property>/systems/electrical/outputs/avionics</property>
        <property>instrumentation/afds/inputs/ias-mach-selected</property>
        <not-equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV ALT</value>
        </not-equals>
        <not-equals>
          <property>instrumentation/afds/ap-modes/pitch-mode</property>
          <value>VNAV SPD</value>
        </not-equals>
        <or>
          <not-equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>VNAV PTH</value>
          </not-equals>
          <and>
            <equals>
              <property>instrumentation/afds/ap-modes/pitch-mode</property>
              <value>VNAV PTH</value>
            </equals>
            <property>instrumentation/afds/settings/manual-intervention</property>
          </and>
        </or>
      </and>
    </condition>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MACH.led1</object-name>
    <property>autopilot/settings/target-speed-mach</property>
    <factor>1</factor>
    <step>0.1</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MACH.led2</object-name>
    <property>autopilot/settings/target-speed-mach</property>
    <factor>10.0</factor>
    <step>0.01</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MACH.led3</object-name>
    <property>autopilot/settings/target-speed-mach</property>
    <factor>100.0</factor>
    <step>0.001</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <!-- HDG/TRK -->
  <animation>
    <type>select</type>
    <object-name>hdg.ind</object-name>
    <object-name>HDG.led1</object-name>
    <object-name>HDG.led2</object-name>
    <object-name>HDG.led3</object-name>
    <condition>
      <and>
        <property>/systems/electrical/outputs/avionics</property>
        <not>
          <property>instrumentation/afds/inputs/hdg-trk-selected</property>
        </not>
      </and>
    </condition>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>HDG.led1</object-name>
    <property>autopilot/settings/heading-bug-deg</property>
    <factor>0.001</factor>
    <step>100</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>HDG.led2</object-name>
    <property>autopilot/settings/heading-bug-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
		<type>textranslate</type>
		<object-name>HDG.led3</object-name>
		<property>autopilot/settings/heading-bug-deg</property>
		<factor>0.1</factor>
		<step>1</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>trk.ind</object-name>
		<object-name>TRK.led1</object-name>
		<object-name>TRK.led2</object-name>
		<object-name>TRK.led3</object-name>
		<condition>
			<and>
				<property>/systems/electrical/outputs/avionics</property>
				<property>instrumentation/afds/inputs/hdg-trk-selected</property>
			</and>
		</condition>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>TRK.led1</object-name>
		<property>autopilot/settings/track-bug-deg</property>
		<factor>0.001</factor>
		<step>100</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>TRK.led2</object-name>
		<property>autopilot/settings/track-bug-deg</property>
		<factor>0.01</factor>
		<step>10</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>TRK.led3</object-name>
		<property>autopilot/settings/track-bug-deg</property>
		<factor>0.1</factor>
		<step>1</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

<!-- VS/FPA -->
	<animation>
		<type>select</type>
		<object-name>vs.ind</object-name>
		<condition>
			<and>
				<property>/systems/electrical/outputs/avionics</property>
				<not>
					<property>instrumentation/afds/inputs/vs-fpa-selected</property>
				</not>
			</and>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>VS.led1</object-name>
		<object-name>VS.led2</object-name>
		<object-name>VS.led3</object-name>
		<object-name>VS.led4</object-name>
		<condition>
			<and>
				<property>/systems/electrical/outputs/avionics</property>
				<equals>
					<property>instrumentation/afds/ap-modes/pitch-mode</property>
					<value>V/S</value>
				</equals>
				<not>
					<property>instrumentation/afds/inputs/vs-fpa-selected</property>
				</not>
				<equals>
					<property>instrumentation/afds/ap-modes/pitch-mode</property>
					<value>V/S</value>
				</equals>
			</and>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>VS.ledminus</object-name>
		<condition>
			<and>
			   <not>
					<property>instrumentation/afds/inputs/vs-fpa-selected</property>
			   </not>
			<less-than>
				<property>autopilot/settings/vertical-speed-fpm</property>
				<value>0</value>
			</less-than>
				<equals>
					<property>instrumentation/afds/ap-modes/pitch-mode</property>
					<value>V/S</value>
				</equals>
			</and>
		</condition>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>VS.led1</object-name>
		<property>instrumentation/afds/settings/vs-display</property>
		<factor>0.0001</factor>
		<step>1000</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>VS.led2</object-name>
		<property>instrumentation/afds/settings/vs-display</property>
		<factor>0.001</factor>
		<step>100</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>VS.led3</object-name>
		<property>instrumentation/afds/settings/vs-display</property>
		<factor>0.01</factor>
		<step>10</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>VS.led4</object-name>
		<property>instrumentation/afds/settings/vs-display</property>
		<factor>0.1</factor>
		<step>1</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>fpa.ind</object-name>
		<condition>
			<and>
				<property>/systems/electrical/outputs/avionics</property>
				<property>instrumentation/afds/inputs/vs-fpa-selected</property>
			</and>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>FPA.led1</object-name>
		<object-name>FPA.led2</object-name>
		<condition>
			<and>
				<property>/systems/electrical/outputs/avionics</property>
				<property>instrumentation/afds/inputs/vs-fpa-selected</property>
				<equals>
					<property>instrumentation/afds/ap-modes/pitch-mode</property>
					<value>FPA</value>
				</equals>
			</and>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>FPA.ledminus</object-name>
		<condition>
			<property>instrumentation/afds/settings/fpa-display</property>
			<and>
				<property>instrumentation/afds/inputs/vs-fpa-selected</property>
			<less-than>
				<property>autopilot/settings/flight-path-angle</property>
				<value>0</value>
			</less-than>
				<equals>
					<property>instrumentation/afds/ap-modes/pitch-mode</property>
					<value>FPA</value>
				</equals>
			</and>
		</condition>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>FPA.led1</object-name>
		<property>instrumentation/afds/settings/fpa-display</property>
		<factor>0.1</factor>
		<step>1</step>
		<bias>0.05</bias>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>FPA.led2</object-name>
		<property>instrumentation/afds/settings/fpa-display</property>
		<factor>1.0</factor>
		<step>0.10</step>
		<bias>0.05</bias>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

<!-- Altitude -->

	<animation>
		<type>select</type>
		<object-name>alt.ind</object-name>
		<object-name>ALT.led1</object-name>
		<object-name>ALT.led2</object-name>
		<object-name>ALT.led3</object-name>
		<object-name>ALT.led4</object-name>
		<object-name>ALT.led5</object-name>
		<condition>
			<property>/systems/electrical/outputs/avionics</property>
		</condition>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>ALT.led1</object-name>
		<property>autopilot/settings/counter-set-altitude-ft</property>
		<factor>0.00001</factor>
		<step>10000</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>ALT.led2</object-name>
		<property>autopilot/settings/counter-set-altitude-ft</property>
		<factor>0.0001</factor>
		<step>1000</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>ALT.led3</object-name>
		<property>autopilot/settings/counter-set-altitude-ft</property>
		<factor>0.001</factor>
		<step>100</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>ALT.led4</object-name>
		<property>autopilot/settings/counter-set-altitude-ft</property>
		<factor>0.01</factor>
		<step>10</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>ALT.led5</object-name>
		<property>autopilot/settings/counter-set-altitude-ft</property>
		<factor>0.1</factor>
		<step>1</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>



  <!-- ###########   HOTSPOTS ########### -->
  <animation>
    <type>pick</type>
    <object-name>MACH.toggle</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <greater-than-equals>
            <property>instrumentation/airspeed-indicator/indicated-mach</property>
            <value>0.40</value>
          </greater-than-equals>
        </condition>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/ias-mach-selected</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>TRK.toggle</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/hdg-trk-selected</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>FPA.toggle</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/vs-fpa-selected</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(3);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>THARM.switch</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/at-armed</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(3);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>THARM1.switch</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/at-armed[1]</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AP.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/AP</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(3);
          autosystem.afds.input(3,3);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>FD-on</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/FD</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(1);
          autosystem.afds.input(3,2);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HDG.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(0,2);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HDG.sel</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(0,1);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>LNAV.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(3);autosystem.afds.input(0,3);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>VNAV.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(1,5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AT.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(3);autosystem.afds.input(2,5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>FLCH.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(1,8);</script>
      </binding>
    </action>
  </animation>

  <!--
  <animation>
    <type>pick</type>
    <object-name>CLB.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(3);autosystem.afds.input(2,3);</script>
      </binding>
    </action>
  </animation
  -->

  <animation>
    <type>pick</type>
    <object-name>VS.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(1,2);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALT.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(3);autosystem.afds.input(1,1);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>LOC.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(3,0);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>APP.btn</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(3,1);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AP.disengage</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/afds/inputs/AP-disengage</property>
      </binding>
      <binding>
        <command>property-assign</command>
        <property>instrumentation/afds/inputs/AP</property>
        <value>0</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(1);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Pitchwheel.dec</object-name>
    <object-name>Pitchwheel.inc</object-name>
    <visible>false</visible>
    <action>
      <button>0</button> <!--  left button -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>V/S</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/vertical-speed-fpm</property>
        <step>-100</step>
        <min>-8000</min>
        <max>6000</max>
      </binding>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>FPA</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/flight-path-angle</property>
        <step>-0.1</step>
        <min>-9.9</min>
        <max>9.9</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(5);
          autosystem.afds.input(1,255);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Pitchwheel.dec</object-name>
    <object-name>Pitchwheel.inc</object-name>
    <visible>false</visible>
    <action>
      <button>1</button> <!--  center button -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>V/S</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/vertical-speed-fpm</property>
        <step>100</step>
        <min>-8000</min>
        <max>6000</max>
      </binding>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>FPA</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/flight-path-angle</property>
        <step>0.1</step>
        <min>-9.9</min>
        <max>9.9</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(5);
          autosystem.afds.input(1,255);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Pitchwheel.dec</object-name>
    <object-name>Pitchwheel.inc</object-name>
    <visible>false</visible>
    <action>
      <button>3</button> <!--  scroll up -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>V/S</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/vertical-speed-fpm</property>
        <step>-100</step>
        <min>-8000</min>
        <max>6000</max>
      </binding>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>FPA</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/flight-path-angle</property>
        <step>-0.1</step>
        <min>-9.9</min>
        <max>9.9</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(5);
          autosystem.afds.input(1,255);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Pitchwheel.dec</object-name>
    <object-name>Pitchwheel.inc</object-name>
    <visible>false</visible>
    <action>
      <button>4</button> <!--  scroll down -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <equals>
           <property>instrumentation/afds/ap-modes/pitch-mode</property>
           <value>V/S</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/vertical-speed-fpm</property>
        <step>100</step>
        <min>-8000</min>
        <max>6000</max>
      </binding>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>FPA</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/flight-path-angle</property>
        <step>0.1</step>
        <min>-9.9</min>
        <max>9.9</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(5);
          autosystem.afds.input(1,255);
        </script>
      </binding>
    </action>
  </animation>

  <!-- Continental system manual, Sec. 6.4, Page 32:
       MCP/SPD range is 100 - 399 KIAS, 0.40 - 0.95 MACH -->
  <animation>
    <type>pick</type>
    <object-name>SPD.dec</object-name>
    <object-name>SPD.inc</object-name>
    <object-name>IAS.dwn</object-name>
    <object-name>IAS.up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button> <!--  left button -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/ias-mach-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-kt</property>
        <step>1</step>
        <min>100</min>
        <max>390</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/ias-mach-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-mach</property>
        <step>0.001</step>
        <min>0.4</min>
        <max>0.95</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>SPD.dec</object-name>
    <object-name>SPD.inc</object-name>
    <object-name>IAS.dwn</object-name>
    <object-name>IAS.up</object-name>
    <visible>false</visible>
    <action>
      <button>1</button> <!--  center button -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/ias-mach-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-kt</property>
        <step>-1</step>
        <min>100</min>
        <max>390</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/ias-mach-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-mach</property>
        <step>-0.001</step>
        <min>0.4</min>
        <max>0.95</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>SPD.knob</object-name>
    <visible>true</visible>
    <action>
      <button>0</button> <!--  manual intervention -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <equals>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <value>VNAV PTH</value>
          </equals>
        </condition>
        <command>property-toggle</command>
        <property>instrumentation/afds/settings/manual-intervention</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          controls.click(3);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>SPD.knob</object-name>
    <object-name>SPD.dec</object-name>
    <object-name>SPD.inc</object-name>
    <object-name>IAS.dwn</object-name>
    <object-name>IAS.up</object-name>
    <action>
      <button>3</button> <!--  scroll up -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/ias-mach-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-kt</property>
        <step>1</step>
        <min>100</min>
        <max>390</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/ias-mach-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-mach</property>
        <step>0.001</step>
        <min>0.4</min>
        <max>0.95</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>SPD.knob</object-name>
    <object-name>SPD.dec</object-name>
    <object-name>SPD.inc</object-name>
    <object-name>IAS.dwn</object-name>
    <object-name>IAS.up</object-name>
    <action>
      <button>4</button> <!--  scroll down -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
	  <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not>
              <property>instrumentation/afds/inputs/ias-mach-selected</property>
            </not>
	  </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-kt</property>
        <step>-1</step>
        <min>100</min>
        <max>390</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/ias-mach-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/target-speed-mach</property>
        <step>-0.001</step>
        <min>0.4</min>
        <max>0.95</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HDG.inc</object-name>
    <object-name>HDG.dec</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/hdg-trk-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step type="int">1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/hdg-trk-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/track-bug-deg</property>
        <step type="int">1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
      <command>nasal</command>
      <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HDG.inc</object-name>
    <object-name>HDG.dec</object-name>
    <visible>false</visible>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/hdg-trk-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step type="int">-1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/hdg-trk-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/track-bug-deg</property>
        <step type="int">-1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HDG.inc</object-name>
    <object-name>HDG.dec</object-name>
    <object-name>HDG.sel</object-name>
    <object-name>HDG.knob</object-name>
    <action>
      <button>3</button> <!--  scroll up -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/hdg-trk-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step type="int">1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/hdg-trk-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/track-bug-deg</property>
        <step type="int">1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HDG.inc</object-name>
    <object-name>HDG.dec</object-name>
    <object-name>HDG.sel</object-name>
    <object-name>HDG.knob</object-name>
    <action>
      <button>4</button> <!--  scroll down -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/hdg-trk-selected</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step type="int">-1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/hdg-trk-selected</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/track-bug-deg</property>
        <step type="int">-1</step>
        <min type="int">1</min>
        <max type="int">361</max>
        <wrap type="bool">true</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Bank.inc</object-name>
    <object-name>Bank.dec</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <property>/systems/electrical/outputs/avionics</property>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/afds/inputs/bank-limit-switch</property>
        <step>1</step>
        <min>0</min>
        <max>5</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(2);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Bank.inc</object-name>
    <object-name>Bank.dec</object-name>
    <visible>false</visible>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <property>/systems/electrical/outputs/avionics</property>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/afds/inputs/bank-limit-switch</property>
        <step>-1</step>
        <min>0</min>
        <max>5</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(2);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>BLimit.knob</object-name>
    <visible>true</visible>
    <action>
      <button>4</button> <!--  scroll down -->
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/afds/inputs/bank-limit-switch</property>
        <step>-1</step>
        <min>0</min>
        <max>5</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(2);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>BLimit.knob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button> <!--  scroll up -->
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/afds/inputs/bank-limit-switch</property>
        <step>1</step>
        <min>0</min>
        <max>5</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(2);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALTmode.auto</object-name>
    <object-name>ALTmode.1000</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>instrumentation/afds/inputs/alt-knob</property>
        <value>1</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALTmode.knob</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>instrumentation/afds/inputs/alt-knob</property>
        <value>1</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALTmode.1000</object-name>
    <object-name>ALTmode.auto</object-name>
    <object-name>ALTmode.knob</object-name>
    <action>
      <button>1</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>instrumentation/afds/inputs/alt-knob</property>
        <value>0</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALTmode.auto</object-name>
    <object-name>ALTmode.1000</object-name>
    <object-name>ALTmode.knob</object-name>
    <action>
      <button>3</button> <!--  scroll up -->
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>instrumentation/afds/inputs/alt-knob</property>
        <value>1</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALTmode.auto</object-name>
    <object-name>ALTmode.1000</object-name>
    <object-name>ALTmode.knob</object-name>
    <action>
      <button>4</button> <!--  scroll down -->
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>instrumentation/afds/inputs/alt-knob</property>
        <value>0</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALT.knob</object-name>
    <visible>true</visible>
    <action>
      <button>0</button> <!--  left button -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <or>
            <equals>
              <property>instrumentation/afds/ap-modes/pitch-mode</property>
              <value>VNAV ALT</value>
            </equals>
            <equals>
              <property>instrumentation/afds/ap-modes/pitch-mode</property>
              <value>VNAV SPD</value>
            </equals>
            <equals>
              <property>instrumentation/afds/ap-modes/pitch-mode</property>
              <value>VNAV PTH</value>
            </equals>
          </or>
        </condition>
        <command>nasal</command>
        <script>controls.click(4);autosystem.afds.input(1,4);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALT.knob</object-name>
    <visible>true</visible>
    <action>
      <button>4</button> <!--  scroll down -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/alt-knob</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>-100</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/alt-knob</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>-1000</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALT.knob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button> <!--  scroll up -->
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/alt-knob</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>100</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/alt-knob</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>1000</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALT.sel</object-name>
    <visible>false</visible>
    <action>
      <button>0</button> <!--  left button -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/alt-knob</property></not>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>100</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/alt-knob</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>1000</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ALT.sel</object-name>
    <visible>false</visible>
    <action>
      <button>1</button> <!--  center button  -->
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <not><property>instrumentation/afds/inputs/alt-knob</property></not>
        </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>-100</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <condition>
          <and>
            <property>/systems/electrical/outputs/avionics</property>
            <property>instrumentation/afds/inputs/alt-knob</property>
          </and>
        </condition>
        <command>property-adjust</command>
        <property>autopilot/settings/counter-set-altitude-ft</property>
        <step>-1000</step>
        <min>0</min>
        <max>50000</max>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.click(5);</script>
      </binding>
    </action>
  </animation>

</PropertyList>
