<?xml version="1.0"?>

<airplane mass="400000"> 

  <approach speed="95" aoa="3" fuel="0.2" > 
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[2]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[3]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[4]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[5]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[6]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[7]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[1]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[2]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[3]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[4]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[5]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[6]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[7]/mixture" value="1.0"/>
    <control-setting axis="/controls/flight/flaps" value="1.0"/>
  </approach>
	
  <cruise speed="245" alt="25000" fuel="0.5"> 
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[2]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[3]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[4]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[5]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[6]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[7]/throttle" value="0.8"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[1]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[2]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[3]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[4]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[5]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[6]/mixture" value="0.7"/>
    <control-setting axis="/controls/engines/engine[7]/mixture" value="0.7"/>
    <control-setting axis="/controls/flight/flaps" value="0.0"/>
  </cruise>
	
  <cockpit x="-1.63" y="0.41" z="0.76"/>
    
  <fuselage ax="21.370" ay="0" az="2.655" bx="-45.402" by="0" bz="6.348" width="7.156" taper="0.068" midpoint="0.33"/>
 
  <wing x="-0.261" 
        y="2.387"
        z="5.031"
        length="45.921"
        chord="15.722"
        taper="0.415"
        dihedral="4"
        sweep="1"
        camber="1.0"> 
        <stall aoa="15" width="6" peak="1.5"/> 
        <flap0 start="0.04" end="0.38" lift="1.6" drag="1.6"/>
        <flap1 start="0.38" end="0.97" lift="1.3" drag="1.3"/>
	
        <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="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="2.5"/>
        <control-speed control="FLAP1" transition-time="0.5"/>
  </wing>
    
  <hstab x="-36.591" 
         y="0.00" 
	 z="8.00"
	 length="15.536"
	 chord="9.22"
	 taper="0.503">
         <stall aoa="18" width="4" peak="1.5"/>
         <flap0 start="0.05" end="0.95" lift="1.7" drag="1.5"/>
	 
         <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="-38.147" 
         y="0" 
	 z="14.146"
         length="15.450"
         chord="14.263"
         taper="0.32"
         incidence="0">
         <stall aoa="14" width="3" peak="1.5"/>
         <flap0 start="0.1" end="0.95" lift="1.7" drag="1.5"/>
         <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"/>
  </vstab>
    
  <!-- Pratt & Whitney R-4360 Wasp Major 28 cyl (3000 cv)
  
  Position
  Left wing 0 1 2 3 ....... 7 6 5 4 right wing -->
  
  <!-- #0 engine -->
  <propeller x="8.637"
             y="26.156"
	     z="6.702"
             mass="2700" 
	     moment="110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1"> 
    <actionpt x="9.945" y="26.156" z="6.773"/>
    <control-input axis="/controls/engines/engine[0]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[0]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[0]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[0]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[0]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>

  <!-- #1 engine -->
  <propeller x="9.508"
             y="19.935"
	     z="6.360"
             mass="2700" 
	     moment="-110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1"> 
    <actionpt x="10.797" y="19.944" z="6.439"/>
    <control-input axis="/controls/engines/engine[1]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[1]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[1]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[1]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[1]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>
  
  <!-- #2 engine -->
  <propeller x="9.992"
             y="13.786"
	     z="5.835"
             mass="2700" 
	     moment="110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1"> 
    <actionpt x="11.300" y="13.786" z="5.906"/>
    <control-input axis="/controls/engines/engine[2]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[2]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[2]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[2]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[2]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[2]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>
  
  <!-- #3 engine -->
  <propeller x="10.805"
             y="7.533"
	     z="5.350"
             mass="2700" 
	     moment="-110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1"> 
    <actionpt x="12.113" y="7.533" z="5.421"/>
    <control-input axis="/controls/engines/engine[3]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[3]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[3]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[3]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[3]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[3]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>

  <!-- #4 engine -->
  <propeller x="8.637"
             y="-26.156"
	     z="6.702"
             mass="2700" 
	     moment="110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1"> 
    <actionpt x="9.945" y="-26.156" z="6.773"/>
    <control-input axis="/controls/engines/engine[4]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[4]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[4]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[4]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[4]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[4]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>

  <!-- #5 engine -->
  <propeller x="9.508"
             y="-19.935"
	     z="6.360"
             mass="2700" 
	     moment="-110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1"> 
    <actionpt x="10.797" y="-19.944" z="6.439"/>
    <control-input axis="/controls/engines/engine[5]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[5]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[5]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[5]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[5]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[5]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>
  
  <!-- #6 engine -->
  <propeller x="9.992"
             y="-13.786"
	     z="5.835"
             mass="2700" 
	     moment="110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1">
    <actionpt x="11.300" y="-13.786" z="5.906"/>
    <control-input axis="/controls/engines/engine[6]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[6]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[6]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[6]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[6]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[6]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>
  
  <!-- #7 engine -->
  <propeller x="10.805"
             y="-7.533"
	     z="5.350"
             mass="2700" 
	     moment="-110" 
	     radius="2.5"
	     cruise-speed="200"
	     cruise-rpm="2700"
	     cruise-power="3000"
	     cruise-alt="20000"
	     min-rpm="210" 
	     max-rpm="3500"
	     gear-ratio="0.1">
    <actionpt x="12.113" y="-7.533" z="5.421"/>
    <control-input axis="/controls/engines/engine[7]/propeller-pitch" control="ADVANCE" />
    <piston-engine eng-power="3000" 
                   eng-rpm="2700"
	           displacement="3350"
	           compression="6.85"
	           turbo-mul="4.25" 
	           supercharger="0"> 
      <control-input axis="/controls/engines/engine[7]/throttle" control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[7]/starter" control="STARTER"/>
      <control-input axis="/controls/engines/engine[7]/magnetos" control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[7]/mixture" control="MIXTURE"/>
      <control-input axis="/controls/engines/engine[7]/boost" control="BOOST"/>
    </piston-engine>
  </propeller>

