<airplane mass="138915">

<!-- Approach configuration -->
<approach speed="136" aoa="7">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="0.2"/>
  <control-setting axis="/controls/engines/engine[1]/throttle" value="0.2"/>
  <control-setting axis="/controls/engines/engine[2]/throttle" value="0.2"/>
  <control-setting axis="/controls/flight/flaps" value="1.0"/>
  <control-setting axis="/controls/flight/slats" value="1.0"/>
  <control-setting axis="/controls/gear/gear-down" value="1"/>
</approach>

<!-- Cruise configuration -->
<cruise speed="512" alt="38060">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="0.75"/>
  <control-setting axis="/controls/engines/engine[1]/throttle" value="0.75"/>
  <control-setting axis="/controls/engines/engine[2]/throttle" value="0.75"/>
  <control-setting axis="/controls/flight/flaps" value="0.0"/>
  <control-setting axis="/controls/gear/gear-down" value="0"/>
</cruise>

<cockpit x="-3.00" y="0.55" z="0.9"/>

<fuselage ax="0" ay="0" az="0" bx="-42.0" by="0.00" bz="1.60"
          width="3.8"/>

<wing x="-22.6" y="2.0" z="-1.0" length="17" chord="9.25" sweep="35"
      taper=".27" dihedral="7" camber="0.11" incidence="3.0" twist="-3.0"
      effectiveness="1.0">
  <stall aoa="12" width="2" peak="2"/>
  <flap0 start="0" end=".56" lift="1.8" drag="1.2"/>
  <flap1 start=".64" end=".88" lift="1.3" drag="1.2"/>
  <slat start="0" end="1" aoa="2" drag="1.1"/>
  <spoiler start="0.2" end="0.6" lift="0.3" drag="2.0"/>
  <control-input axis="/controls/flight/flaps" control="FLAP0"/>
  <control-input axis="/controls/flight/aileron" control="FLAP1" split="true"/>
  <control-input axis="/controls/flight/aileron-trim" control="FLAP1" split="true"/>
  <control-input axis="/controls/flight/slats" control="SLAT"/>
  <control-input axis="/controls/flight/spoilers" control="SPOILER"/>

  <control-output control="FLAP0" prop="/surface-positions/flap-pos-norm"/>
  <control-output control="FLAP1"   side="left"  prop="/surface-positions/left-aileron-pos-norm"/>
  <control-output control="FLAP1"   side="right" prop="/surface-positions/right-aileron-pos-norm"/>
  <control-output control="SPOILER" side="left"  prop="/surface-positions/L-spoiler-pos-norm"/>
  <control-output control="SPOILER" side="right" prop="/surface-positions/R-spoiler-pos-norm"/>

  <control-speed control="FLAP0" transition-time="15"/>
  <control-speed control="SPOILER" transition-time="1.5"/>  

</wing>

<hstab x="-40.0" y="0.37" z="7.18" chord="4.0" length="6.47" taper=".29"
       sweep="28" dihedral="0" camber="-0.1" effectiveness="2.3">
  <stall aoa="15" width="2" peak="1.5"/>
  <flap0 start="0" end="1" lift="1.6" drag="1.2"/>
  <control-input axis="/controls/flight/elevator" control="FLAP0"/>
  <control-input axis="/controls/flight/elevator-trim" control="FLAP0"/>
  <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
</hstab>

<vstab x="-35.25" y="0.00" z="2.60" chord="6.00" length="4.4" taper="0.3"
       sweep="45">
  <stall aoa="15" width="2" peak="1.5"/>
  <flap0 start="0" end="1" lift="1.2" drag="1.3"/>
  <control-input axis="/controls/flight/rudder" control="FLAP0" invert="true"/>
  <control-input axis="/controls/flight/rudder-trim" control="FLAP0" invert="true"/>
  <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"
		  min="1" max="-1"/>
</vstab>

<!-- The CF6 engines are rated at 60000 lbs thrust, flat rated to 33 -->
<!-- degrees C.  Corrected to YASim's standard atmosphere temperature -->
<!-- of 288.2 kelvins, that gives 63737 lbs of nominal thrust. -->

<!-- epr="10.8" gives skid -->


<jet x="-33.1" y="-3.20"  z="0.5" mass="5182" thrust="23500" egt="840" epr="5.8">
  <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
</jet>

<jet x="-33.1" y="0.0"  z="2.96" mass="4630" thrust="23500" egt="840" epr="5.8">
  <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
</jet>

<jet x="-33.1" y="3.20" z="0.5" mass="5182" thrust="23500" egt="840" epr="5.8">
  <control-input axis="/controls/engines/engine[2]/throttle" control="THROTTLE"/>
</jet>






<!-- nose -->
<gear x="-6.90"  y="0.0" z="-3.8"
      compression="1.25" spring="0.9" damp="4">
  <control-input axis="/controls/flight/rudder" control="STEER" square="true"/>
  <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
  <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<gear x="-25.9" y="5.65" z="-3.50" compression="1.1"> <!-- fwd left main -->
  <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
  <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
  <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
  <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<gear x="-25.9" y="-5.65" z="-3.50" compression="1.1"> <!-- fwd right main -->
  <control-input axis="/controls/gear/brake-right" control="BRAKE"/>
  <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
  <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
  <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<tank x="-26" y="0" z="-1.00" jet="true" capacity="36983"/>
<tank x="-26.6" y="8" z="-1.00" jet="true" capacity="36983"/>
<tank x="-26.6" y="-8" z="-1.00" jet="true" capacity="36983"/>

<ballast x="-10.8" y="0" z="0" mass="20000"/> 
<ballast x="-20.0" y="0" z="0.5" mass="15000"/>
<ballast x="-30.0" y="0" z="0.5" mass="8000"/>

</airplane>
