<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>
<fdm_config name="mudry-cap10b" version="2.0" release="ALPHA"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">

 <fileheader>
  <author> Flavien Blanc </author>
  <filecreationdate> 2011-09-12 </filecreationdate>
  <version>$Revision: 2012-10-27 $</version>
  <description> Cap10B </description>
 </fileheader>
 
 <!-- version FDM modif jano 01 sept 2012, puis dany sept - oct 2012 -->

 <metrics>
  <wingarea  unit="M2">  10.85 </wingarea>
  <wingspan  unit="M" >  8.06  </wingspan>
  <wing_incidence unit="DEG">  2.00 </wing_incidence>
  <chord    unit="M" >  1.500 </chord>
  <htailarea unit="M2">  1.86  </htailarea>
  <htailarm  unit="M" >  3.60  </htailarm>
  <vtailarea unit="M2">  1.316 </vtailarea>
  <vtailarm  unit="M" >  3.680 </vtailarm>
  <!-- Pilot handbook:
  Ref 0 = wing leading edge.
  empty CG: 0.345 m ,
  0.30 < CAT U CG < 0.45,
  0.30 < CAT A CG < 0.39 
  -->
  <!-- wing leading edge presumed at FDM x=-0.422 (see Main Boguey contact) -->
  <location name="AERORP" unit="M">
    <x> 0.028 </x> <!-- AERORP at 0.45 m from wing leading edge, such as CG never behind even with payload -->
    <y>  0.000 </y>
    <z> -0.200 </z>
  </location>
  <location name="EYEPOINT" unit="IN">
    <x>  77.17 </x>
    <y>  0.00 </y>
    <z>  40.00 </z>
  </location>
  <location name="VRP" unit="M">
    <x>0</x>
    <y>0</y>
    <z>0</z>
  </location>
 </metrics>

 <mass_balance>
  <ixx unit="SLUG*FT2">      435 </ixx>
  <iyy unit="SLUG*FT2">      583 </iyy>
  <izz unit="SLUG*FT2">      918 </izz>
  <emptywt unit="LBS" >      1211 </emptywt>
  <location name="CG" unit="M">
    <x> -0.077 </x> <!-- 0.345 m from wing leading edge -->
    <y>  0.000 </y>
    <z> -0.300 </z>
  </location>
  
    <pointmass name="PILOT" >
      <weight unit="KG">75</weight>
      <location name="POINTMASS" unit="M">
        <x> 0.178 </x>
        <y> -0.28 </y>
        <z>  0 </z>
      </location>
    </pointmass>
    
    <pointmass name="COPILOT">
      <weight unit="KG">75</weight>
      <location name="POINTMASS" unit="M">
        <x> 0.178 </x>
        <y>  0.28 </y>
        <z>  0 </z>
      </location>
    </pointmass>
 
 </mass_balance>

