<?xml version="1.0" encoding="UTF-8"?>

<!-- (c) 2015, wlbragg. http://forum.flightgear.org/viewtopic.php?f=4&t=25157&start=75#p232085
Under the GPL. Used by shadows under ALS -->

<PropertyList>

    <filter>
        <type>gain</type>
        <gain>0.3048</gain>
        <input>
            <property>/position/altitude-agl-ft</property>
        </input>
        <reference>
            <value>-0.75</value>
        </reference>
        <output>
            <property>/position/gear-agl-m</property>
        </output>
    </filter>

    <filter>
        <type>gain</type>
        <gain>0.3048</gain>
        <input>
            <property>/position/altitude-agl-ft</property>
        </input>
        <output>
            <property>/position/altitude-agl-m</property>
        </output>
    </filter>

    <filter>
        <type>gain</type>
        <!-- Parking brake controlled by the pilot not peddling -->
        <input>
            <condition>
                <equals>
                    <property>/controls/engines/engine[0]/throttle</property>
                    <value>0</value>
                </equals>
            </condition>
            <value>0</value>
        </input>
        <input>
            <condition>
                <greater-than>
                    <property>/controls/engines/engine[0]/throttle</property>
                    <value>0</value>
                </greater-than>
            </condition>
            <value>1</value>
        </input>
        <output>
            <property>/controls/gear/peddling</property>
        </output>
    </filter>

</PropertyList>
