<!--  TSR2 yasim config.  This is a hack and not an authentic
      representation of the aircraft.  Having said that, the
      numbers, where I could find them, roughly match those of
      the original aircraft.  Lee Elliott.
-->

<airplane mass="54750">

<!-- Approach configuration -->
<approach speed="180" aoa="6.0">
  <control-setting axis="/controls/throttle[0]" value="0.2"/>
  <control-setting axis="/controls/flaps" value="3.0"/>
  <control-setting axis="/controls/gear-down" value="1"/>
</approach>

<!-- Cruise configuration -->
<!-- <cruise speed="500" alt="35000"> -->
<cruise speed="800" alt="35000"> -->
  <control-setting axis="/controls/throttle[0]" value="1.0"/>
  <control-setting axis="/controls/flaps" value="0.0"/>
  <control-setting axis="/controls/gear-down" value="0"/>
</cruise>

<cockpit x="-4.5" y="0.0" z="1.0"/>

<fuselage ax="0" ay="0" az="0" bx="-27.13" by="0" bz=".64"
          width="2.0" taper="0.5" midpoint="0.3"/>

<wing x="-16.0" y="1.5" z="0" taper="0.25"
      length="5.0" chord="6.0" sweep="50" dihedral="-1.0" camber="0.1">
  <stall aoa="3.0" width="5" peak="1.3"/>
  <flap0 start="0.0" end="0.5" lift="2.0" drag="2.1"/>
  <flap1 start="0.5" end="1.0" lift="1.15" drag="1.3"/>
  <control-input axis="/controls/flaps" control="FLAP0"/>
  <control-input axis="/controls/aileron" control="FLAP1" split="true"/>
  <control-input axis="/controls/aileron-trim" control="FLAP1" split="true"/>
  <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="5"/>
</wing>

<hstab x="-23.0" y="-1.0" z="0.5" taper=".2" effectiveness="1.0"
       length="3.0" chord="4.0" sweep="55" dihedral="-3.0">
  <stall aoa="3.0" width="10" peak="1.5"/>
  <flap0 start="0" end="1" lift="1.7" drag="2.0"/>
  <control-input axis="/controls/elevator" control="FLAP0"/>
  <control-input axis="/controls/elevator-trim" control="FLAP0"/>
  <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
</hstab>

<vstab x="-23.0" y="0" z="1.38" taper=".176"
       length="4.5" chord="4.0" sweep="50">
  <stall aoa="3.0" width="10" peak="1.5"/>
  <flap0 start="0" end="1" lift="1.15" drag="1.3"/>
  <control-input axis="/controls/rudder" control="FLAP0" invert="true"/>
  <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
</vstab>

<jet x="-21.0" y="-1.0" z=".44" mass="4000" thrust="16600" afterburner="30600">
<!-- <jet x="-22.0" y="-1.0" z=".44" mass="4000" thrust="30600"> -->
  <control-input axis="/controls/throttle[0]" control="THROTTLE"/>
  <control-input axis="/controls/afterburner[0]" control="REHEAT"/>
</jet>

<jet x="-21.0" y="1.0" z=".44" mass="4000" thrust="16600" afterburner="30600">
<!-- <jet x="-22.0" y="1.0" z=".44" mass="4000" thrust="30600"> -->
  <control-input axis="/controls/throttle[1]" control="THROTTLE"/>
  <control-input axis="/controls/afterburner[1]" control="REHEAT"/>
</jet>

<!-- nose -->
<gear x="-8.0" y="0" z="-1.93" retract-time="7" compression="1.3">
  <control-input axis="/controls/rudder" control="STEER" square="true"/>
  <control-input axis="/controls/gear-down" control="EXTEND"/>
  <control-speed control="EXTEND" transition-time="7"/>
  <control-output control="EXTEND" prop="/gear/gear/position-norm"/>
</gear>

<!-- left main -->
<gear x="-19.0" y="1.19" z="-1.56" retract-time="7" compression="0.2">
  <control-input axis="/controls/brakes[0]" control="BRAKE"/>
  <control-input axis="/controls/gear-down" control="EXTEND"/>
  <control-speed control="EXTEND" transition-time="7"/>
  <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
</gear>

<!-- right main -->
<gear x="-19.0" y="-1.19" z="-1.56" retract-time="7" compression="0.2">
  <control-input axis="/controls/brakes[1]" control="BRAKE"/>
  <control-input axis="/controls/gear-down" control="EXTEND"/>
  <control-speed control="EXTEND" transition-time="7"/>
  <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>
</gear>

<tank x="-12.0" y="0" z="0.5" jet="true" capacity="11000"/>
<tank x="-13.0" y="0" z="0" jet="true" capacity="12000"/>
<tank x="-14.0" y="0" z="0" jet="true" capacity="12000"/>

<ballast x="-11.0" y="0" z="1" mass="1000"/> <!-- avionics -->

</airplane>
