<airplane mass="24250">

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

  <!-- Cruise configuration.   -->
  <cruise speed="790" alt="45000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="1"/>
    <control-setting axis="/controls/flight/flaps" value="0.0"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="0"/>
  </cruise>

  <!-- pilot eyepoint -->
  <cockpit x="-2.72" y="0.0" z=".80"/>

  <fuselage ax="0" ay="0" az="0"
            bx="-3.0" by="0" bz="0.28"
            width="1.1" taper= "0" midpoint= "1" />
  <!-- forward fuselage -->
  <fuselage ax="-2.98" ay="0" az="0.28"
            bx="-5.8" by="0" bz="0.5"
            width="1.2" taper= "0.9" midpoint= "1" />
  <!-- rear fuselage -->
  <fuselage ax="-5.7" ay="0" az="0.6"
            bx="-14.2" by="0" bz="0"
            width="1.4" taper= "0.2" midpoint= "0"
         cx="3" cz="3"/>


  <wing x="-9.821" y="1.783" z="0.28"
        taper="0.314"
        incidence="0.0"
      twist="-2.0"
        length="4.486"
        chord="4.17"
        sweep="28"
        dihedral="-2">
    <stall aoa="21" width="8" peak="1.3"/>
    <flap0 start="0.0" end="0.47" lift="1.2" drag="1.5"/>
    <flap1 start="0.47" end="0.813" lift="1.3" drag="1.2"/>

    <slat aoa="4" start="0.0" end="0.813" lift="1.3" drag="1.3"/>
    <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-output control="FLAP0" prop="/surface-positions/flap-pos-norm"/>
    <control-output control="SLAT" prop="/surface-positions/slat-pos-norm"/>

    <control-speed control="SLAT" transition-time="1.1"/>
    <control-speed control="FLAP0" transition-time="15"/>
    <control-speed control="FLAP1" transition-time="1"/>

  </wing>

  <hstab x="-13.994" y="1.88" z="0.094"
         taper="0.523"
         length="2.5"
         chord="2.452"
         sweep="40"
        dihedral="0">
    <stall aoa="35" width="13" peak="1.5"/>
    <flap0 start="0" end="1" lift="1.45" drag="1.4"/>
    <flap1 start="0.0" end="0.15" lift="0.0" drag="0.8"/>
    <control-input axis="/controls/flight/elevator" control="FLAP0"/>
    <control-input axis="/controls/flight/elevator-trim" control="FLAP0"/>
    <control-input axis="/controls/flight/speedbrake" control="FLAP1"/>
    <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/speedbrake-pos-norm"/>
    <control-speed control="FLAP0" transition-time="1.2"/>
    <control-speed control="FLAP1" transition-time="3.0"/>

  </hstab>

  <vstab x="-13.115" y="1.757" z="0.223"
         taper="0.2"
         length="3.2"
         chord="3.137"
         dihedral="82"
         sweep="30" >
    <stall aoa="27" width="10" peak="1.5"/>
    <flap0 start="0" end=".8" lift="1.3" 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"/>
    <control-speed control="FLAP0" transition-time="1"/>
  </vstab>
  <vstab x="-13.115" y="-1.757" z="0.223"
         taper="0.2"
         length="3.2"
         chord="3.137"
         dihedral="98"
         sweep="30" >
    <stall aoa="27" width="10" peak="1.5"/>
    <flap0 start="0" end=".8" lift="1.3" 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"/>
    <control-speed control="FLAP0" transition-time="1"/>
  </vstab>
  <mstab x="-8.2" y="0.45" z="0.5"
         length="2.5"
         chord="10"
         sweep="58.0"
         taper="0.5"
         dihedral="-10"
         camber="0.0"
         incidence="0.0">
  <stall aoa="30"
         width="5"
         peak="1.3"/>
 </mstab>	 

  <jet x="-12.8" y="0.94" z="-0.18"
       mass="2326"
       thrust="11230"
       afterburner="18300"
       n1-idle="55" n1-max="100" n2-idle="55" n2-max="105"
       exhaust-speed="1550"
       tsfc="0.7"
       rotation="0">
    <actionpt x="-14.745" y="0.94" z="-0.18"/>
    <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[0]/reheat" control="REHEAT"/>
  </jet>
  <jet x="-12.8" y="-0.94" z="-0.18"
       mass="2326"
       thrust="11230"
       afterburner="18300"
       n1-idle="55" n1-max="100" n2-idle="55" n2-max="105"
       exhaust-speed="1550"
       tsfc="0.7"
       rotation="0">
    <actionpt x="-14.745" y="-0.94" z="-0.18"/>
    <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[1]/reheat" control="REHEAT"/>
  </jet>

  <!-- gear -->
  <!-- nose -->
  <gear x="-6.281" y="0" z="-1.739"
        retract-time="8"
        compression="0.3" upx="0" upy="0" upz="0.3">
  <control-input axis="/controls/flight/rudder" control="STEER" square="false"/>
    <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>

  <!-- left main -->
  <gear x="-9.808" y="1.570" z="-1.735"
        retract-time="8"
        compression="0.2" upx="-0.02" upy="-0.1" upz="0.19"
        spring="0.8"
        damp="3">
    <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="8"/>
    <control-speed control="BRAKE" transition-time="1"/>
  </gear>

  <!-- right main -->
  <gear x="-9.808" y="-1.570" z="-1.735"
        retract-time="8"
        compression="0.2" upx="-0.02" upy="0.01" upz="0.19"
        spring="0.8" damp="3">
    <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="8"/>
    <control-speed control="BRAKE" transition-time="1"/>
  </gear>


  <tank x="-8.1" y="0.9" z="-0.25" jet="true" capacity="1724"/>
  <tank x="-8.1" y="-0.9" z="-0.25" jet="true" capacity="1724"/>
  <!-- left wing tank -->
  <tank x="-10.2" y="2.7" z="0.26" jet="true" capacity="1724"/>
  <!-- right wing tank -->
  <tank x="-10.2" y="-2.7" z="0.26" jet="true" capacity="1724"/>


  <!-- ballast
  <ballast x="-3.05" y="0" z="-0.1" mass="1000"/>
 
  <ballast x="-2.74" y="0" z="-0.35" mass="1200"/>
-->
  <ballast x="-3" y="0" z="-0.2" mass="7200"/>


<!--
<ballast x="-0.9" y="0" z="-0.75" mass ="500"/>
-->
<ballast x="-15.0" y="0" z="-0.75" mass ="400"/>

  <weight x="-4.5" y="0" z="0.6" mass-prop="/yasim/weights/pilot-lb"/>
  <!--<weight x="-0.39" y="0" z="-1.33" size="1.5"
        mass-prop="/yasim/hunter/weights/right-inboard-lbs"/>
<weight x="-0.79" y="2" z="-1.33" size="1"
        mass-prop="/yasim/hunter/weights/left-inboard-lbs"/>-->

</airplane>
