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

<PropertyList>

<path>APpanel.ac</path>

    <effect>
        <inherits-from>Effects/model-transparent</inherits-from>
        <object-name>APletters</object-name>
        <object-name>ias.ind</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.led1</object-name>
        <object-name>IAS.led2</object-name>
        <object-name>IAS.led3</object-name>
        <object-name>hdg.ind</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.led1</object-name>
        <object-name>HDG.led2</object-name>
        <object-name>HDG.led3</object-name>
        <object-name>vs.ind</object-name>
        <object-name>fpa.ind</object-name>
        <object-name>VS.ledminus</object-name>
        <object-name>VS.led1</object-name>
        <object-name>VS.led2</object-name>
        <object-name>VS.led3</object-name>
        <object-name>VS.led4</object-name>
        <object-name>FPA.ledminus</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>
    </effect>

    <animation>
        <type>rotate</type>
        <object-name>BLimit.knob</object-name>
        <object-name>BLimit.knob.001</object-name>
        <property>instrumentation/afds/inputs/bank-limit-switch</property>
        <factor>-30.0</factor>
        <center>
            <x-m>0.01733</x-m>
            <y-m>-0.01295</y-m>
            <z-m>-0.007311</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>SPEED.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.01043</x-m>
            <y-m>-0.1370</y-m>
            <z-m>-0.01980</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>
        <object-name>ALTmode.knob.001</object-name>
        <property>instrumentation/afds/inputs/alt-knob</property>
        <factor>100</factor>
        <center>
            <x-m>0.01406</x-m>
            <y-m>0.1315</y-m>
            <z-m>-0.007567</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.0</factor>
        <center>
            <x-m>0</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.0</factor>
        <center>
            <x-m>0</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.0</factor>
        <center>
            <x-m>0</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>material</type>
        <object-name>APletters</object-name>
        <condition>
             <greater-than>
                <property>systems/electrical/CPT-FLT-INST</property>
                <value>24.0</value>
             </greater-than>
        </condition>
        <emission>
            <red>0.2</red>
            <green>0.6</green>
            <blue>0.2</blue>
            <factor-prop>controls/lighting/panel-flood-intencity</factor-prop>
        </emission>
    </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>
            <property>instrumentation/afds/inputs/AP</property>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>HDGtoggle</object-name>
        <condition>
            <or>
            <equals>
                <property>instrumentation/afds/ap-modes/roll-mode</property>
                <value>HDG HOLD</value>
            </equals>
                <equals>
                    <property>instrumentation/afds/ap-modes/roll-mode</property>
                    <value>TRK HOLD</value>
                </equals>
            </or>
        </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>
            <and>
            <or>
                <equals>
                    <property>instrumentation/afds/ap-modes/roll-mode</property>
                    <value>LOC</value>
                </equals>
                <property>instrumentation/afds/inputs/loc-armed</property>
            </or>
            <not>
            <or>
                <equals>
                    <property>instrumentation/afds/ap-modes/pitch-mode</property>
                    <value>G/S</value>
                </equals>
                <property>instrumentation/afds/inputs/gs-armed</property>
            </or>
            </not>
            </and>
        </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/efis/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/efis/hdg-trk-selected</property>
            </and>
        </condition>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>TRK.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>TRK.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>TRK.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>

<!-- 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>
        <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>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>instrumentation/efis/hdg-trk-selected</property>
            </binding>
            <binding>
                <command>property-toggle</command>
                <property>instrumentation/efis[1]/hdg-trk-selected</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                    controls.click(4);
                    b777.afds.input(4,0);
                </script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>FPA.toggle</object-name>
        <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>
        <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>
        <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>
        </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);
                    b777.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);b777.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);b777.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);b777.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);b777.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);b777.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);b777.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);b777.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);b777.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);b777.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);b777.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);b777.afds.input(3,1);</script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>AP.disengage</object-name>
        <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>
        <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);
                    b777.afds.input(1,255);
                </script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>Pitchwheel.inc</object-name>
       <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);
                    b777.afds.input(1,255);
                </script>
            </binding>
        </action>
    </animation>

   <animation>
        <type>pick</type>
       <object-name>Pitch_Wheel.knob</object-name>
        <action>
            <button>4</button> <!--  scroll down - climb -->
            <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);
                    b777.afds.input(1,255);
                </script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
       <object-name>Pitch_Wheel.knob</object-name>
       <action>
            <button>3</button> <!--  scroll up descent -->
            <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);
                    b777.afds.input(1,255);
                </script>
            </binding>
        </action>
    </animation>

    <!-- Continental B777 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>
        <action>
            <button>0</button> <!--  left button -->
            <repeatable>true</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>systems/electrical/outputs/avionics</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>
                        <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>
                        <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>
                        <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>
        <action>
            <button>1</button> <!--  center button -->
            <repeatable>true</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>systems/electrical/outputs/avionics</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>
                        <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>
                        <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>
                        <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>SPEED.knob</object-name>
        <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>SPEED.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-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>
                        <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>
                        <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>
                        <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>SPEED.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-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>
                        <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>
                        <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>
                        <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>
        <action>
            <button>0</button>
            <repeatable>true</repeatable>
            <binding>
                <condition>
                    <property>systems/electrical/outputs/avionics</property>
                </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>
                <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>
        <action>
            <button>1</button>
            <repeatable>true</repeatable>
            <binding>
                <condition>
                    <property>systems/electrical/outputs/avionics</property>
                </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>
                <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>
                    <property>systems/electrical/outputs/avionics</property>
                </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>
                <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>
                    <property>systems/electrical/outputs/avionics</property>
                </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>
                <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>
        <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>
        <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>Bank.inc</object-name>
        <object-name>Bank.dec</object-name>
        <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>Bank.inc</object-name>
        <object-name>Bank.dec</object-name>
        <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>
        <object-name>ALTmode.knob</object-name>
        <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>
        <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);b777.afds.input(1,4);</script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>ALT.knob</object-name>
        <object-name>ALT.inc</object-name>
        <object-name>ALT.dec</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/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>
        <object-name>ALT.inc</object-name>
        <object-name>ALT.dec</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/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.inc</object-name>
        <object-name>ALT.dec</object-name>
        <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.inc</object-name>
        <object-name>ALT.dec</object-name>
        <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>
    <animation>
        <type>pick</type>
        <object-name>DSP.eng</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>b777.mfdShow("eng");</script>
            </binding>
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>DSP.fctl</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>b777.mfdShow("fctl");</script>
            </binding>
        </action>
    </animation>
</PropertyList>
