<?xml version="1.0"?>

<system name="hook">

  <property>systems/hook/tailhook-cmd-norm</property>
  <property value="4.537">systems/hook/tailhook-length-ft</property>
  <property value="-3.806">systems/hook/tailhook-pos-min-deg</property>
  <property value="53.369">systems/hook/tailhook-pos-max-deg</property>
  <property value="100.669">systems/hook/tailhook-offset-x-in</property>
  <property value=  "0.0">systems/hook/tailhook-offset-y-in</property>
  <property value="-28.818">systems/hook/tailhook-offset-z-in</property>
  <property value="-3.806">systems/hook/tailhook-pos-deg</property>

  <channel name="Hook">

     <kinematic name="systems/hook/tailhook-control">
       <input>systems/hook/tailhook-cmd-norm</input>
       <traverse>
        <setting>
          <position> 0 </position>
          <time>     0 </time>
        </setting>
        <setting>
          <position> 1 </position>
          <time>     1.5 </time>
        </setting>
       </traverse>
       <output>systems/hook/tailhook-pos-norm</output>
     </kinematic>

     <switch name="systems/hook/ready">
          <default value="0"/>
          <test  logic="AND" value="1">
                systems/hook/tailhook-pos-norm gt 0.99
          </test>
     </switch>

     <scheduled_gain name="systems/hook/hook-decel-multiplier">
      <input>systems/hook/ready</input>
      <table>
        <independentVar lookup="row">gear/unit[1]/wheel-speed-fps</independentVar>
         <tableData>
            0     0.00
            1     0.00
            80    2.20
         </tableData>
      </table>
     </scheduled_gain>

     <pure_gain name="systems/hook/hook-decel-force">
        <input>systems/hook/hook-decel-multiplier</input>
        <gain>inertia/weight-lbs</gain>
     </pure_gain>

     <summer name="systems/hook/force">
        <input>systems/hook/hook-decel-force</input>
        <input>forces/fbx-prop-lbs</input>
     </summer>

     <fcs_function name="systems/hook/animation-norm">
       <function>
         <product>
           <sum>
            <property>systems/hook/tailhook-pos-deg</property>
            <value>18</value>
           </sum>
           <value>0.016667</value>
         </product>
       </function>
       <output>gear/tailhook-pos-norm</output>
     </fcs_function>

  </channel>

</system>
