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

<!-- Hughes H4 Hercules : BARANGER Emmanuel (   2009)
                Updated : BARANGER Emmanuel (09/2020)

     source          : http://en.wikipedia.org/wiki/Hughes_H-4_Hercules

     Wingspan        :  97.54 m    (    319 ft 11 in )
     Lenght          :  66.65 m    (    218 ft  8 in )
     Height          :  24.18 m    (     79 ft  4 in )
     Empty mass      : 250000 lb   ( 113398 kg       )
     Max mass        : 400000 lb   ( 180000 kg       )
     Engines         : 8× Pratt & Whitney R-4360-53 "Wasp Major" radials, 3800 hp each
     Cruise speed    : 353.98 km/h (    204 kt       )
-->
<airplane mass="250000" version="YASIM_VERSION_CURRENT" mtow-lbs="400000">

  <approach speed="78" aoa="8.2" fuel="0.3">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="1"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>

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

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

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

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

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

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

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

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

  <cruise speed="204" alt="5000" fuel="0.5">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.7"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>

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

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

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

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

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

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

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

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

  <cockpit x="13.889" y="0.528" z="6.337"/>

  <!-- Fuselage up -->
  <fuselage ax=" 21.370" ay="  0.000" az=" 2.605" bx=" 20.707" by="  0.000" bz=" 2.605" width="2.304" taper="0.20" midpoint="1"/>
  <fuselage ax=" 20.707" ay="  0.000" az=" 2.605" bx=" 19.529" by="  0.000" bz=" 2.657" width="3.522" taper="0.64" midpoint="1"/>
  <fuselage ax=" 19.529" ay="  0.000" az=" 2.657" bx=" 16.830" by="  0.000" bz=" 2.890" width="5.170" taper="0.68" midpoint="1"/>
  <fuselage ax=" 16.830" ay="  0.000" az=" 2.890" bx=" 14.119" by="  0.000" bz=" 3.102" width="6.003" taper="0.86" midpoint="1"/>
  <fuselage ax=" 14.280" ay="  0.000" az=" 3.102" bx="  7.316" by="  0.000" bz=" 3.273" width="6.791" taper="0.88" midpoint="1"/>
  <fuselage ax="  7.316" ay="  0.000" az=" 3.273" bx="-14.070" by="  0.000" bz=" 3.273" width="6.791" taper="1.00" midpoint="1"/>
  <fuselage ax="-14.070" ay="  0.000" az=" 3.273" bx="-45.380" by="  0.000" bz=" 6.419" width="6.791" taper="0.20" midpoint="0"/>
  <!-- Fuselage down -->
  <fuselage ax=" 20.344" ay="  0.000" az=" 2.516" bx=" 19.231" by="  0.000" bz=" 2.127" width="3.522" taper="0.64" midpoint="1"/>
  <fuselage ax=" 19.438" ay="  0.000" az=" 2.169" bx=" 16.789" by="  0.000" bz=" 1.601" width="5.170" taper="0.68" midpoint="1"/>
  <fuselage ax=" 17.040" ay="  0.000" az=" 1.629" bx=" 14.339" by="  0.000" bz=" 1.314" width="6.003" taper="0.86" midpoint="1"/>
  <fuselage ax=" 14.543" ay="  0.000" az=" 1.314" bx="  7.583" by="  0.000" bz=" 1.008" width="6.791" taper="0.88" midpoint="1"/>
  <fuselage ax="  7.733" ay="  0.000" az=" 1.021" bx="-14.070" by="  0.000" bz=" 1.021" width="6.791" taper="0.90" midpoint="0"/>
  <!-- Cabine -->
  <fuselage ax=" 14.632" ay="  0.000" az=" 5.292" bx=" 13.893" by="  0.000" bz=" 5.292" width="2.803" taper="0.64" midpoint="1"/>
  <fuselage ax=" 13.893" ay="  0.000" az=" 5.292" bx="  7.315" by="  0.000" bz=" 5.292" width="2.803" taper="1.00" midpoint="1"/>

  <!-- Engine left 0 -->
  <!-- Bol -->
  <fuselage ax=" 10.361" ay=" 26.156" az=" 6.772" bx="  9.903" by=" 26.156" bz=" 6.772" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax="  9.903" ay=" 26.156" az=" 6.772" bx="  9.543" by=" 26.156" bz=" 6.772" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax="  9.489" ay=" 26.156" az=" 6.772" bx="  9.252" by=" 26.156" bz=" 6.772" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax="  9.252" ay=" 26.156" az=" 6.772" bx="  1.996" by=" 26.156" bz=" 6.772" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine left 1 -->
  <!-- Bol -->
  <fuselage ax=" 11.212" ay=" 19.944" az=" 6.438" bx=" 10.754" by=" 19.944" bz=" 6.438" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax=" 10.754" ay=" 19.944" az=" 6.438" bx=" 10.394" by=" 19.944" bz=" 6.438" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax=" 10.340" ay=" 19.944" az=" 6.438" bx=" 10.103" by=" 19.944" bz=" 6.438" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax=" 10.103" ay=" 19.944" az=" 6.438" bx="  2.847" by=" 19.944" bz=" 6.438" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine left 2 -->
  <!-- Bol -->
  <fuselage ax=" 11.716" ay=" 13.786" az=" 5.905" bx=" 11.258" by=" 13.786" bz=" 5.905" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax=" 11.258" ay=" 13.786" az=" 5.905" bx=" 10.898" by=" 13.786" bz=" 5.905" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax=" 10.844" ay=" 13.786" az=" 5.905" bx=" 10.607" by=" 13.786" bz=" 5.905" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax=" 10.607" ay=" 13.786" az=" 5.905" bx="  3.351" by=" 13.786" bz=" 5.905" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine left 3 -->
  <!-- Bol -->
  <fuselage ax=" 12.529" ay="  7.533" az=" 5.420" bx=" 12.071" by="  7.533" bz=" 5.420" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax=" 12.071" ay="  7.533" az=" 5.420" bx=" 11.711" by="  7.533" bz=" 5.420" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax=" 11.657" ay="  7.533" az=" 5.420" bx=" 11.420" by="  7.533" bz=" 5.420" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax=" 11.420" ay="  7.533" az=" 5.420" bx="  4.164" by="  7.533" bz=" 5.420" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine right 4 -->
  <!-- Bol -->
  <fuselage ax=" 10.361" ay="-26.156" az=" 6.772" bx="  9.903" by="-26.156" bz=" 6.772" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax="  9.903" ay="-26.156" az=" 6.772" bx="  9.543" by="-26.156" bz=" 6.772" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax="  9.489" ay="-26.156" az=" 6.772" bx="  9.252" by="-26.156" bz=" 6.772" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax="  9.252" ay="-26.156" az=" 6.772" bx="  1.996" by="-26.156" bz=" 6.772" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine right 5 -->
  <!-- Bol -->
  <fuselage ax=" 11.212" ay="-19.944" az=" 6.438" bx=" 10.754" by="-19.944" bz=" 6.438" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax=" 10.754" ay="-19.944" az=" 6.438" bx=" 10.394" by="-19.944" bz=" 6.438" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax=" 10.340" ay="-19.944" az=" 6.438" bx=" 10.103" by="-19.944" bz=" 6.438" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax=" 10.103" ay="-19.944" az=" 6.438" bx="  2.847" by="-19.944" bz=" 6.438" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine right 6 -->
  <!-- Bol -->
  <fuselage ax=" 11.716" ay="-13.786" az=" 5.905" bx=" 11.258" by="-13.786" bz=" 5.905" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax=" 11.258" ay="-13.786" az=" 5.905" bx=" 10.898" by="-13.786" bz=" 5.905" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax=" 10.844" ay="-13.786" az=" 5.905" bx=" 10.607" by="-13.786" bz=" 5.905" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax=" 10.607" ay="-13.786" az=" 5.905" bx="  3.351" by="-13.786" bz=" 5.905" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Engine right 7 -->
  <!-- Bol -->
  <fuselage ax=" 12.529" ay=" -7.533" az=" 5.420" bx=" 12.071" by=" -7.533" bz=" 5.420" width="0.770" taper="0.10" midpoint="1"/>
  <fuselage ax=" 12.071" ay=" -7.533" az=" 5.420" bx=" 11.711" by=" -7.533" bz=" 5.420" width="0.933" taper="0.84" midpoint="1"/>
  <!-- Engine -->
  <fuselage ax=" 11.657" ay=" -7.533" az=" 5.420" bx=" 11.420" by=" -7.533" bz=" 5.420" width="1.599" taper="0.80" midpoint="1"/>
  <fuselage ax=" 11.420" ay=" -7.533" az=" 5.420" bx="  4.164" by=" -7.533" bz=" 5.420" width="1.599" taper="1.00" midpoint="1"/>

  <!-- Float left -->
  <fuselage ax="  5.577" ay=" 34.000" az=" 1.759" bx="  5.134" by=" 34.000" bz=" 1.674" width="1.348" taper="0.20" midpoint="1"/>
  <fuselage ax="  5.134" ay=" 34.000" az=" 1.674" bx="  3.987" by=" 34.000" bz=" 1.397" width="2.160" taper="0.64" midpoint="1"/>
  <fuselage ax="  3.987" ay=" 34.000" az=" 1.397" bx="  1.539" by=" 34.000" bz=" 0.874" width="2.160" taper="1.00" midpoint="1"/>
  <fuselage ax="  1.776" ay=" 34.000" az=" 0.874" bx=" -2.079" by=" 34.000" bz=" 0.874" width="2.160" taper="0.10" midpoint="0"/>

  <!-- Float right -->
  <fuselage ax="  5.577" ay="-34.000" az=" 1.759" bx="  5.134" by="-34.000" bz=" 1.674" width="1.348" taper="0.20" midpoint="1"/>
  <fuselage ax="  5.134" ay="-34.000" az=" 1.674" bx="  3.987" by="-34.000" bz=" 1.397" width="2.160" taper="0.64" midpoint="1"/>
  <fuselage ax="  3.987" ay="-34.000" az=" 1.397" bx="  1.539" by="-34.000" bz=" 0.874" width="2.160" taper="1.00" midpoint="1"/>
  <fuselage ax="  1.776" ay="-34.000" az=" 0.874" bx=" -2.079" by="-34.000" bz=" 0.874" width="2.160" taper="0.10" midpoint="0"/>

  <wing x="-0.342" y="0" z="5.031"
        chord="16.359"
        length="48.776"
        taper="0.415"
        dihedral="4"
        sweep="1"
        camber="0.145">
        <stall   aoa="14" width="4"    peak="1.5"/>
        <flap0 start="0.08" end="0.54" lift="1.8" drag="1.9"/>
        <flap1 start="0.54" end="0.98" lift="1.5" drag="1.3"/>

        <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-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="3"/>
  </wing>

  <hstab x="-37.841" y="0.00" z="8.00"
         chord="9.22"
         length="15.536"
         taper="0.65"
         sweep="4">
         <stall   aoa="14" width="4"    peak="1.5"/>
         <flap0 start="0.05" end="0.95" lift="2.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>

  <vstab x="-38.147" y="0" z="6.646"
         length="15.450"
         chord="14.263"
         taper="0.32"
         sweep="10">
         <stall aoa="12" width="3" peak="1.5"/>
         <flap0 start="0.1" end="0.95" lift="1.6" 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>

  <!--  Pratt & Whitney R-4360-4A Wasp Major

  source            : http://en.wikipedia.org/wiki/Pratt_%26_Whitney_R-4360

  name              : Pratt & Whitney R-4360
  type              : 28-cylinder supercharged air-cooled four-row radial engine
  power cruise      : 3800 hp at 2000 rpm
  weight            : 3870 lb (1755 kg)
  Displacement      : 4,362.5 in3 (71.49 L)
  compression       : 6.7:1
  Propeller diameter: 6 m

  Left wing 0 1 2 3 ....... 7 6 5 4 right wing
  -->
  <!-- #0 engine
  min-rpm="210"
  max-rpm="1012"
  fine-stop="0.25"
  coarse-stop="4"
  -->
  <propeller x="8.637" y="26.156" z="6.702"
             mass="3870"
             moment="10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="9.945" y="26.156" z="6.773"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <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"/>
             </piston-engine>
  </propeller>

  <!-- #1 engine -->
  <propeller x="9.508" y="19.935" z="6.360"
             mass="3870"
             moment="10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="10.797" y="19.944" z="6.439"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[1]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <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"/>
             </piston-engine>
  </propeller>

  <!-- #2 engine -->
  <propeller x="9.992" y="13.786" z="5.835"
             mass="3870"
             moment="10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="11.300" y="13.786" z="5.906"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[2]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <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"/>
             </piston-engine>
  </propeller>

  <!-- #3 engine -->
  <propeller x="10.805" y="7.533" z="5.350"
             mass="3870"
             moment="10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="12.113" y="7.533" z="5.421"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[3]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <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"/>
             </piston-engine>
  </propeller>

  <!-- #4 engine -->
  <propeller x="8.637" y="-26.156" z="6.702"
             mass="3870"
             moment="-10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="9.945" y="-26.156" z="6.773"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[4]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <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"/>
             </piston-engine>
  </propeller>

  <!-- #5 engine -->
  <propeller x="9.508" y="-19.935" z="6.360"
             mass="3870"
             moment="-10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="10.797" y="-19.944" z="6.439"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[5]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <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[5]/mixture"/>
             </piston-engine>
  </propeller>

  <!-- #6 engine -->
  <propeller x="9.992" y="-13.786" z="5.835"
             mass="3870"
             moment="-10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="11.300" y="-13.786" z="5.906"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[6]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[6]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[6]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[6]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[6]/mixture"/>
             </piston-engine>
  </propeller>

  <!-- #7 engine -->
  <propeller x="10.805" y="-7.533" z="5.350"
             mass="3870"
             moment="-10"
             radius="2.615"
             cruise-speed="173"
             cruise-rpm="956"
             cruise-power="2500"
             cruise-alt="5000"
             takeoff-power="3800"
             takeoff-rpm="1012"
             gear-ratio="0.375">
             <actionpt x="12.113" y="-7.533" z="5.421"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[7]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2700"
                            displacement="4362.5"
                            compression="6.7"
                            turbo-mul="1.75"
                            wastegate-mp="52">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[7]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[7]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[7]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[7]/mixture"/>
             </piston-engine>
  </propeller>

  <!-- Main fuselage -->
  <!-- Noze -->
  <gear x="16.796" y="0" z="-0.980"
        compression="1.2"
        spring="15"
        sfric="0.85"
        dfric="0.75"
        on-water="1"
        on-solid="0"
        reduce-friction-by-extension="1.15"
        speed-planing="25"
        spring-factor-not-planing="0.25"/>

  <!-- Center -->
  <gear x="-5.572" y="0" z="-0.684"
        compression="1.4"
        spring="15"
        sfric="0.8"
        dfric="0.7"
        on-water="1"
        on-solid="0"
        reduce-friction-by-extension="1.15"
        speed-planing="15"
        spring-factor-not-planing="0.4"/>

  <!-- Tail -->
  <gear x="-19.007" y="0" z="0.745"
        compression="1.8"
        spring="8"
        sfric="0.9"
        dfric="0.8"
        on-water="1"
        on-solid="0"
        reduce-friction-by-extension="0.9"
        speed-planing="25"
        spring-factor-not-planing="0.85"/>

  <!-- wing floats Left -->
  <gear x="1.550" y="33.989" z="-0.174"
        compression="1.8"
        spring="8"
        sfric="0.9"
        dfric="0.8"
        ignored-by-solver="1"
        on-water="1"
        on-solid="0"
        reduce-friction-by-extension="0.7"
        speed-planing="25"
        spring-factor-not-planing="3"/>

  <!-- wing floats right -->
  <gear x="1.550" y="-33.989" z="-0.174"
        compression="1.8"
        spring="8"
        sfric="0.9"
        dfric="0.8"
        ignored-by-solver="1"
        on-water="1"
        on-solid="0"
        reduce-friction-by-extension="0.7"
        speed-planing="25"
        spring-factor-not-planing="3"/>

  <tank x="-0.789" y=" 17.417" z="6.011" capacity="30000"/>
  <!--
  <tank x=" 1.759" y="  0.000" z="1.692" capacity="60000"/>
  -->
  <tank x=" 1.759" y="  0.000" z="1.692" capacity="0"/>
  <tank x="-0.789" y="-17.417" z="6.011" capacity="30000"/>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
                16.359 / 6     = 2.726
                -0.342 + 0.726 = 2.384
  -->
  <ballast x="21" y="0" z="2" mass="66540"/>

</airplane>
