<airplane mass="400000">

<!-- 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/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="490" alt="36000">
  <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/flight/flaps" value="0.0"/>
  <control-setting axis="/controls/gear/gear-down" value="0"/>
</cruise>

<cockpit x="19.08" y="1.81" z="15.06"/>

<fuselage ax="24.5" ay="0" az="0" bx="-45.36" by="0.00" bz="2.41"
          width="6" taper="0.3" midpoint="0.2"/>

<wing x="-2" y="3.01" z="-1.45" length="33.72" chord="13.25" sweep="33"
      taper=".27" dihedral="7" camber="0.15" incidence="-0.7">
  <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-speed control="FLAP0" transition-time="10"/>
</wing>

<hstab x="-38.13" y="1.81" z="1.81" chord="8.43" length="10.84" taper=".29"
       sweep="28" dihedral="7" 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="-38.13" y="0.00" z="3.61" chord="12.04" length="12.04" taper="0.3"
       sweep="33">
  <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. -->

<!-- I got the 0.576 TSFC from a website somewhere -->
<jet x="-10.43" y="16.26"  z="-1.20" mass="8000" thrust="63737" egt="840" tsfc="0.576">
  <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
  <control-input axis="/controls/engines/engine[0]/reverser" control="REVERSE_THRUST"/>
</jet>

<jet x="-2" y="12.65"  z="-2.41" mass="8000" thrust="63737" tsfc="0.576">
  <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
  <control-input axis="/controls/engines/engine[1]/reverser" control="REVERSE_THRUST"/>
</jet>

<jet x="-2" y="-12.65" z="-2.41" mass="8000" thrust="63737" tsfc="0.576">
  <control-input axis="/controls/engines/engine[2]/throttle" control="THROTTLE"/>
  <control-input axis="/controls/engines/engine[2]/reverser" control="REVERSE_THRUST"/>
</jet>

<jet x="-10.43" y="-16.26" z="-1.20" mass="8000" thrust="63737" tsfc="0.576">
  <control-input axis="/controls/engines/engine[3]/throttle" control="THROTTLE"/>
  <control-input axis="/controls/engines/engine[3]/reverser" control="REVERSE_THRUST"/>
</jet>
 
<!-- nose -->
<gear x="19.08"  y="0.00" z="-5.42"
      compression="0.75" spring="0.7" 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="-4.65" y="5.42" z="-5.42" 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="-6.82" y="1.81" z="-5.42" compression="1.1"> <!-- rear 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[2]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<gear x="-6.82" y="-1.81" z="-5.42" compression="1.1"> <!-- rear 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[3]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<gear x="-4.65" y="-5.42" z="-5.42" 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[4]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<tank x="-2" y="0" z="-1.45" jet="true" capacity="128000"/>
<tank x="-5.6" y="8" z="-1.45" jet="true" capacity="128000"/>
<tank x="-5.6" y="-8" z="-1.45" jet="true" capacity="128000"/>

<ballast x="18.5"  y="0" z="2.4" mass="30000"/> <!-- hump -->
<ballast x="12.5" y="0" z="2.4" mass="40000"/> <!-- hump -->
<ballast x="6.5" y="0" z="2.4" mass="40000"/> <!-- hump -->
<ballast x="0.5" y="0" z="2.4" mass="30000"/> <!-- hump -->

</airplane>
