<?xml version="1.0"?>

<PropertyList>

    <path>pedals.ac</path>

    <params>
        <rudder>/sim/model/c172p/cockpit/pedals-rudder</rudder>
    </params>

    <effect>
        <inherits-from>../../Effects/interior/lm-pedals-pilot</inherits-from>
        <object-name>RightPedal</object-name>
        <object-name>LeftPedal</object-name>
        <object-name>pedal-rod-left</object-name>
        <object-name>pedal-rod-right</object-name>
    </effect>

    <animation>
        <type>material</type>
        <object-name>RightPedal</object-name>
        <object-name>LeftPedal</object-name>
        <object-name>pedal-rod-left</object-name>
        <object-name>pedal-rod-right</object-name>
        <condition>
            <not>
                <property>/sim/rendering/shaders/skydome</property>
            </not>
        </condition>
        <emission>
            <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
            <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
            <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
        </emission>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>LeftPedal</object-name>
        <object-name>pedal-rod-left</object-name>
        <property alias="/params/rudder"/>
        <factor>-0.05</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LeftPedal</object-name>
        <property>controls/gear/brake-left</property>
        <factor>-7</factor>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
        <center>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
        </center>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>RightPedal</object-name>
        <object-name>pedal-rod-right</object-name>
        <property alias="/params/rudder"/>
        <factor>0.05</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RightPedal</object-name>
        <property>controls/gear/brake-right</property>
        <factor>-7</factor>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
        <center>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
        </center>
    </animation>

</PropertyList>