<!-- Original Harrier FDM is made by Andy Ross
Hawker Siddeley Harrier GR.1 modifications by StuartC -->

<airplane mass="14052">

<!-- Approach configuration -->
<approach speed="135" aoa="8" fuel="0.1">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="0.25"/>
  <control-setting axis="/controls/flight/flaps" value="1.0"/>
  <control-setting axis="/controls/gear/gear-down" value="1"/>
</approach>

<!-- Cruise configuration -->
<cruise speed="560" alt="250" fuel="0.4">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="1.0"/>
  <control-setting axis="/controls/flight/flaps" value="0.0"/>
  <control-setting axis="/controls/gear/gear-down" value="0"/>
</cruise>

<cockpit x="-3.15" y="0.00" z="1.48"/>

<fuselage ax="0.00" ay="0.00" az="0.00"
          bx="-15.57" by="0.00" bz="1.11"
          width="1.6" taper="0.1" midpoint="0.3"/>

<wing x="-7.32" y="0.46" z="0.93" length="3.71" chord="3.15"
      taper=".294" sweep="28" dihedral="-11" camber="0.05">
  <stall aoa="21" width="8" peak="1.3"/>
  <flap0 start="0.11" end="0.56" lift="1.5" drag="1.2"/>
  <flap1 start="0.56" end="0.91" lift="1.2" drag="1.2"/>
  <!--spoiler is in the wrong location and should actually be an airbrake, but good enough-->
  <spoiler start="0" end="0.34" lift="0.6" drag="10"/>
  <control-input axis="/controls/flight/spoilers" control="SPOILER"/>
  <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-output control="SPOILER" prop="/surface-positions/speedbrake-pos-norm"/>  
  <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"/>
</wing>

<hstab x="-12.23" y="0.00" z="0.93" length="2.04" chord="1.48"
       taper=".313" sweep="24.5" dihedral="-12">
  <stall aoa="14" width="30" peak="1.5"/>
  <flap0 start="0" end="1.3" lift="2.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="-12.51" y="0.00" z="1.20" length="2.78" chord="2.41"
       taper=".308" sweep="23.5">
  <stall aoa="14" width="30" peak="1.5"/>
  <flap0 start="0.00" end="0.80" lift="1.5" drag="1.2"/>
  <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>

<jet x="-6.12" y="0" z="0.56" mass="3000" thrust="20500" rotate="-99">
  <actionpt x="-7.452" y="0" z="0.671"/>
  <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
  <control-input axis="/controls/engines/engine[0]/mixture" control="VECTOR"
                 src0="0" src1="1" dst0="1" dst1="0"/>
</jet>

<!-- Harriers have little "reactor" jets to change the aircraft's
     orientation during hover.  I've been unable to find a good
     reference for where these are, exactly.  I've chosen to put the
     pitch and yaw jets in the tail, and the roll jets point down from
     the wingtips.  This makes logical sense, but I'd be pleased if
     anyone can find better info. -->

<!-- tail jets: left yaw, right yaw and pitch down -->
<!-- old values 
<thruster x="-15" y="0" z="1" vx="0" vy="1" vz="0" thrust="200">
  <control-input axis="/controls/flight/rudder" control="THROTTLE"
           src0="0" src1="1" dst0="0" dst1="1"/>
  <control-input axis="/orientation/yaw-rate-degps" control="THROTTLE"
           src0="-5" src1="0" dst0="0.3" dst1="0"/>
</thruster>
<thruster x="-15" y="0" z="1" vx="0" vy="-1" vz="0" thrust="200">
  <control-input axis="/controls/flight/rudder" control="THROTTLE"
           src0="-1" src1="0" dst0="1" dst1="0"/>
  <control-input axis="/orientation/yaw-rate-degps" control="THROTTLE"
           src0="0" src1="5" dst0="0" dst1="0.3"/>
</thruster>
-->

<thruster x="-13.5" y="0" z="1" vx="0" vy="1" vz="0" thrust="800">
  <control-input axis="/controls/flight/rudder" control="THROTTLE"
           src0="0" src1="1" dst0="0" dst1="1"/>
  <control-input axis="/orientation/yaw-rate-degps" control="THROTTLE"
           src0="-5" src1="0" dst0="0.3" dst1="0"/>
</thruster>
<thruster x="-13.5" y="0" z="1" vx="0" vy="-1" vz="0" thrust="800">
  <control-input axis="/controls/flight/rudder" control="THROTTLE"
           src0="-1" src1="0" dst0="1" dst1="0"/>
  <control-input axis="/orientation/yaw-rate-degps" control="THROTTLE"
           src0="0" src1="5" dst0="0" dst1="0.3"/>
</thruster>		   

