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

 <fileheader>
  <author> Petar Jedvaj </author>
  <filecreationdate>2016-06-29</filecreationdate>
  <version>$Revision: 1.15 $</version>
  <description> General Atomics MQ-9 Reaper. </description>
 </fileheader>

<!--
  File:     MQ-9 Reaper.xml
  Inputs:
    name:          MQ-9 Reaper
    type:          light commuter with 1 engines
    stall speed:   80.00kts
    max weight:    10494.00 lb
    length:        36.08 ft
    wing: 
     span:         65.58 ft
     area:         257.28 sq-ft
     mean chord:   3.92 ft
     aspect ratio: 12.00:1
     taper ratio:  1.00:1
     incidence:    2.00 degrees
     dihedral:     2.00 degrees
     sweep:        5.00 degrees

    no. engines:   1
    engine type:   Turboprop Engine
    engine layout: aft fuselage

    gear type:     tricycle
    steering type: steering
    retractable?:  yes

  Outputs:
    wing loading:  40.79 lb/sq-ft
    payload:       4039.89 lbs
    CL-alpha:      5.79 per radian
    CL-0:          0.41
    CL-max:        1.88
    CD-0:          0.02
    K:             0.04
    Mcrit:         0.70
-->

 <metrics>
   <wingarea  unit="FT2">   257.28 </wingarea>
   <wingspan  unit="FT" >    65.58 </wingspan>
   <wing_incidence>           2.00 </wing_incidence>
   <chord     unit="FT" >     3.92 </chord>
   <htailarea unit="FT2">    41.17 </htailarea>
   <htailarm  unit="FT" >    18.76 </htailarm>
   <vtailarea  unit="FT2">   25.73 </vtailarea>
   <vtailarm  unit="FT" >    18.04 </vtailarm>
   <location name="AERORP" unit="IN">
     <x>   207.84 </x>
     <y>     0.00 </y>
     <z>     0.00 </z>
   </location>
   <location name="EYEPOINT" unit="IN">
     <x>    56.29 </x>
     <y>   -18.00 </y>
     <z>    45.00 </z>
   </location>
   <location name="VRP" unit="IN">
     <x>     0.0 </x>
     <y>     0.0 </y>
     <z>     0.0 </z>
   </location>
 </metrics>

 <mass_balance>
   <ixx unit="SLUG*FT2">  11931.18 </ixx>
   <iyy unit="SLUG*FT2">   6420.77 </iyy>
   <izz unit="SLUG*FT2">  17344.61 </izz>
   <emptywt unit="LBS" >   4901.00 </emptywt>
   <location name="CG" unit="IN">
     <x>   207.84 </x>
     <y>     0.00 </y>
     <z>   -10.82 </z>
   </location>
   <pointmass name="Payload">
    <description> 4039.89 LBS + full (1280 LBS) fuel should bring model up to entered max weight</description>
    <weight unit="LBS">   2019.94 </weight>
    <location name="POINTMASS" unit="IN">
      <x> 207.84 </x>
      <y>   0.00 </y>
      <z> -10.82 </z>
    </location>
  </pointmass>
  
  <pointmass name="station1">
      <weight unit="LBS"> 100 </weight>
      <location name="POINTMASS" unit="IN">
      	<x> 207.84 </x>
      	<y>   0.00 </y>
      	<z> -10.82 </z>
      </location>
  </pointmass>
  
   <pointmass name="station2">
      <weight unit="LBS"> 100 </weight>
      <location name="POINTMASS" unit="IN">
          <x> 207.84 </x>
          <y> -74 </y>
          <z>  -3 </z>
      </location>
   </pointmass>
   
   <pointmass name="station3">
      <weight unit="LBS"> 510 </weight>
      <location name="POINTMASS" unit="IN">
          <x> 207.84 </x>
          <y> -48 </y>
          <z>  -3 </z>
      </location>
   </pointmass>
   
   <pointmass name="station4">
      <weight unit="LBS"> 510 </weight>
      <location name="POINTMASS" unit="IN">
          <x> 207.84 </x>
          <y>  48 </y>
          <z>  -3 </z>
      </location>
   </pointmass>
   
   <pointmass name="station5">
      <weight unit="LBS"> 100 </weight>
      <location name="POINTMASS" unit="IN">
          <x> 207.84 </x>
          <y>  74 </y>
          <z>  -3 </z>
      </location>
   </pointmass>
   
   <pointmass name="station6">
      <weight unit="LBS"> 100 </weight>
      <location name="POINTMASS" unit="IN">
          <x> 207.84 </x>
          <y>  89 </y>
          <z>  -3 </z>
      </location>
  </pointmass>
  
 </mass_balance>

 <propulsion>

   <engine file="TPE331-10">
    <location unit="IN">
      <x> 373.09 </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>
    <thruster file="Direct">
     <location unit="IN">
       <x> 373.09 </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>

  <tank type="FUEL" number="0">
     <location unit="IN">
       <x> 207.84 </x>
       <y>   0.00 </y>
       <z> -10.83 </z>
     </location>
     <capacity unit="LBS"> 776.56 </capacity>
     <contents unit="LBS"> 388.28 </contents>
  </tank>

  <tank type="FUEL" number="1">
     <location unit="IN">
       <x> 207.84 </x>
       <y>   0.00 </y>
       <z> -10.83 </z>
     </location>
     <capacity unit="LBS"> 776.56 </capacity>
     <contents unit="LBS"> 388.28 </contents>
  </tank>

 </propulsion>
 
 <ground_reactions>

  <contact type="BOGEY" name="NOSE">
    <location unit="IN">
      <x>    56.29 </x>
      <y>     0.00 </y>
      <z>   -51.96 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <rolling_friction> 0.02 </rolling_friction>
    <spring_coeff  unit="LBS/FT">     3148.20 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC"> 1574.10 </damping_coeff>
    <max_steer unit="DEG"> 5.00 </max_steer>
    <brake_group> NONE </brake_group>
    <retractable> 1 </retractable>
  </contact>

  <contact type="BOGEY" name="LEFT_MAIN">
    <location unit="IN">
      <x>   216.15 </x>
      <y>   -70.83 </y>
      <z>   -51.96 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <rolling_friction> 0.02 </rolling_friction>
    <spring_coeff  unit="LBS/FT">     10494.00 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC"> 5247.00 </damping_coeff>
    <max_steer unit="DEG">0</max_steer>
    <brake_group> LEFT </brake_group>
    <retractable> 1 </retractable>
  </contact>

  <contact type="BOGEY" name="RIGHT_MAIN">
    <location unit="IN">
      <x>   216.15 </x>
      <y>    70.83 </y>
      <z>   -51.96 </z>
    </location>
    <static_friction>  0.80 </static_friction>
    <dynamic_friction> 0.50 </dynamic_friction>
    <rolling_friction> 0.02 </rolling_friction>
    <spring_coeff  unit="LBS/FT">     10494.00 </spring_coeff>
    <damping_coeff unit="LBS/FT/SEC"> 5247.00 </damping_coeff>
    <max_steer unit="DEG">0</max_steer>
    <brake_group> RIGHT </brake_group>
    <retractable> 1 </retractable>
  </contact>

  <contact type="STRUCTURE" name="LEFT_WING">
    <location unit="IN">
     <x>   207.84 </x>
     <y>  -393.50 </y>
     <z>   -10.82 </z>
    </location>
   <static_friction>  1 </static_friction>
   <dynamic_friction> 1 </dynamic_friction>
   <spring_coeff unit="LBS/FT">      10494.00 </spring_coeff>
   <damping_coeff unit="LBS/FT/SEC"> 10494.00 </damping_coeff>
  </contact>

  <contact type="STRUCTURE" name="RIGHT_WING">
    <location unit="IN">
     <x>   207.84 </x>
     <y>   393.50 </y>
     <z>   -10.82 </z>
    </location>
   <static_friction>  1 </static_friction>
   <dynamic_friction> 1 </dynamic_friction>
   <spring_coeff unit="LBS/FT">      10494.00 </spring_coeff>
   <damping_coeff unit="LBS/FT/SEC"> 10494.00 </damping_coeff>
  </contact>

 </ground_reactions>

 <system file="Armament"/>
 <system file="Particles"/>
 <system file="Controls"/>

