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

<!-- Stemme S6    : Emmanuel BARANGER  2014

    source        : http://en.wikipedia.org/wiki/Stemme_S6

    Wingspan      : 18.00 m    (  59 ft  1 in )
    lenght        :  8.52 m    (   27 ft 11 in )
    height        :  2.45 m    (    8 ft  0 in )
    Empty weight  :   640 kg   ( 1411 lb       ) approximately
    Stall speed   :    59 km/h (   32 kt       ) without airbrakes
    Engine        : 1 Rotax 914 F2 flat four ( 113.3 hp )
    Cruise speed  :   256 km/h (  138 kt       )
-->
<airplane mass="1411" version="YASIM_VERSION_CURRENT">

  <!-- Approach configuration -->
  <approach speed="30" aoa="5" glide-angle="4">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.2"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"  value="0.65"/>
  </approach>

  <!-- Cruise configuration -->
  <cruise speed="138" alt="8000" glide-angle="5">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.7"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.65"/>
  </cruise>

  <!-- pilot's eyepoint -->
  <cockpit x="2.3" y="0" z="0.1"/>

  <fuselage ax="3.91774" ay="0" az="-0.20818" bx="-3.95243" by="0" bz="-0.31391" width="1.074" taper="0.28" midpoint="0.15"/>

  <wing x="1.371" y="0.336" z="0.108"
        chord="1.445"
        length="8.490"
        taper="0.33"
        camber="0.004"
        sweep="-2"
        dihedral="2">
        <stall aoa="28" width="1" peak="1.5"/>
        <flap0 start="0.05" end="0.97" lift="1.55" drag="1.3"/>
        <spoiler start="0.34" end="0.44" lift="-2" drag="15.5"/>

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

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

        <control-speed control="FLAP0" transition-time="0.8"/>
        <control-speed control="FLAP0" transition-time="0.5"/>
        <control-speed control="SPOILER" transition-time="1.5"/>
  </wing>

  <hstab x="-3.946" y="0" z="1.202"
         chord="0.792"
         length="1.600"
         sweep="5"
         taper="0.56"> 
         <stall aoa="26" width="1" peak="1.5"/>
         <flap0 start="0.0" end="0.89" lift="1.6" drag="1.3"/>

         <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="-3.601" y="0" z="-0.444"
         chord="1.185"
         length="1.637"
         sweep="10"
         taper="0.64">
         <stall aoa="24" width="1" peak="1.5"/>
         <flap0 start="0" end="0.88" lift="1.6" drag="1.3"/>

         <control-input axis="/controls/flight/rudder" square="true" 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>

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

                 name              : Rotax 914
                 type              : four-cylinder, four-stroke liquid- / air-cooled engine with opposed cylinders
                 power cruise      : 180 hp at 2700 rpm
                 weight            : 78 kg      ( 172 lb       )
                 displacement      : 1211.2 cc  (  73.91 cu in )
  -->
  <propeller x="1.602" y="0" z="-0.208" 
             mass="172" 
             moment="2.25"
             radius="0.91"
             cruise-speed="138"
             cruise-rpm="5500"
             cruise-alt="8000" 
             cruise-power="100"
             takeoff-power="115" 
             takeoff-rpm="5800">
             <actionpt x="3.99536" y="0" z="-0.20818"/>
             <piston-engine eng-rpm="5500" 
                            eng-power="115"
                            displacement="73.91">
                            <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>
  
  <!-- nose wheel -->
  <gear x="3.20773" y="0" z="-1.19684"
        compression="0.1" 
        retract-time="5" 
        spring="1" 
        damp="1.50">
        <control-input axis="/controls/flight/rudder" control="STEER" square="false"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        <control-speed control="EXTEND" transition-time="5"/>
        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
  </gear>

  <!-- Left wheel-->
  <gear x="1.00162" y="0.88250" z="-1.19666"
        compression="0.15" 
        retract-time="5" 
        spring="1" 
        damp="1.5" 
        sfric="1.2" 
        dfric="1.2">
        <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-speed control="EXTEND" transition-time="5"/>
        <control-output control="EXTEND" prop="gear/gear[1]/position-norm"/>
  </gear>

  <!-- Right wheel -->
  <gear x="1.00162" y="-0.88250" z="-1.19666"
        compression="0.15" 
        retract-time="5" 
        spring="1" 
        damp="1.5" 
        sfric="1.2" 
        dfric="1.2">
        <control-input axis="/controls/gear/brake-right" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        <control-speed control="EXTEND" transition-time="5"/>
        <control-output control="EXTEND" prop="gear/gear[2]/position-norm"/>
  </gear>

  <!--Tail skid-->
  <gear x="3.615" y="0" z="-0.43444"
        skid="1"
        compression="0.10"
        spring="1.8"
        damp="0.03" 
        on-solid="1">
  </gear>
  
  <!-- Tank 26 liters -->
  <tank x="1.8" y="0" z="-0.4" capacity="40.20"/>

  <!-- Mass displacement -->
  <ballast x="3" y="0" z="-0.9" mass="400"/>
  
</airplane>