<!-- ********** CONTACTS ***********-->
 <ground_reactions>

  <contact type="BOGEY" name="LEFT_MAIN">
    <location unit="M">
      <x> -0.452 </x>
      <y> -0.984 </y>
      <z> -1.195 </z>
    </location>
    <static_friction>  0.50 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <rolling_friction> 0.02 </rolling_friction>
    <spring_coeff unit="N/M">      28000.00 </spring_coeff>
    <damping_coeff unit="N/M/SEC">  5000.00 </damping_coeff>
    <max_steer unit="DEG">0</max_steer>
    <brake_group>LEFT</brake_group>
    <retractable>0</retractable>
  </contact>

  <contact type="BOGEY" name="RIGHT_MAIN">
    <location unit="M">
      <x> -0.452 </x>
      <y>  0.984 </y>
      <z> -1.195 </z>
    </location>
    <static_friction>  0.50 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <rolling_friction> 0.02 </rolling_friction>
    <spring_coeff unit="N/M">      28000.00 </spring_coeff>
    <damping_coeff unit="N/M/SEC">  5000.00 </damping_coeff>
    <max_steer unit="DEG">0</max_steer>
    <brake_group>RIGHT</brake_group>
    <retractable>0</retractable>
  </contact>

  <contact type="BOGEY" name="TAIL">
    <location unit="M">
      <x>  3.8908 </x>
      <y>  0.000 </y>
      <z> -0.44 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <rolling_friction> 0.02 </rolling_friction>
    <spring_coeff unit="N/M">      22000.00 </spring_coeff>
    <damping_coeff unit="N/M/SEC">  3500.00 </damping_coeff>
    <max_steer unit="DEG"> 360.00 </max_steer>
    <brake_group>NONE</brake_group>
    <retractable>0</retractable>
  </contact>

  <contact type="STRUCTURE" name="LEFT_WING">
    <location unit="M">
      <x>  0.064 </x>
      <y>  -4.032 </y>
      <z>  -0.104 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">      1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">  366.03 </damping_coeff>
  </contact>

  <contact type="STRUCTURE" name="RIGHT_WING">
    <location unit="M">
      <x>  0.064 </x>
      <y>  4.032 </y>
      <z>  -0.104 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">      1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">  366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="PROP_CONE">
    <location unit="M">
      <x> -2.225 </x>
      <y>  0.000 </y>
      <z>  0.015 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="N/M">      80000.00 </spring_coeff>
    <damping_coeff unit="N/M/SEC">  6000.00 </damping_coeff>
  </contact>

  <contact type="STRUCTURE" name="TAIL">
    <location unit="M">
      <x>  3.779 </x>
      <y>  0.000 </y>
      <z>  1.147 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="N/M">      80000.00 </spring_coeff>
    <damping_coeff unit="N/M/SEC">  6000.00 </damping_coeff>
  </contact>

  <contact type="STRUCTURE" name="BEFORE_TAIL">
    <location unit="M">
     <x>   3.7338 </x>
     <y>   0.0000 </y>
     <z>  -0.2894 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="AFTER_TAIL">
    <location unit="M">
     <x>   3.9924 </x>
     <y>   0.0000 </y>
     <z>  -0.2818 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_REAR_CENTER">
    <location unit="M">
     <x>   1.2007 </x>
     <y>   0.0000 </y>
     <z>  -0.4259 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="EGT_LEFT">
    <location unit="M">
     <x>  -1.0162 </x>
     <y>  -0.1859 </y>
     <z>  -0.5202 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="EGT_RIGHT">
    <location unit="M">
     <x>  -1.0162 </x>
     <y>   0.1859 </y>
     <z>  -0.5202 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_CENTER">
    <location unit="M">
     <x>  -0.5482 </x>
     <y>   0.0000 </y>
     <z>  -0.4608 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_LEFT">
    <location unit="M">
     <x>  -0.5492 </x>
     <y>  -0.4630 </y>
     <z>  -0.4614 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_RIGHT">
    <location unit="M">
     <x>  -0.5492 </x>
     <y>   0.4630 </y>
     <z>  -0.4614 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="WING_INT0_LEFT">
    <location unit="M">
     <x>  -0.4159 </x>
     <y>  -0.5122 </y>
     <z>  -0.4057 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="WING_INT0_RIGHT">
    <location unit="M">
     <x>  -0.4159 </x>
     <y>   0.5122 </y>
     <z>  -0.4057 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="WING_INT1_LEFT">
    <location unit="M">
     <x>  -0.05624 </x>
     <y>  -0.9858 </y>
     <z>  -0.3965 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="WING_INT1_RIGHT">
    <location unit="M">
     <x>  -0.05624 </x>
     <y>  -0.9858 </y>
     <z>  -0.3965 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="WING_INT2_LEFT">
    <location unit="M">
     <x>  -0.05624 </x>
     <y>  -1.8681 </y>
     <z>  -0.3312 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="WING_INT2_RIGHT">
    <location unit="M">
     <x>  -0.05624 </x>
     <y>   1.8681 </y>
     <z>  -0.3312 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="POIDS_LEFT">
    <location unit="M">
     <x>   0.4684 </x>
     <y>  -3.5505 </y>
     <z>  -0.2577 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="POIDS_RIGHT">
    <location unit="M">
     <x>   0.4684 </x>
     <y>   3.5505 </y>
     <z>  -0.2577 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_FRONT_CENTER">
    <location unit="M">
     <x>  -1.4112 </x>
     <y>   0.0000 </y>
     <z>  -0.4041 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_FRONT_LEFT">
    <location unit="M">
     <x>  -1.4112 </x>
     <y>  -0.4214 </y>
     <z>  -0.3971 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="FUSELAGE_FRONT_RIGHT">
    <location unit="M">
     <x>  -1.4112 </x>
     <y>   0.4214 </y>
     <z>  -0.3971 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="ELEVATOR_LEFT">
    <location unit="M">
     <x>  3.4767 </x>
     <y> -1.2955 </y>
     <z>  0.1342 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>

  <contact type="STRUCTURE" name="ELEVATOR_RIGHT">
    <location unit="M">
     <x>  3.4767 </x>
     <y>  1.2955 </y>
     <z>  0.1342 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <spring_coeff unit="LBS/FT">       1830.15 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC">   366.03 </damping_coeff>
 </contact>
 
 </ground_reactions>

 <propulsion>

  <engine file="eng_LycomingIO360B2F">
    <location unit="M">
      <x> -1.2 </x>
      <y>  0.00 </y>
      <z>  0.00 </z>
    </location>
    <orient unit="DEG">
      <pitch> 0.00 </pitch>
      <roll>  0.00 </roll>
      <yaw>  0.00 </yaw>
    </orient>
    <feed>0</feed>
    <feed>1</feed>
    <thruster file="prop_HOFFMANN">
    <location unit="M">
      <x> -2.0 </x>
      <y>  0.00 </y>
      <z>  0.00 </z>
    </location>
    <orient unit="DEG">
      <pitch> 0.00 </pitch>
      <roll>  0.00 </roll>
      <yaw>  0.00 </yaw>
    </orient>
    </thruster>
  </engine>

