<?xml version="1.0"?>

<system name="propulsion">
 <property value="1."> fcs/mixture-gain </property>
<!--
 <property value="1."> fcs/automixture-enable </property>
-->

 <channel name="engine[0]">
  <fcs_function name="systems/mixture-cmd">
   <function> 
    <product>
     <table>
      <independentVar lookup="row">atmosphere/P-psf</independentVar>
      <tableData>
              50  0.005
             990  0.4
            2117  1.0
      </tableData>
     </table>
    </product>
   </function>
  </fcs_function>
 
  <switch name="systems/mixture-pos-norm">
    <default value="fcs/mixture-cmd-norm"/>
<!-- 
    Disabled since we need mixture-pos-norm regardless of automixture status
    This is because A6M2 has both automatic and manual mixture controls.
    <test value="systems/mixture-cmd">
      fcs/automixture-enable == 1
    </test>
-->
  </switch>
  <pure_gain name="systems/mixture-pos-gain-norm">
   <input>systems/mixture-pos-norm</input>
   <gain> fcs/mixture-gain </gain>
   <output>fcs/mixture-pos-norm</output>
  </pure_gain>
 </channel>


</system>

