<?xml version="1.0"?>

<!--
     This system extends the nose gear strut prior to a catapult launch.  When
     the holdback is engaged a signal is sent to extend the strut.  The strut
     lifts 14 inches in 3 seconds.  The strut stays extended until the nose gear
     lifts off the deck. 
--> 


<system name="nose_lift">

  <channel>

     <switch name="systems/nose_lift/logic">
        <default value="systems/nose_lift/strut-command"/>
          <test value="1">
                systems/holdback/holdback-cmd == 1
          </test>
          <test value="0">
                gear/gear-cmd-norm == 0
          </test>
       <output>systems/nose_lift/strut-command</output>
     </switch>

     <kinematic name="systems/nose_lift/strut-pump">
       <input>systems/nose_lift/strut-command</input>
       <traverse>
        <setting>
          <position> 0 </position>
          <time>     0 </time>
        </setting>
        <setting>
          <position> 1 </position>
          <time>     3 </time>
        </setting>
       </traverse>
       <output>systems/nose_lift/strut-pos-norm</output>
     </kinematic>

     <fcs_function name="systems/nose_lift/strut-z-position">
        <function>
          <sum>
             <value>-62.8</value>
             <product>
               <property>systems/nose_lift/strut-pos-norm</property>
               <value>-14.0</value>
             </product>
          </sum>  
        </function>
        <output>gear/unit[0]/z-position</output>
     </fcs_function>

  </channel>

</system>