<!-- *********** TANKS *********** -->
<!-- front tank 72L -->
  <tank type="FUEL" number="0">
    <location unit="M">
      <x>  -0.593 </x>
      <y>  0.00 </y>
      <z>  -0.2 </z>
    </location>
    <capacity unit="KG"> 51.8 </capacity>
    <contents unit="KG"> 51.8 </contents>
  </tank>

<!-- rear tank 78L    do not use for aerobatics-->
  <tank type="FUEL" number="1">
    <location unit="M">
      <x>  0.978 </x>
      <y>  0.00 </y>
      <z>  -0.2 </z>
    </location>
    <capacity unit="KG"> 56.1 </capacity>
    <contents unit="KG"> 0 </contents>
  </tank>

 </propulsion>

<!-- *********** SYSTEM *********** -->
  <system file="crash-detect"/>
  <system file="tail-wheel"/>

 <flight_control name="FCS: mudry-cap10b">

  <channel name="Pitch">
  <summer name="Pitch Trim Sum">
      <input>fcs/elevator-cmd-norm</input>
      <input>fcs/pitch-trim-cmd-norm</input>
      <clipto>
        <min> -1 </min>
        <max>  1 </max>
      </clipto>
  </summer>

  <aerosurface_scale name="Elevator Control">
      <input>fcs/pitch-trim-sum</input>
      <range>
        <min> -0.44 </min>
        <max>  0.44 </max>
      </range>
      <output>fcs/elevator-pos-rad</output>
  </aerosurface_scale>

  <aerosurface_scale name="elevator normalization">
      <input>fcs/elevator-pos-rad</input>
      <domain>
        <min> -0.44 </min>
        <max>  0.44 </max>
      </domain>
      <range>
        <min> -1 </min>
        <max>  1 </max>
      </range>
      <output>fcs/elevator-pos-norm</output>
  </aerosurface_scale>

  </channel>

  <channel name="Roll">
  <summer name="Roll Trim Sum">
      <input>fcs/aileron-cmd-norm</input>
      <input>fcs/roll-trim-cmd-norm</input>
      <clipto>
        <min> -1 </min>
        <max>  1 </max>
      </clipto>
  </summer>

  <aerosurface_scale name="Left Aileron Control">
      <input>fcs/roll-trim-sum</input>
      <range>
        <min> -0.26 </min>
        <max>  0.44 </max>
      </range>
      <output>fcs/left-aileron-pos-rad</output>
  </aerosurface_scale>

  <aerosurface_scale name="Right Aileron Control">
      <input>fcs/roll-trim-sum</input>
      <range>
        <min> -0.26 </min>
        <max>  0.44 </max>
      </range>
      <output>fcs/right-aileron-pos-rad</output>
  </aerosurface_scale>

  <aerosurface_scale name="left aileron normalization">
      <input>fcs/left-aileron-pos-rad</input>
      <domain>
        <min> -0.26 </min>
        <max>  0.44 </max>
      </domain>
      <range>
        <min> -1 </min>
        <max>  1 </max>
      </range>
      <output>fcs/left-aileron-pos-norm</output>
  </aerosurface_scale>

  <aerosurface_scale name="right aileron normalization">
      <input>fcs/right-aileron-pos-rad</input>
      <domain>
        <min> -0.26 </min>
        <max>  0.44 </max>
      </domain>
      <range>
        <min> -1 </min>
        <max>  1 </max>
      </range>
      <output>fcs/right-aileron-pos-norm</output>
  </aerosurface_scale>

  </channel>

  <channel name="Yaw">
  <summer name="Rudder Command Sum">
      <input>fcs/rudder-cmd-norm</input>
      <input>fcs/yaw-trim-cmd-norm</input>
      <clipto>
        <min> -1.0 </min>
        <max>  1.0 </max>
      </clipto>
  </summer>

  <aerosurface_scale name="Rudder Control">
      <input>fcs/rudder-command-sum</input>
      <range>
        <min> -0.31 </min>
        <max>  0.31 </max>
      </range>
      <output>fcs/rudder-pos-rad</output>
  </aerosurface_scale>

  <aerosurface_scale name="rudder normalization">
      <input>fcs/rudder-pos-rad</input>
      <domain>
        <min> -0.31 </min>
        <max>  0.31 </max>
      </domain>
      <range>
        <min> -1 </min>
        <max>  1 </max>
      </range>
      <output>fcs/rudder-pos-norm</output>
  </aerosurface_scale>

  </channel>

  <channel name="Flaps">
  <kinematic name="Flaps Control">
    <input>fcs/flap-cmd-norm</input>
    <traverse>
      <setting>
          <position>  0 </position>
          <time>      0 </time>
      </setting>
      <setting>
          <position> 15 </position>
          <time>      2 </time>
      </setting>
      <setting>
          <position> 40 </position>
          <time>      2 </time>
      </setting>
    </traverse>
    <output>fcs/flap-pos-deg</output>
  </kinematic>

  <aerosurface_scale name="flap normalization">
      <input>fcs/flap-pos-deg</input>
      <domain>
        <min>  0 </min>
        <max> 40 </max>
      </domain>
      <range>
        <min> 0 </min>
        <max> 1 </max>
      </range>
      <output>fcs/flap-pos-norm</output>
  </aerosurface_scale>

  </channel>

  <channel name="Landing Gear">
  </channel>

  <channel name="Speedbrake">
  <kinematic name="Speedbrake Control">
    <input>fcs/speedbrake-cmd-norm</input>
    <traverse>
      <setting>
          <position> 0 </position>
          <time>    0 </time>
      </setting>
      <setting>
          <position> 1 </position>
          <time>    1 </time>
      </setting>
    </traverse>
    <output>fcs/speedbrake-pos-norm</output>
  </kinematic>

  </channel>

 </flight_control>

 <aerodynamics>
    
   <function name="aero/thrust-qbar_psf">
      <description>Dynamic_pressure_including_backwash</description>
      <product>
        <v> 0.5 </v>
        <p> atmosphere/rho-slugs_ft3 </p>
        <pow>
          <sum>
            <p> velocities/u-aero-fps </p>
            <p> propulsion/engine/prop-induced-velocity_fps </p>
          </sum>
          <v> 2 </v>
        </pow>
      </product>
    </function>


  <axis name="LIFT">

    <function name="aero/force/Lift_alpha">
      <description>Lift due to alpha</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <table>
            <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
            <tableData>
              -0.314    -0.8
              -0.279    -0.81
              -0.244    -1.2
              -0.209    -1.25
              -0.175    -0.95
              -0.140    -0.7
              -0.105    -0.5
              -0.070    -0.3
              -0.035    -0.1
               0.000     0.1
               0.035     0.3
               0.070     0.55
               0.105     0.8
               0.140     1
               0.175     1.2
               0.209     1.4
               0.244     1.56
               0.279     1.7
               0.314     1.75
               0.349     1.6
               0.436     0.5
            </tableData>
          </table>
      </product>
    </function>

    <function name="aero/force/Lift_flap">
      <description>Delta Lift due to flaps</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>fcs/flap-pos-deg</property>
          <value> 0.01333 </value>
      </product>
    </function>

    <function name="aero/force/Lift_speedbrake">
      <description>Delta Lift due to speedbrake</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>fcs/speedbrake-pos-norm</property>
          <value>0</value>
      </product>
    </function>

    <function name="aero/force/Lift_elevator">
      <description>Lift due to Elevator Deflection</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>fcs/elevator-pos-rad</property>
          <value>0.2</value>
      </product>
    </function>

  </axis>

  <axis name="DRAG">

    <function name="aero/force/Drag_basic">
      <description>Drag at zero lift</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <table>
            <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
            <tableData>
            -1.57      1.500
            -0.26    0.036
              0.00    0.028
              0.26    0.036
              1.57      1.500
            </tableData>
          </table>
      </product>
    </function>

    <function name="aero/force/Drag_induced">
      <description>Induced drag</description>
        <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>aero/cl-squared</property>
          <value>0.04</value>
        </product>
    </function>

    <function name="aero/force/Drag_mach">
      <description>Drag due to mach</description>
        <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <table>
            <independentVar lookup="row">velocities/mach</independentVar>
            <tableData>
                0.00      0.000
                0.7      0.000
                1.10      0.023
                1.80      0.015
            </tableData>
          </table>
        </product>
    </function>

    <function name="aero/force/Drag_flap">
      <description>Drag due to flaps</description>
        <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>fcs/flap-pos-deg</property>
          <value> 0.00100 </value>
        </product>
    </function>

    <function name="aero/force/Drag_beta">
      <description>Drag due to sideslip</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <table>
            <independentVar lookup="row">aero/beta-rad</independentVar>
            <tableData>
              -1.57      0.8
              -0.26    0.040
              0.00      0.000
              0.26    0.040
              1.57      0.8
            </tableData>
          </table>
      </product>
    </function>

    <function name="aero/force/Drag_elevator">
      <description>Drag due to Elevator Deflection</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <abs><property>fcs/elevator-pos-norm</property></abs>
          <value>0.04</value>
      </product>
    </function>

  </axis>

  <axis name="SIDE">

    <function name="aero/force/Side_beta">
      <description>Side force due to beta</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>aero/beta-rad</property>
          <value>-0.5</value>
      </product>
    </function>

  </axis>

  <axis name="ROLL">

    <function name="aero/moment/Roll_beta">
      <description>Roll moment due to beta</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>aero/beta-rad</property>
          <value>-0.025</value>
      </product>
    </function>

    <function name="aero/moment/Roll_damp">
      <description>Roll moment due to roll rate</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>aero/bi2vel</property>
          <property>velocities/p-aero-rad_sec</property>
          <value>-0.4</value>
      </product>
    </function>

    <function name="aero/moment/Roll_yaw">
      <description>Roll moment due to yaw rate</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>aero/bi2vel</property>
          <property>velocities/r-aero-rad_sec</property>
           <value>0.06</value>
      </product>
    </function>

    <function name="aero/moment/Roll_aileron">
      <description>Roll moment due to aileron</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>fcs/left-aileron-pos-norm</property>
          <value>0.35</value>
          <table>
            <independentVar lookup="row">velocities/mach</independentVar>
            <tableData>
              0.0    0.170
              2.0    0.057
            </tableData>
          </table>
      </product>
    </function>

    <function name="aero/moment/Roll_rudder">
      <description>Roll moment due to rudder</description>
      <product>
          <property>aero/thrust-qbar_psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>fcs/rudder-pos-rad</property>
          <value>0.01</value>
      </product>
    </function>

  </axis>

  <axis name="PITCH">

    <function name="aero/moment/Pitch_alpha">
      <description>Pitch moment due to alpha</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/cbarw-ft</property>
          <property>aero/alpha-rad</property>
          <value>-0.5</value>
      </product>
    </function>

    <function name="aero/moment/Pitch_zero">
      <description>Pitch moment at zero alpha</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/cbarw-ft</property>
          <value>0.03</value>
      </product>
    </function>

    <function name="aero/moment/Pitch_elevator">
      <description>Pitch moment due to elevator</description>
      <product>
          <property>aero/thrust-qbar_psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/cbarw-ft</property>
          <property>fcs/elevator-pos-rad</property>
          <table>
            <independentVar lookup="row">velocities/mach</independentVar>
            <tableData>
              0.0    -1.100
              2.0    -0.275
            </tableData>
          </table>
          <value>0.6</value>
      </product>
    </function>

    <function name="aero/moment/Pitch_damp">
      <description>Pitch moment due to pitch rate</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/cbarw-ft</property>
          <property>aero/ci2vel</property>
          <property>velocities/q-aero-rad_sec</property>
          <value>-12</value>
      </product>
    </function>

    <function name="aero/moment/Pitch_alphadot">
      <description>Pitch moment due to alpha rate</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/cbarw-ft</property>
          <property>aero/ci2vel</property>
          <property>aero/alphadot-rad_sec</property>
          <value>-7</value>
      </product>
    </function>

  </axis>

  <axis name="YAW">

    <function name="aero/moment/Yaw_beta">
      <description>Yaw moment due to beta</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>aero/beta-rad</property>
          <value>0.05</value>
      </product>
    </function>

    <function name="aero/moment/Yaw_damp">
      <description>Yaw moment due to yaw rate</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>aero/bi2vel</property>
          <property>velocities/r-aero-rad_sec</property>
          <value>-0.15</value>
      </product>
    </function>

    <function name="aero/moment/Yaw_rudder">
      <description>Yaw moment due to rudder</description>
      <product>
          <property>aero/thrust-qbar_psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>fcs/rudder-pos-rad</property>
          <value>-0.06</value>
      </product>
    </function>

    <function name="aero/moment/Yaw_aileron">
      <description>Adverse yaw</description>
      <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>metrics/bw-ft</property>
          <property>fcs/left-aileron-pos-norm</property>
          <value>-0.0044</value>
      </product>
    </function>

  </axis>

 </aerodynamics>

</fdm_config>