<thruster x="-15" y="0" z="1" vx="0" vy="0" vz="1" thrust="200">
  <control-input axis="/controls/flight/elevator" control="THROTTLE"
           src0="0" src1="1" dst0="0" dst1="1"/>
  <control-input axis="/orientation/pitch-rate-degps" control="THROTTLE"
           src0="0" src1="2" dst0="0" dst1="0.3"/>
</thruster>

<!-- wingtip jets for roll  -->
<thruster x="-9.2" y="3.34" z="0" vx="0" vy="0" vz="1" thrust="250">
  <control-input axis="/controls/flight/aileron" control="THROTTLE"
           src0="0" src1="1" dst0="0" dst1="1"/>
  <control-input axis="/orientation/roll-rate-degps" control="THROTTLE"
           src0="-2" src1="0" dst0="0.3" dst1="0"/>
</thruster>
<thruster x="-9.2" y="3.34" z="0" vx="0" vy="0" vz="-1" thrust="250">
  <control-input axis="/controls/flight/aileron" control="THROTTLE"
           src0="-1" src1="0" dst0="1" dst1="0"/>
  <control-input axis="/orientation/roll-rate-degps" control="THROTTLE"
           src0="0" src1="2" dst0="0" dst1="0.3"/>
</thruster>
<thruster x="-9.2" y="-3.34" z="0" vx="0" vy="0" vz="1" thrust="250">
  <control-input axis="/controls/flight/aileron" control="THROTTLE"
           src0="-1" src1="0" dst0="1" dst1="0"/>
  <control-input axis="/orientation/roll-rate-degps" control="THROTTLE"
           src0="0" src1="2" dst0="0" dst1="0.3"/>
</thruster>
<thruster x="-9.2" y="-3.34" z="0" vx="0" vy="0" vz="-1" thrust="250">
  <control-input axis="/controls/flight/aileron" control="THROTTLE"
           src0="0" src1="1" dst0="0" dst1="1"/>
  <control-input axis="/orientation/roll-rate-degps" control="THROTTLE"
           src0="-2" src1="0" dst0="0.3" dst1="0"/>
</thruster>

<!-- nose jet for pitch up -->
<thruster x="0" y="0" z="0" vx="0" vy="0" vz="1" thrust="350">
  <control-input axis="/controls/flight/elevator" control="THROTTLE"
           src0="-1" src1="0" dst0="1" dst1="0"/>
  <control-input axis="/orientation/pitch-rate-degps" control="THROTTLE"
           src0="-2" src1="0" dst0="0.3" dst1="0"/>
</thruster>


<!-- Forward main -->
<gear x="-4.91" y="0.00" z="-2.0" compression="0.75" spring="3.0" damp="3.0">
  <control-input axis="/controls/flight/rudder" control="STEER" square="true"/>
  <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[0]/position-norm"/>
  <control-speed control="EXTEND" transition-time="7"/>
</gear>

<!-- Rear main -->
<gear x="-8.25" y="0.00" z="-1.5" compression="0.25" spring="1.0" damp="3.0">
  <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>

<!-- Wingtip gear -->
<gear x="-8.90" y="3.24"  z="-1.41" compression="0.25" spring="0.3" castering="1" damp="1.0">
  <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="-8.90" y="-3.24" z="-1.41" compression="0.25" spring="0.3" castering="1" damp="1.0">
  <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>

<!-- This capacity is right, but I'm not sure what the tank
     configuration of the main tank is.  Just put it all at the wing
     root. -->
<tank x="-7.32" y="0" z="0.5" jet="true" capacity="5140"/>

<!-- Two 100 gallon (imperial, not US, one assumes) tanks on the
     inboard pylons -->
	 
<tank x="-7.32" y="1.8" z="-0.40" jet="true" capacity="816"/>
<tank x="-7.32" y="-1.8" z="-0.40" jet="true" capacity="816"/>

<ballast x="0" y="0" z="0" mass="600"/>

<weight x="-7.32" y="-2.83" z="-0.60" size="0.18" mass-prop="sim/weight[0]/weight-lb"/>
<weight x="-7.60" y="-1.86" z="-0.40" size="0.18" mass-prop="sim/weight[1]/weight-lb"/>
<weight x="-7.60" y="-0.60" z="-1.0" size="0.18" mass-prop="sim/weight[2]/weight-lb"/>
<weight x="-7.90" y="0.00" z="-1.00" size="0.18" mass-prop="sim/weight[3]/weight-lb"/>
<weight x="-7.60" y="0.60" z="-1.0" size="0.18" mass-prop="sim/weight[4]/weight-lb"/>
<weight x="-7.60" y="1.86" z="-0.40" size="0.18" mass-prop="sim/weight[5]/weight-lb"/>
<weight x="-7.32" y="2.83" z="-0.60" size="0.18" mass-prop="sim/weight[6]/weight-lb"/>

</airplane>
