<?xml version="1.0"?>


<system name="">

    <property value="1">propulsion/ctl_mixture</property>

    <channel name="Mixture Control">

        <switch name="propulsion/eng0_mixture_auto">
            <!-- AUTO RICH: VERY RICH  -->
            <test value="1.18">
                fcs/mixture-cmd-norm ge 1
            </test>
            <!-- AUTO LEAN: RICH BEST POWER -->
            <test logic="AND" value="0.95">
                fcs/mixture-cmd-norm lt 1
                propulsion/engine[0]/engine-rpm ge 2500
            </test>
            <!-- AUTO LEAN: BEST POWER -->
            <test logic="AND" value="0.87">
                fcs/mixture-cmd-norm lt 1
                propulsion/engine[0]/engine-rpm ge 2200
            </test>
            <!-- AUTO LEAN: LEANING-->
            <test logic="AND" value="0.68">
                fcs/mixture-cmd-norm lt 1
                propulsion/engine[0]/engine-rpm lt 2200
            </test>
        </switch>

        <scheduled_gain name="propulsion/eng0_mixture-value">
            <input>propulsion/eng0_mixture_auto</input>
            <table>
                <independentVar>position/h-sl-ft</independentVar>
                <tableData>
                    0                   1
                    5000              0.83
                    10000           0.69
                    15000           0.564
                    20000           0.46
                    25000           0.372
                    30000           0.297
                    35000           0.236
                    40000           0.186
                </tableData>
            </table>
            <output>fcs/mixture-pos-norm[0]</output>
        </scheduled_gain>

        <switch name="propulsion/eng1_mixture_auto">
            <!-- AUTO RICH: VERY RICH  -->
            <test value="1.18">
                fcs/mixture-cmd-norm ge 1
            </test>
            <!-- AUTO LEAN: RICH BEST POWER -->
            <test logic="AND" value="0.95">
                fcs/mixture-cmd-norm lt 1
                propulsion/engine[1]/engine-rpm ge 2500
            </test>
            <!-- AUTO LEAN: BEST POWER -->
            <test logic="AND" value="0.87">
                fcs/mixture-cmd-norm lt 1
                propulsion/engine[1]/engine-rpm ge 2200
            </test>
            <!-- AUTO LEAN: LEANING-->
            <test logic="AND" value="0.68">
                fcs/mixture-cmd-norm lt 1
                propulsion/engine[1]/engine-rpm lt 2200
            </test>
        </switch>

        <scheduled_gain name="propulsion/eng1_mixture-value">
            <input>propulsion/eng1_mixture_auto</input>
            <table>
                <independentVar>position/h-sl-ft</independentVar>
                <tableData>
                    0                   1
                    5000              0.83
                    10000           0.69
                    15000           0.564
                    20000           0.46
                    25000           0.372
                    30000           0.297
                    35000           0.236
                    40000           0.186
                </tableData>
            </table>
            <output>fcs/mixture-pos-norm[1]</output>
        </scheduled_gain>

        </channel>

        



</system>