<!-- Main fuselage -->
<!-- Noze z -1.583-->
<gear x="16.796" y="0" z="0.307" 
      compression="1.2"  
      spring="15" 
      damp="8" 
      sfric="0.4" 
      dfric="0.3" 
      on-water="1" 
      on-solid="0" 
      reduce-friction-by-extension="1.0"
      speed-planing="25" 
      spring-factor-not-planing="0.2">
</gear>

<!-- Center z -2.957-->
<gear x="-5.572" y="0" z="-1.068" 
      compression="2.4" 
      spring="6" 
      damp="8" 
      sfric="0.4" 
      dfric="0.1" 
      on-water="1"
      on-solid="0" 
      reduce-friction-by-extension="1.1"
      speed-planing="35" 
      spring-factor-not-planing="0.3">
</gear>

<!-- Tail z -1.833-->
<gear x="-14.007" y="0" z="0.057" 
      compression="1.1" 
      spring="3" 
      damp="8" 
      sfric="0.4" 
      dfric="0.2" 
      on-water="1" 
      on-solid="0" 
      reduce-friction-by-extension="1.6"
      speed-planing="25" 
      spring-factor-not-planing="0.9">
</gear>

<!-- wing floats Left -->
<gear x="1.550" y="33.989" z="-0.396" 
      compression="0.3"  
      spring="0.9" 
      damp="10" 
      sfric="0.8" 
      dfric="0.7" 
      ignored-by-solver="1"
      on-water="1" 
      on-solid="0" 
      reduce-friction-by-extension="1.25"
      speed-planing="15" 
      spring-factor-not-planing="0.7">
</gear>

<!-- wing floats right -->
<gear x="1.550" y="-33.989" z="-0.396"
      compression="0.3"  
      spring="0.9" 
      damp="10" 
      sfric="0.8" 
      dfric="0.7" 
      ignored-by-solver="1"
      on-water="1" 
      on-solid="0" 
      reduce-friction-by-extension="1.25"
      speed-planing="15" 
      spring-factor-not-planing="0.7">
</gear>

    <tank x="4.355" y="-7.5" z="5.4" capacity="2000"/>
    <tank x="4.355" y=" 7.5" z="5.4" capacity="2000"/>

    <!-- CG Théorique : x=0.261 y=0 z=5.031 -->
    <ballast x="81.35" y="0.0" z="-24.62" mass="29000"/>

</airplane>
