<?xml version="1.0"?>

<!--

  c172p yoke cord animations.

    Copyright (c) 2018 Wayne Bragg

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

-->

<PropertyList>

    <filter>
        <name>yoke-rotation</name>
        <type>gain</type>
        <input>
            <expression>
                <abs>
                    <property>/sim/model/c172p/cockpit/yoke-aileron</property>
                </abs>
            </expression>
        </input>
        <output>
            <property>/sim/model/c172p/cockpit/yoke-aileron-abs</property>
        </output>
    </filter>

    <filter>
        <name>yoke-normalization</name>
        <type>gain</type>
        <gain>1.0</gain>
        <input>
            <expression>
                <table>
                    <property>/sim/model/c172p/cockpit/yoke-elevator</property>
                    <entry><ind>-1.0</ind><dep>1.8 </dep></entry>
                    <entry><ind> 0.0</ind><dep>1.0 </dep></entry>
                    <entry><ind> 1.0</ind><dep> .26</dep></entry>
                </table>
           </expression>
        </input>
        <output>
           <property>/sim/model/c172p/cockpit/yoke-elevator-norm</property>
        </output>
    </filter>

</PropertyList>