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

<!-- Junkers Ju 3910      : BARANGER Emmanuel (2014)
                  updated : BARANGER Emmanuel (01/2020)
                  updated : BARANGER Emmanuel (04/2022)

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

     Wingspan             : 50.30 m  ( 165 ft 1 in )
     Lenght               : 34.20 m  ( 112 ft 2 in )
     Height               :  6.89 m  (  22 ft 7 in )
     Empty weight         : 53112 kg ( 117092 lb   )
     Max takeoff weight   : 75500 kg ( 166450 lb   )
     Engines              :  6 BMW 801G-2 radial engines ( 1700 hp each )
     Maximum speed        : 505 km/h ( 272.68 kt   )
-->
<airplane mass="117092" version="YASIM_VERSION_CURRENT" mtow-lbs="166450">

  <approach speed="100" aoa="4" fuel="0.3">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.5"/>
    <control-setting axis="/controls/engines/engine[0]/boost"           value="0"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.5"/>
    <control-setting axis="/controls/engines/engine[1]/boost"           value="0"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/engines/engine[2]/throttle"        value="0.5"/>
    <control-setting axis="/controls/engines/engine[2]/boost"           value="0"/>
    <control-setting axis="/controls/engines/engine[2]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[2]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/engines/engine[3]/throttle"        value="0.5"/>
    <control-setting axis="/controls/engines/engine[3]/boost"           value="0"/>
    <control-setting axis="/controls/engines/engine[3]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[3]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/engines/engine[4]/throttle"        value="0.5"/>
    <control-setting axis="/controls/engines/engine[4]/boost"           value="0"/>
    <control-setting axis="/controls/engines/engine[4]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[4]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/engines/engine[5]/throttle"        value="0.5"/>
    <control-setting axis="/controls/engines/engine[5]/boost"           value="0"/>
    <control-setting axis="/controls/engines/engine[5]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[5]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/flight/flaps"                      value="1"/>
    <control-setting axis="/controls/gear/gear-down"                    value="1"/>
  </approach>

  <cruise speed="240" alt="21000" fuel="0.1">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="1"/>
    <control-setting axis="/controls/engines/engine[1]/throttle"        value="1"/>
    <control-setting axis="/controls/engines/engine[2]/throttle"        value="1"/>
    <control-setting axis="/controls/engines/engine[3]/throttle"        value="1"/>
    <control-setting axis="/controls/engines/engine[4]/throttle"        value="1"/>
    <control-setting axis="/controls/engines/engine[5]/throttle"        value="1"/>

    <control-setting axis="/controls/engines/engine[0]/boost"           value="1"/>
    <control-setting axis="/controls/engines/engine[1]/boost"           value="1"/>
    <control-setting axis="/controls/engines/engine[2]/boost"           value="1"/>
    <control-setting axis="/controls/engines/engine[3]/boost"           value="1"/>
    <control-setting axis="/controls/engines/engine[4]/boost"           value="1"/>
    <control-setting axis="/controls/engines/engine[5]/boost"           value="1"/>

    <control-setting axis="/controls/engines/engine[0]/mixture"         value="0.4"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="0.4"/>
    <control-setting axis="/controls/engines/engine[2]/mixture"         value="0.4"/>
    <control-setting axis="/controls/engines/engine[3]/mixture"         value="0.4"/>
    <control-setting axis="/controls/engines/engine[4]/mixture"         value="0.4"/>
    <control-setting axis="/controls/engines/engine[5]/mixture"         value="0.4"/>

    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/engines/engine[2]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/engines/engine[3]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/engines/engine[4]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/engines/engine[5]/propeller-pitch" value="1"/>

    <control-setting axis="/controls/flight/flaps"                      value="0"/>
    <control-setting axis="/controls/gear/gear-down"                    value="0"/>
  </cruise>

  <cockpit x="6.425" y="0.397" z="0.475"/>

  <!-- Fuselage -->
  <fuselage ax=" 17.056" ay="  0.000" az="-0.901" bx=" 16.822" by="  0.000" bz="-0.901" width="0.714" taper="0.60" midpoint="1"/>
  <fuselage ax=" 16.822" ay="  0.000" az="-0.901" bx=" 16.084" by="  0.000" bz="-0.857" width="1.549" taper="0.45" midpoint="1"/>
  <fuselage ax=" 16.084" ay="  0.000" az="-0.868" bx=" 15.607" by="  0.066" bz="-0.812" width="1.798" taper="0.85" midpoint="1"/>
  <fuselage ax=" 15.607" ay="  0.066" az="-0.812" bx=" 12.366" by="  0.358" bz="-0.812" width="2.305" taper="0.75" midpoint="1"/>
  <fuselage ax=" 12.366" ay="  0.358" az="-0.812" bx=" -3.848" by="  0.358" bz="-0.812" width="2.305" taper="1.00" midpoint="1"/>
  <fuselage ax=" -3.848" ay="  0.358" az="-0.812" bx="-17.024" by="  0.000" bz=" 1.005" width="2.305" taper="0.40" midpoint="0"/>

  <fuselage ax=" 15.531" ay="  0.037" az=" 0.017" bx=" 14.115" by="  0.250" bz=" 0.268" width="1.452" taper="0.20" midpoint="1"/>
  <fuselage ax=" 14.115" ay="  0.250" az=" 0.297" bx=" 12.405" by="  0.497" bz=" 0.297" width="2.074" taper="0.70" midpoint="1"/>
  <fuselage ax=" 12.405" ay="  0.497" az=" 0.297" bx=" -3.732" by="  0.497" bz=" 0.497" width="2.305" taper="0.90" midpoint="1"/>
  <fuselage ax=" -3.732" ay="  0.497" az=" 0.497" bx="-17.024" by="  0.000" bz=" 1.005" width="2.305" taper="0.40" midpoint="0"/>

  <fuselage ax=" 16.084" ay="  0.000" az="-0.868" bx=" 15.607" by=" -0.066" bz="-0.812" width="1.798" taper="0.85" midpoint="1"/>
  <fuselage ax=" 15.607" ay=" -0.066" az="-0.812" bx=" 12.366" by=" -0.358" bz="-0.812" width="2.305" taper="0.75" midpoint="1"/>
  <fuselage ax=" 12.366" ay=" -0.358" az="-0.812" bx=" -3.848" by=" -0.358" bz="-0.812" width="2.305" taper="1.00" midpoint="1"/>
  <fuselage ax=" -3.848" ay=" -0.358" az="-0.812" bx="-17.024" by="  0.000" bz=" 1.005" width="2.305" taper="0.40" midpoint="0"/>

  <fuselage ax=" 15.531" ay=" -0.037" az=" 0.017" bx=" 14.115" by=" -0.250" bz=" 0.268" width="1.452" taper="0.20" midpoint="1"/>
  <fuselage ax=" 14.115" ay=" -0.250" az=" 0.297" bx=" 12.405" by=" -0.497" bz=" 0.297" width="2.074" taper="0.70" midpoint="1"/>
  <fuselage ax=" 12.405" ay=" -0.497" az=" 0.297" bx=" -3.732" by=" -0.497" bz=" 0.497" width="2.305" taper="0.90" midpoint="1"/>
  <fuselage ax=" -3.732" ay=" -0.497" az=" 0.497" bx="-17.024" by="  0.000" bz=" 1.005" width="2.305" taper="0.40" midpoint="0"/>

  <!-- Engine left interior -->
  <fuselage ax=" 10.465" ay="  3.748" az="-1.095" bx=" 10.231" by="  3.748" bz="-1.095" width="1.563" taper="0.70" midpoint="1"/>
  <fuselage ax=" 10.231" ay="  3.748" az="-1.095" bx="  8.758" by="  3.748" bz="-1.095" width="1.563" taper="1.00" midpoint="1"/>
  <fuselage ax="  8.758" ay="  3.748" az="-1.095" bx="  7.941" by="  3.748" bz="-1.095" width="1.419" taper="0.93" midpoint="0"/>
  <fuselage ax="  7.941" ay="  3.748" az="-1.095" bx="  6.088" by="  3.748" bz="-1.480" width="1.713" taper="0.76" midpoint="1"/>
  <fuselage ax="  6.260" ay="  3.748" az="-1.480" bx="  4.310" by="  3.748" bz="-1.480" width="1.713" taper="0.75" midpoint="0"/>
  <fuselage ax="  4.480" ay="  3.748" az="-1.482" bx="  2.338" by="  3.748" bz="-1.348" width="1.282" taper="0.50" midpoint="0"/>

  <!-- Engine left center -->
  <fuselage ax=" 10.465" ay="  7.919" az="-1.095" bx=" 10.231" by="  7.919" bz="-1.095" width="1.563" taper="0.70" midpoint="1"/>
  <fuselage ax=" 10.231" ay="  7.919" az="-1.095" bx="  8.758" by="  7.919" bz="-1.095" width="1.563" taper="1.00" midpoint="1"/>
  <fuselage ax="  8.758" ay="  7.919" az="-1.095" bx="  7.941" by="  7.919" bz="-1.095" width="1.419" taper="0.93" midpoint="0"/>
  <fuselage ax="  7.941" ay="  7.919" az="-1.095" bx="  6.088" by="  7.919" bz="-1.480" width="1.713" taper="0.76" midpoint="1"/>
  <fuselage ax="  6.260" ay="  7.919" az="-1.480" bx="  4.310" by="  7.919" bz="-1.480" width="1.713" taper="0.75" midpoint="0"/>
  <fuselage ax="  4.480" ay="  7.919" az="-1.482" bx="  2.338" by="  7.919" bz="-1.348" width="1.282" taper="0.50" midpoint="0"/>

  <!-- Engine left exterior -->
  <fuselage ax=" 10.051" ay=" 11.800" az="-1.095" bx="  9.817" by=" 11.800" bz="-1.095" width="1.563" taper="0.70" midpoint="1"/>
  <fuselage ax="  9.817" ay=" 11.800" az="-1.095" bx="  8.344" by=" 11.800" bz="-1.095" width="1.563" taper="1.00" midpoint="1"/>
  <fuselage ax="  8.344" ay=" 11.800" az="-1.095" bx="  6.527" by=" 11.800" bz="-1.095" width="1.419" taper="0.93" midpoint="0"/>
  <fuselage ax="  6.527" ay=" 11.800" az="-1.095" bx="  5.635" by=" 11.800" bz="-1.095" width="1.323" taper="0.76" midpoint="0"/>
  <fuselage ax="  5.635" ay=" 11.800" az="-1.095" bx="  4.743" by=" 11.800" bz="-1.095" width="1.011" taper="0.70" midpoint="0"/>
  <fuselage ax="  4.743" ay=" 11.800" az="-1.095" bx="  4.253" by=" 11.800" bz="-1.095" width="0.700" taper="0.50" midpoint="0"/>

  <!-- Engine right interior -->
  <fuselage ax=" 10.465" ay=" -3.748" az="-1.095" bx=" 10.231" by=" -3.748" bz="-1.095" width="1.563" taper="0.70" midpoint="1"/>
  <fuselage ax=" 10.231" ay=" -3.748" az="-1.095" bx="  8.758" by=" -3.748" bz="-1.095" width="1.563" taper="1.00" midpoint="1"/>
  <fuselage ax="  8.758" ay=" -3.748" az="-1.095" bx="  7.941" by=" -3.748" bz="-1.095" width="1.419" taper="0.93" midpoint="0"/>
  <fuselage ax="  7.941" ay=" -3.748" az="-1.095" bx="  6.088" by=" -3.748" bz="-1.480" width="1.713" taper="0.76" midpoint="1"/>
  <fuselage ax="  6.260" ay=" -3.748" az="-1.480" bx="  4.310" by=" -3.748" bz="-1.480" width="1.713" taper="0.75" midpoint="0"/>
  <fuselage ax="  4.480" ay=" -3.748" az="-1.482" bx="  2.338" by=" -3.748" bz="-1.348" width="1.282" taper="0.50" midpoint="0"/>

  <!-- Engine right center -->
  <fuselage ax=" 10.465" ay=" -7.919" az="-1.095" bx=" 10.231" by=" -7.919" bz="-1.095" width="1.563" taper="0.70" midpoint="1"/>
  <fuselage ax=" 10.231" ay=" -7.919" az="-1.095" bx="  8.758" by=" -7.919" bz="-1.095" width="1.563" taper="1.00" midpoint="1"/>
  <fuselage ax="  8.758" ay=" -7.919" az="-1.095" bx="  7.941" by=" -7.919" bz="-1.095" width="1.419" taper="0.93" midpoint="0"/>
  <fuselage ax="  7.941" ay=" -7.919" az="-1.095" bx="  6.088" by=" -7.919" bz="-1.480" width="1.713" taper="0.76" midpoint="1"/>
  <fuselage ax="  6.260" ay=" -7.919" az="-1.480" bx="  4.310" by=" -7.919" bz="-1.480" width="1.713" taper="0.75" midpoint="0"/>
  <fuselage ax="  4.480" ay=" -7.919" az="-1.482" bx="  2.338" by=" -7.919" bz="-1.348" width="1.282" taper="0.50" midpoint="0"/>

  <!-- Engine right exterior -->
  <fuselage ax=" 10.051" ay="-11.800" az="-1.095" bx="  9.817" by="-11.800" bz="-1.095" width="1.563" taper="0.70" midpoint="1"/>
  <fuselage ax="  9.817" ay="-11.800" az="-1.095" bx="  8.344" by="-11.800" bz="-1.095" width="1.563" taper="1.00" midpoint="1"/>
  <fuselage ax="  8.344" ay="-11.800" az="-1.095" bx="  6.527" by="-11.800" bz="-1.095" width="1.419" taper="0.93" midpoint="0"/>
  <fuselage ax="  6.527" ay="-11.800" az="-1.095" bx="  5.635" by="-11.800" bz="-1.095" width="1.323" taper="0.76" midpoint="0"/>
  <fuselage ax="  5.635" ay="-11.800" az="-1.095" bx="  4.743" by="-11.800" bz="-1.095" width="1.011" taper="0.70" midpoint="0"/>
  <fuselage ax="  4.743" ay="-11.800" az="-1.095" bx="  4.253" by="-11.800" bz="-1.095" width="0.700" taper="0.50" midpoint="0"/>

  <!-- Wing -->
  <wing x="4.330" y="0" z="-0.875"
        chord    = "6.595"
        length   = "12.211"
        taper    = "1"
        dihedral = "0"
        sweep    = "0"
        camber   = "0.008">
        <stall   aoa="18" width="1" peak="3.5"/>
        <flap0 start="0.16" end="1" lift="1.2" drag="1.2"/>

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

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

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

  <wing x="4.330" y="12.21130" z="-0.875"
        append   = "1"
        chord    = "6.595"
        length   = "12.902"
        taper    = "0.4"
        dihedral = "3"
        sweep    = "3">
        <stall   aoa="18" width="1" peak="3.5"/>
        <flap0 start="0"    end="1" lift="1.6" drag="1.2"/>

        <control-input  control="FLAP0" axis="/controls/flight/aileron"                  split="true"/>
        <control-input  control="FLAP0" axis="/controls/flight/aileron-trim"             split="true"/>

        <control-output control="FLAP0" prop="/surface-positions/left-aileron-pos-norm"  side="left"/>
        <control-output control="FLAP0" prop="/surface-positions/right-aileron-pos-norm" side="right"/>
  </wing>

  <!-- Elevator -->
  <hstab x="-14.095" y="0" z="1.029"
         chord    = "3.285"
         length   = "7.334"
         taper    = "1"
         dihedral = "9.5">
         <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/elevator"/>
         <control-input  control="FLAP0" axis="/controls/flight/elevator-trim"/>

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

  <!-- Ruder -->
  <vstab x="-14.296" y="7.525" z="0.103"
         chord    = "3.670"
         length   = "4.194"
         sweep    = "4"
         dihedral = "96"
         taper    = "0.6">
         <stall   aoa="14" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.4" 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>

  <vstab x="-14.296" y="-7.525" z="0.103"
         chord    = "3.670"
         length   = "4.194"
         sweep    = "4"
         dihedral = "84"
         taper    = "0.6">
         <stall   aoa="14" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.4" drag="1.5"/>

         <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>

  <!-- Engines   source       : http://en.wikipedia.org/wiki/BMW_801

                 Engine       : BMW 801
                 type         : 14-cylinder supercharged two-row air-cooled radial engine
                 power        : 1742 hp at 2700 rpm for takeoff at sea level
                 weight       : 1012 kg ( 2226 lb  )
                 Displacement : 41.8 l  ( 2560 in3 )
                 Compression  : 6.5:1
  -->
  <!-- Engine left exterior-->
  <propeller x="9.683" y="11.800" z="-1.095"
             mass         = "2226"
             moment       = "50"
             radius       = "1.9"
             cruise-speed = "236"
             cruise-rpm   = "2550"
             cruise-power = "1500"
             cruise-alt   = "16000"
             min-rpm      = "250"
             max-rpm      = "2800">
             <actionpt x="10.22494" y="11.80005" z="-1.09583"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <piston-engine eng-power    = "1742"
                            eng-rpm      = "2700"
                            displacement = "2560"
                            compression  = "6.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[0]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[0]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[0]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[0]/mixture"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[0]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Engine left center -->
  <propeller x="10.063" y="7.919" z="-1.095"
             mass         = "2226"
             moment       = "50"
             radius       = "1.9"
             cruise-speed = "236"
             cruise-rpm   = "2550"
             cruise-power = "1500"
             cruise-alt   = "16000"
             min-rpm      = "250"
             max-rpm      = "2800">
             <actionpt x="10.61294" y="7.91921" z="-1.09583"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[1]/propeller-pitch"/>
             <piston-engine eng-power    = "1742"
                            eng-rpm      = "2700"
                            displacement = "2560"
                            compression  = "6.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[1]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[1]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[1]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[1]/mixture"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[1]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Engine left interior -->
  <propeller x="10.070" y="3.748" z="-1.095"
             mass         = "2226"
             moment       = "50"
             radius       = "1.9"
             cruise-speed = "236"
             cruise-rpm   = "2550"
             cruise-power = "1500"
             cruise-alt   = "16000"
             min-rpm      = "250"
             max-rpm      = "2800">
             <actionpt x="10.61294" y="3.74842" z="-1.09583"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[2]/propeller-pitch"/>
             <piston-engine eng-power    = "1742"
                            eng-rpm      = "2700"
                            displacement = "2560"
                            compression  = "6.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[2]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[2]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[2]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[2]/mixture"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[2]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Engine right interior -->
  <propeller x="10.070" y="-3.748" z="-1.095"
             mass         = "2226"
             moment       = "50"
             radius       = "1.9"
             cruise-speed = "236"
             cruise-rpm   = "2550"
             cruise-power = "1500"
             cruise-alt   = "16000"
             min-rpm      = "250"
             max-rpm      = "2800">
             <actionpt x="10.61294" y="-3.74842" z="-1.09583"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[3]/propeller-pitch"/>
             <piston-engine eng-power    = "1742"
                            eng-rpm      = "2700"
                            displacement = "2560"
                            compression  = "6.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[3]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[3]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[3]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[3]/mixture"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[3]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Engine right center -->
  <propeller x="10.063" y="-7.919" z="-1.095"
             mass         = "2226"
             moment       = "50"
             radius       = "1.9"
             cruise-speed = "236"
             cruise-rpm   = "2550"
             cruise-power = "1500"
             cruise-alt   = "16000"
             min-rpm      = "250"
             max-rpm      = "2800">
             <actionpt x="10.61294" y="-7.91921" z="-1.09583"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[4]/propeller-pitch"/>
             <piston-engine eng-power    = "1742"
                            eng-rpm      = "2700"
                            displacement = "2560"
                            compression  = "6.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[4]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[4]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[4]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[4]/mixture"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[4]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Engine right exterior-->
  <propeller x="9.683" y="-11.800" z="-1.095"
             mass         = "2226"
             moment       = "50"
             radius       = "1.9"
             cruise-speed = "236"
             cruise-rpm   = "2550"
             cruise-power = "1500"
             cruise-alt   = "16000"
             min-rpm      = "250"
             max-rpm      = "2800">
             <actionpt x="10.22494" y="-11.80005" z="-1.09583"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[5]/propeller-pitch"/>
             <piston-engine eng-power    = "1742"
                            eng-rpm      = "2700"
                            displacement = "2560"
                            compression  = "6.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[5]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[5]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[5]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[2]/mixture"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[5]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Left wheel exterior -->
  <gear x="6.855" y="7.989" z="-4.352"
        compression = "0.2"
        spring      = "1"
        damp        = "1.5"
        sfric       = "1.2"
        dfric       = "1.2"
        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[0]/position-norm"/>

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

  <!-- Left wheel interior -->
  <gear x="6.855" y="3.808" z="-4.352"
        compression = "0.2"
        spring      = "1"
        damp        = "1.5"
        sfric       = "1.2"
        dfric       = "1.2"
        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>

  <!-- Right wheel interior -->
  <gear x="6.855" y="-3.808" z="-4.352"
        compression = "0.2"
        spring      = "1"
        damp        = "1.5"
        sfric       = "1.2"
        dfric       = "1.2"
        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[2]/position-norm"/>

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

  <!-- Right wheel exterior -->
  <gear x="6.855" y="-7.989" z="-4.352"
        compression = "0.2"
        spring      = "1"
        damp        = "1.5"
        sfric       = "1.2"
        dfric       = "1.2"
        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[3]/position-norm"/>

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

  <!-- Tail wheel -->
  <gear x="-13.966" y="0" z="-1.246"
        compression = "0.05"
        spring      = "1"
        damp        = "1.50"
        stiction    = "1">
        <control-input  control="STEER"  axis="/controls/flight/rudder" square="true" src0="-1.0" src1="1.0" dst0="0.8" dst1="-0.8"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

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

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

  <tank x="2.466" y=" 4.817" z="0.136" capacity="2000"/>
  <tank x="2.466" y="-4.817" z="0.136" capacity="2000"/>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
                 6.595 / 6     = 1.099
                 4.330 + 1.099 = 5.429
  -->
  <ballast x="17" y="0" z="-1.1" mass="20880"/>

</airplane>
