<?xml version="1.0"?>

<!--GR======adding start process============  -->

<system name="propulsion">
    
        <property>fcs/cutoff-switch0</property>
        <property>fcs/cutoff-switch1</property>
        
        <channel name="Engine">
            
            
            
            <switch name="Cutoff0">
                <default value="fcs/cutoff-switch0"/>
                <test  logic="AND" value="1">
                    propulsion/engine[0]/n2 gt 0.15
                    /controls/engines/engine[0]/starter == 1
                    propulsion/engine[0]/set-running == 0
                </test>
                <output>fcs/cutoff-switch0</output>
            </switch>
            
            <switch name="Cutoff1">
                <default value="fcs/cutoff-switch1"/>
                <test  logic="AND" value="1">
                    propulsion/engine[1]/n2 gt 0.15
                    /controls/engines/engine[1]/starter == 1
                    propulsion/engine[1]/set-running == 0
                </test>
                <output>fcs/cutoff-switch1</output>
            </switch>
           
            <kinematic name="Cutoff Switch0 Delay">
                <input>fcs/cutoff-switch0</input>
                <traverse>
                    <setting>
                        <position>0.0000</position>
                        <time>0.0000</time>
                    </setting>
                    <setting>
                        <position>1.0000</position>
                        <time>1.0000</time>
                    </setting>
                </traverse>
            </kinematic>
            
            <kinematic name="Cutoff Switch1 Delay">
                <input>fcs/cutoff-switch1</input>
                <traverse>
                    <setting>
                        <position>0.0000</position>
                        <time>0.0000</time>
                    </setting>
                    <setting>
                        <position>1.0000</position>
                        <time>1.0000</time>
                    </setting>
                </traverse>
            </kinematic>

            <switch name="Fuel Pump0 Cmd">
                <default value="0"/>
                <test  logic="AND" value="1">
                    fcs/cutoff-switch0 == 1
                </test>
            </switch>
            <pure_gain name="Fuel Pump0">
                <input>fcs/fuel-pump0-cmd</input>
                <gain>1</gain>
                <output>/controls/engines/engine[0]/fuel-pump</output>
            </pure_gain>

            <switch name="Fuel Pump1 Cmd">
                <default value="0"/>
                <test  logic="AND" value="1">
                    fcs/cutoff-switch1 == 1
                </test>
            </switch>
            <pure_gain name="Fuel Pump1">
                <input>fcs/fuel-pump1-cmd</input>
                <gain>1</gain>
                <output>/controls/engines/engine[1]/fuel-pump</output>
            </pure_gain>

            <switch name="Cutoff Cmd">
                <default value="1"/>
                <test  logic="AND" value="0">
                    fcs/cutoff-switch0-delay == 1
                    fcs/cutoff-switch1-delay == 1
                    fcs/fuel-pump0-cmd == 1
                    fcs/fuel-pump1-cmd == 1
                    /systems/electrical/outputs/fuel-pump gt 27
                </test>
                <output>propulsion/cutoff_cmd</output>
            </switch>
            
    </channel>



</system>