<system file="LandingGear.xml"/> 

 <aerodynamics>

  <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-rad</independentVar>
            <tableData>
              -0.20 -0.7494
               0.00  0.4077
               0.25  1.8824
               0.60  0.9976
            </tableData>
          </table>
      </product>
    </function>

    <function name="aero/force/Lift_pitch_rate">
        <description>Lift due to pitch rate</description>
        <product>
          <property>aero/qbar-psf</property>
          <property>metrics/Sw-sqft</property>
          <property>velocities/q-aero-rad_sec</property>
          <property>aero/ci2vel</property>
          <value> 6.4704 </value>
        </product>
      </function>

      <function name="aero/force/Lift_alpha_rate">
        <description>Lift due to alpha rate</description>
        <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>aero/alphadot-rad_sec</property>
           <property>aero/ci2vel</property>
           <value> 1.8487 </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.2732 </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-rad</independentVar>
            <tableData>
             -1.57    1.4089
             -0.25    0.0508
              0.00    0.0219
              0.25    0.0508
              1.57    1.4089
            </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.0240 </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.0000
                0.70    0.0000
                1.10    0.0230
                1.80    0.0150
            </tableData>
          </table>
        </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    1.2300
              -0.26    0.0500
               0.00    0.0000
               0.26    0.0500
               1.57    1.2300
            </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-rad</property></abs>
           <value> 0.0400 </value>
       </product>
    </function>

    <function name="aero/force/Drag_gear">
       <description>Drag due to gear</description>
         <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>gear/gear-pos-norm</property>
           <value> 0.0300 </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.2310 </value>
       </product>
    </function>
    <function name="aero/force/Side_roll_rate">
       <description>Side force due to roll rate</description>
       <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>aero/bi2vel</property>
           <property>velocities/p-aero-rad_sec</property>
           <table>
             <independentVar lookup="row">aero/Re</independentVar>
             <tableData>
                 3372885   1.3390
                 3710173   0.1141
                 5059327   0.0507
                 6689612   0.0290
             </tableData>
           </table>
       </product>
    </function>

    <function name="aero/force/Side_yaw_rate">
       <description>Side force due to yaw rate</description>
       <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>aero/bi2vel</property>
           <property>velocities/r-aero-rad_sec</property>
           <value> 0.1271 </value>
       </product>
    </function>

    <function name="aero/force/Side_rudder">
       <description>Side force due to rudder</description>
       <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>fcs/rudder-pos-rad</property>
           <value> 0.1407 </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> -2.3270 </value>
       </product>
    </function>

    <function name="aero/moment/Pitch_elevator">
       <description>Pitch moment due to elevator</description>
       <product>
          <property>aero/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    -2.0259
              2.0    -0.5065
            </tableData>
          </table>
       </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> -30.9711 </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> -8.8489 </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>
           <table>
             <independentVar lookup="row">aero/alpha-rad</independentVar>
             <independentVar lookup="column">aero/Re</independentVar>
             <tableData>
                          3372885  3710173  5059327  6689612
                 -0.0349  -0.2578  -0.0647  -0.0550  -0.0520
                  0.3491  -0.6826  -0.1159  -0.1086  -0.1100
             </tableData>
           </table>
       </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.7313 </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>
           <table>
             <independentVar lookup="row">aero/alpha-rad</independentVar>
             <independentVar lookup="column">aero/Re</independentVar>
             <tableData>
                          3372885  3710173  5059327  6689612
                 -0.0349   0.1627   0.0587   0.0533   0.0514
                  0.3491   4.8174   0.6140   0.6086   0.6068
             </tableData>
           </table>
       </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-rad</property>
           <table>
            <independentVar lookup="row">velocities/mach</independentVar>
            <tableData>
              0.0    0.1700
              2.0    0.0425
            </tableData>
          </table>
       </product>
    </function>

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

  </axis>

  <axis name="YAW">

    <!-- Stall initiator -->
    <function name="aero/moment/Yaw_alpha">
       <description>Yaw moment due to alpha</description>
       <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>metrics/bw-ft</property>
           <property>aero/alpha-rad</property>
           <property>fcs/gear-no-wow</property>
           <table>
             <independentVar lookup="row">aero/beta-rad</independentVar>
             <independentVar lookup="column">aero/Re</independentVar>
             <tableData>
                          3372885  3710173
                 -0.3491  -1.0000   0.0000
                  0.3491   1.0000   0.0000
             </tableData>
           </table>
       </product>
    </function>

    <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.0635 </value>
       </product>
    </function>

    <function name="aero/moment/Yaw_roll_rate">
       <description>Yaw 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-rad_sec</property>
           <table>
             <independentVar lookup="row">aero/Re</independentVar>
             <tableData>
                 3372885  -2.3531
                 3710173  -0.2005
                 5059327  -0.0891
                 6689612  -0.0510
             </tableData>
           </table>
       </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.0474 </value>
       </product>
    </function>

    <function name="aero/moment/Yaw_rudder">
       <description>Yaw moment due to rudder</description>
       <product>
           <property>aero/qbar-psf</property>
           <property>metrics/Sw-sqft</property>
           <property>metrics/bw-ft</property>
           <property>fcs/rudder-pos-rad</property>
           <value> -0.0387 </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-rad</property>
           <value> -0.0100 </value>
       </product>
    </function>

  </axis>

 </aerodynamics>
 <external_reactions>
 </external_reactions>

 </fdm_config>
