<?xml version="1.0"?>

<system name="refuel">

  <property>systems/refuel/probe-cmd</property>
  <property>systems/refuel/contact</property>
  <property>systems/refuel/armed</property>

  <channel name="Refuel">

     <kinematic name="systems/refuel/probe-control">
       <input>systems/refuel/armed</input>
       <traverse>
        <setting>
          <position> 0 </position>
          <time>     0 </time>
        </setting>
        <setting>
          <position> 1 </position>
          <time>     2.5 </time>
        </setting>
       </traverse>
       <output>systems/refuel/probe-pos-norm</output>
     </kinematic>

     <switch name="systems/refuel/arming">
          <default value="0"/>
          <test logic="AND" value="1">
                systems/refuel/probe-pos-norm gt 0.99
                systems/refuel/armed == 1
          </test>
          <output>propulsion/refuel</output>
     </switch>


  </channel>

</system>
