<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Boeing 737-200  : BARANGER Emmanuel (   2009)
             Updated : BARANGER Emmanuel (04/2021)
             Updated : BARANGER Emmanuel (01/2026)

     Sources : http://en.wikipedia.org/wiki/Boeing_737

     Wingspan        : 28.35 m    (     93 ft 0 in)
     Lenght          : 30.53 m    (    100 ft 2 in)
     Height          : 11.30 m    (     37 ft 0 in)
     Empty mass      : 31600 kg   (  69700 lb     )
     Max. mass       : 58100 kg   ( 128100 lb     )
     Cruise speed    : 780 km/h   (    421 kt     )
     Maximum speed   :   876 km/h (    473 kt     )
-->
<airplane mass="69700" version="YASIM_VERSION_CURRENT" mtow-lbs="128000">

  <!-- Approach configuration -->
  <approach          speed="140" aoa="5"                         fuel="0.30">
    <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="1"/>
    <control-setting axis="/controls/gear/gear-down"             value="1"/>
  </approach>

  <!-- Cruise configuration -->
  <cruise            speed="421" alt="10000"                     fuel="0.7">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.7"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="0.7"/>
    <control-setting axis="/controls/flight/flaps"               value="0"/>
    <control-setting axis="/controls/flight/elevator-trim"       value="0"/>
    <control-setting axis="/controls/gear/gear-down"             value="0"/>
  </cruise>

  <cockpit x="11.743" y="0.485" z="-1.726"/>

  <!-- Cabine -->
  <fuselage ax=" 13.891" ay=" 0.000" az="-2.726" bx=" 12.824" by=" 0.000" bz="-2.391" width="2.33" taper="0.60" midpoint="1"/>
  <fuselage ax=" 13.015" ay=" 0.000" az="-2.393" bx=" 11.060" by=" 0.000" bz="-2.136" width="2.83" taper="0.80" midpoint="1"/>
  <fuselage ax=" 11.249" ay=" 0.000" az="-2.136" bx="  8.418" by=" 0.000" bz="-2.221" width="3.46" taper="0.80" midpoint="1"/>

  <!-- Fuselage -->
  <fuselage ax=" 15.297" ay=" 0.000" az="-2.896" bx=" 14.044" by=" 0.000" bz="-2.834" width="1.65" taper="0.20" midpoint="1"/>
  <fuselage ax=" 14.044" ay=" 0.000" az="-2.834" bx=" 11.804" by=" 0.000" bz="-2.783" width="2.97" taper="0.55" midpoint="1"/>
  <fuselage ax=" 11.804" ay=" 0.000" az="-2.783" bx="  8.385" by=" 0.000" bz="-2.476" width="3.93" taper="0.78" midpoint="1"/>
  <fuselage ax="  8.400" ay=" 0.000" az="-2.476" bx=" -3.553" by=" 0.000" bz="-2.353" width="3.93" taper="1.00" midpoint="1"/>
  <fuselage ax=" -3.553" ay=" 0.000" az="-2.353" bx="-14.315" by=" 0.000" bz="-1.166" width="3.93" taper="0.20" midpoint="0"/>

  <!-- Engines -->
  <fuselage ax="  3.440" ay=" 5.082" az="-4.207" bx="  2.875" by=" 5.082" bz="-4.207" width="1.20" taper="0.90" midpoint="1"/>
  <fuselage ax="  2.875" ay=" 5.082" az="-4.207" bx=" -2.210" by=" 5.082" bz="-4.207" width="1.20" taper="0.90" midpoint="0"/>

  <fuselage ax="  3.440" ay="-5.082" az="-4.207" bx="  2.875" by="-5.082" bz="-4.207" width="1.20" taper="0.90" midpoint="1"/>
  <fuselage ax="  2.875" ay="-5.082" az="-4.207" bx=" -2.210" by="-5.082" bz="-4.207" width="1.20" taper="0.90" midpoint="0"/>

  <wing x="2.236" y="0.000" z="-3.64"
        chord    = "7.575"
        length   = "5.5"
        taper    = "0.5"
        sweep    = "20"
        dihedral = "5"
        camber   = "0.09">
        <stall     aoa="20" width="1"    peak="1.5"/>
        <slat    start="0.13" end="1.00"  aoa="2"   drag="1.2"/>
        <flap0   start="0.39" end="0.87" lift="1.4" drag="2"/>
        <spoiler start="0.38" end="0.82" lift="0.2" drag="2.0"/>

        <control-input  control="SLAT"    axis="/surface-positions/flap-pos-norm"/>
        <control-input  control="FLAP0"   axis="/controls/flight/flaps"/>
        <control-input  control="SPOILER" axis="/controls/flight/spoilers"/>

        <control-output control="FLAP0"   prop="/surface-positions/slats"/>
        <control-output control="FLAP0"   prop="/surface-positions/flap-pos-norm"/>
        <control-output control="SPOILER" prop="/surface-positions/speedbrake-norm"/>

        <control-speed  control="FLAP0"   transition-time="10"/>
        <control-speed  control="SPOILER" transition-time="5"/>
  </wing>

  <wing x="0.354" y="5.148" z="-3.189"
        append   = "1"
        chord    = "3.787"
        length   = "9.65"
        taper    = "0.42"
        sweep    = "20"
        dihedral = "6.5"
        camber   = "0.09">
        <stall     aoa="20" width="1"    peak="1.5"/>
        <slat    start="0.13" end="1.00"  aoa="2"   drag="1.2"/>
        <flap0   start="0.05" end="0.65" lift="1.4" drag="2"/>
        <flap1   start="0.65" end="0.89" lift="1.4" drag="1.2"/>
        <spoiler start="0.05" end="0.50" lift="0.2" drag="2.0"/>

        <control-input  control="SLAT"    axis="/surface-positions/flap-pos-norm"/>
        <control-input  control="FLAP0"   axis="/controls/flight/flaps"/>
        <control-input  control="FLAP1"   axis="/controls/flight/aileron"      split="true"/>
        <control-input  control="FLAP1"   axis="/controls/flight/aileron-trim" split="true"/>
        <control-input  control="SPOILER" axis="/controls/flight/spoilers"/>

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

        <control-speed  control="FLAP0"   transition-time="10"/>
        <control-speed  control="SPOILER" transition-time="5"/>
  </wing>

  <hstab x="-11.932" y="0" z="-1.314"
         chord    = "3.945"
         length   = "6.2"
         taper    = "0.35"
         sweep    = "25"
         dihedral = "7">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.5" drag="1.2"/>

         <control-input  control="FLAP0" axis="/controls/flight/elevator"/>
         <control-input  control="FLAP0" axis="/controls/flight/elevator-trim"/>

         <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
  </hstab>

  <vstab x="-10.008" y="0" z="-0.681"
         chord  = "6.725"
         length = "7.5"
         taper  = "0.22"
         sweep  = "34">
         <stall   aoa="16" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.2" drag="1.2"/>

         <control-input  control="FLAP0" axis="/controls/flight/rudder"      invert="true"/>
         <control-input  control="FLAP0" axis="/controls/flight/rudder-trim" invert="true"/>

         <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
  </vstab>

  <!-- Sources : http://en.wikipedia.org/wiki/Pratt_%26_Whitney_JT8D

       Engines   : Pratt & Whitney JT8D
       Type      : Turbofan
       Trust max : 21700 lbf
       Masse     : 3200 lb
  -->
  <!-- Engine left -->
  <jet x="0.966" y="5.082"  z="-4.207"
       mass    = "3200"
       thrust  = "21700"
       n1-idle = "45"
       n1-max  = "105"
       n2-idle = "70"
       n2-max  = "108"
       egt     = "840"
       tsfc    = "0.576"
       rotate  = "0">
       <actionpt x="-1.833" y="5.082" z="-4.207"/>
       <control-input  control="THROTTLE"       axis="/controls/engines/engine[0]/throttle"/>
       <control-input  control="MIXTURE"        axis="/controls/engines/engine[0]/mixture"/>
       <control-input  control="REVERSE_THRUST" axis="/controls/engines/engine[0]/reverser"/>

       <control-output control="REVERSE_THRUST" prop="/surface-positions/reverser-norm[0]"/>

       <control-speed  control="REVERSE_THRUST" transition-time="1.5"/>
  </jet>

  <!-- Engine right -->
  <jet x="0.966" y="-5.082"  z="-4.207"
       mass    = "3200"
       thrust  = "21700"
       n1-idle = "45"
       n1-max  = "105"
       n2-idle = "70"
       n2-max  = "108"
       egt     = "840"
       tsfc    = "0.576"
       rotate  = "0">
       <actionpt x="-1.833" y="-5.082" z="-4.207"/>
       <control-input  control="THROTTLE"       axis="/controls/engines/engine[1]/throttle"/>
       <control-input  control="MIXTURE"        axis="/controls/engines/engine[1]/mixture"/>
       <control-input  control="REVERSE_THRUST" axis="/controls/engines/engine[1]/reverser"/>

       <control-output control="REVERSE_THRUST" prop="/surface-positions/reverser-norm[1]"/>

       <control-speed  control="REVERSE_THRUST" transition-time="1.5"/>
  </jet>

  <!-- nose -->
  <gear x="11.391" y="0.000" z="-5.377"
        compression = "0.4"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="STEER"  axis="/controls/flight/rudder"  src0="-1" src1="1" dst0="-0.8" dst1="0.8"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="7"/>
  </gear>

  <!--thruster for pushback-->
  <thruster x="11.391" y="0.000" z="-5.377"
            vx="1" vy="0" vz="0"
            thrust = "6000">
            <control-input control="THROTTLE" axis="/sim/model/pushback/target-speed-fps" src0="-1" src1="1" dst0="-1" dst1="1"/>
  </thruster>

  <gear x="-0.304" y="2.770" z="-5.631"
        compression = "0.3"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

        <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="5"/>
  </gear>

  <gear x="-0.304" y="-2.770" z="-5.631"
        compression = "0.3"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

        <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="6"/>
  </gear>

  <!-- Quantite max : Centre           8755 L soit 2313 Gal soit envirron 19301 lbs -->
  <!--                Gauche et droite 5674 L soit 1499 Gal soit envirron 12509 lbs chacun -->
  <tank x="-0.443" y=" 7.120" z="-2.972" jet="true" capacity="12509"/>
  <tank x=" 4.494" y=" 0.000" z="-3.698" jet="true" capacity="19301"/>
  <tank x="-0.443" y="-7.120" z="-2.972" jet="true" capacity="12509"/>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
                 7.575 / 6     = 1.262
                 2.236 + 1.262 = 3.498
  -->
  <ballast x="14" y="0" z="-3" mass="23750"/>

</airplane>
