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

<!-- SIAI-Marchetti S.205R : 2010 Emmanuel BARANGER

     sources               : http://en.wikipedia.org/wiki/SIAI-Marchetti_S.205

     wingspan              :  10.86 m (   35 ft 7½ in )
     length                :   8.00 m (   26 ft 3  in )
     height                :   2.89 m (    9 ft 5¾ in )
     empty weight          :   740 kg ( 1630 lb       )
     Max takeoff weight    :  1300 kg ( 2866 lb       )
     engine                : 1 x Avco Lycoming IO-360-A1A air-cooled flat-four piston engine ( 200 hp )
     Maximum speed         :   280 km/h ( 151 kts     ) at sea level
     Cruise speed          :   255 km/h ( 138 kts     )
     Stall speed           :    87 km/h (  47 kts flaps and gear down )
-->
<airplane mass="1630" version="YASIM_VERSION_CURRENT" mtow-lbs="2866">
  
  <!-- Approach configuration -->
  <approach speed="80" aoa="2" fuel="0.2">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.2"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1"/>
    <control-setting axis="/controls/flight/flaps" value="1"/>
  </approach>
  
  <!-- Cruise configuration -->
  <cruise speed="138" alt="6000" fuel="0.5">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.7"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.6"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
  </cruise>
  
  <cockpit x="1.355" y="0.323" z="0.080"/>
  
  <!-- Fuselage Noze -->
  <fuselage ax=" 3.631" ay=" 0.131" az="-0.455" bx=" 3.567" by=" 0.131" bz="-0.455" width="0.605" taper="0.8" midpoint="1"/>
  <fuselage ax=" 3.631" ay="-0.131" az="-0.455" bx=" 3.567" by="-0.131" bz="-0.455" width="0.605" taper="0.8" midpoint="1"/>
  <!-- Fuelsage left section -->
  <fuselage ax=" 3.567" ay=" 0.131" az="-0.455" bx=" 3.262" by=" 0.102" bz="-0.506" width="0.756" taper="0.8" midpoint="1"/>
  <fuselage ax=" 3.262" ay=" 0.102" az="-0.506" bx=" 2.142" by=" 0.079" bz="-0.538" width="1.000" taper="0.74" midpoint="1"/>
  <fuselage ax=" 2.142" ay=" 0.079" az="-0.538" bx=" 1.052" by=" 0.079" bz="-0.538" width="1.000" taper="1.00" midpoint="1"/>
  <fuselage ax=" 1.052" ay=" 0.079" az="-0.538" bx="-0.503" by=" 0.000" bz="-0.340" width="1.000" taper="1.00" midpoint="1"/>
  <!-- Fuselage right section --> 
  <fuselage ax=" 3.567" ay="-0.131" az="-0.455" bx=" 3.262" by="-0.102" bz="-0.506" width="0.756" taper="0.8" midpoint="1"/>
  <fuselage ax=" 3.262" ay="-0.102" az="-0.506" bx=" 2.142" by="-0.079" bz="-0.538" width="1.000" taper="0.74" midpoint="1"/>
  <fuselage ax=" 2.142" ay="-0.079" az="-0.538" bx=" 1.052" by="-0.079" bz="-0.538" width="1.000" taper="1.00" midpoint="1"/>
  <fuselage ax=" 1.052" ay="-0.079" az="-0.538" bx="-0.503" by=" 0.000" bz="-0.340" width="1.000" taper="1.00" midpoint="1"/>
  <!-- Fuselage rear section --> 
  <fuselage ax="-0.503" ay=" 0.000" az="-0.340" bx="-3.981" by=" 0.000" bz="-0.240" width="0.996" taper="0.2" midpoint="0"/>
  <!-- Cockpit section --> 
  <fuselage ax=" 2.417" ay=" 0.000" az="-0.440" bx=" 1.536" by=" 0.000" bz="-0.095" width="1.034" taper="0.8" midpoint="1"/>
  <fuselage ax=" 1.719" ay=" 0.000" az="-0.135" bx=" 0.992" by=" 0.000" bz="-0.113" width="1.034" taper="0.9" midpoint="0"/>
  <fuselage ax=" 1.057" ay=" 0.000" az="-0.161" bx="-1.232" by=" 0.000" bz="-0.281" width="1.034" taper="0.7" midpoint="0"/>
  
  <mstab x="1.290" y="0" z="-0.941" 
         chord="2.091" 
         length="1.723" 
         taper="0.69"
         sweep="8.2"
         dihedral="5"
         camber="0.004">
         <stall aoa="28" width="1" peak="1.5"/>
         <flap0 start="0.4" end="1" lift="1.2" drag="1.25"/>
    
         <control-input control="FLAP0" axis="/controls/flight/flaps"/>
    
         <control-output control="FLAP0" prop="/surface-positions/flap-pos-norm"/>
    
         <control-speed control="FLAP0" transition-time="2"/>
  </mstab>
  
  <wing x="1.046" y="1.699" z="-0.790" 
        chord="1.449" 
        length="3.674" 
        taper="0.7"
        dihedral="5"
        camber="0.004">
        <stall aoa="28" width="1" peak="1.5"/>
        <flap0 start="0.00" end="0.56" lift="1.2" drag="1.25"/>
        <flap1 start="0.56" end="0.98" lift="1.2" drag="1.10"/>
    
        <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="2"/>
  </wing>
  
  <hstab x="-3.347" y="0" z="-0.185" 
         chord="1.228" 
         length="1.7" 
         sweep="4.5"
         taper="0.55">
         <stall aoa="26" width="1" peak="1.1"/>
         <flap0 start="0" end="1" lift="1.3" drag="1.1"/>
    
         <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.314" y="0" z="0.106" 
         chord="1.267"
         length="1.4"
         taper="0.45"
         sweep="5">
         <stall aoa="22" width="1" peak="1.5"/>
         <flap0 start="0.02" end="1" lift="1.2" drag="1.1"/>
    
         <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" min="1" max="-1"/>
  </vstab>
  
  <!-- Engines   source            : http://en.wikipedia.org/wiki/Lycoming_O-360#IO-360
  
                 name              : Lycoming O-360
                 type              : Four-cylinder, dual magneto, horizontally opposed, four-stroke aircraft engine
                 power cruise      : 180 hp at 2700 rpm
                 weight            : 258 lb (117 kg)
                 displacement      : 361 cu in (5916 cc)
                 compression       : 8.5:1
  -->
  <propeller x="3.08271" y="0" z="-0.38332" 
             mass="258" 
             radius="1.0665"
             moment="2.5"  
             cruise-speed="138" 
             cruise-rpm="2500"
             cruise-alt="6000" 
             cruise-power="150"
             takeoff-power="200" 
             takeoff-rpm="2700">
             <actionpt x="3.78271" y="0" z="-0.38332"/>
             <piston-engine eng-rpm="2700" 
                            eng-power="200"
                            displacement="361" 
                            compression="8.5">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[0]/throttle" src0="0.0" src1="1.0" dst0="0.0" dst1="1.0"/>
                            <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" src0="0.0" src1="1.0" dst0="0.8" dst1="0.8"/>
             </piston-engine>
  </propeller>
  
  <!-- Noze wheel 0 -->
  <gear x="3.11941" y="0" z="-1.58528" 
        compression="0.15" 
        spring="0.8">
        <control-input axis="/controls/flight/rudder" control="STEER" square="false"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        
        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
        
        <control-speed control="EXTEND" transition-time="7"/>
  </gear>
  
  <!-- Left wheel 1 -->
  <gear x="1.17680" y="1.68598" z="-1.54463"
        compression="0.2" 
        spring="1.8">
        <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-output control="EXTEND" prop="gear/gear[1]/position-norm"/>
        
        <control-speed control="EXTEND" transition-time="7"/>
  </gear>
  
  <!-- Right wheel 2 -->
  <gear x="1.17680" y="-1.68598" z="-1.54463"
        compression="0.2" 
        spring="1.8">
        <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-output control="EXTEND" prop="gear/gear[2]/position-norm"/>
        
        <control-speed control="EXTEND" transition-time="7"/>
  </gear>
  
  <!-- 3 -->
  <gear x="2.96006" y="0" z="-1.15885" 
        compression="1.5" 
        spring = "25" 
        sfric = "0.8" 
        dfric = "0.7" 
        ignored-by-solver="0"
        on-water="1" 
        on-solid="1" 
        reduce-friction-by-extension="0"
        speed-planing="1" 
        spring-factor-not-planing="0.15">
  </gear>

  <!-- 4 -->
  <gear x="1.49873" y="0" z="-1.27277" 
        compression="1.5" 
        spring = "25" 
        sfric = "0.8"
        dfric = "0.7" 
        ignored-by-solver="0"
        on-water="1" 
        on-solid="1" 
        reduce-friction-by-extension="0"
        speed-planing="1" 
        spring-factor-not-planing="0.15">
  </gear>

  <!-- 5 -->
  <gear x="-3.04951" y="0" z="-0.70776" 
        compression="1.5" 
        spring = "25" 
        sfric = "0.8" 
        dfric = "0.7" 
        ignored-by-solver="0"
        on-water="1" 
        on-solid="1" 
        reduce-friction-by-extension="0"
        speed-planing="1" 
        spring-factor-not-planing="0.15">
  </gear>

  <tank x="1.556" y="0" z="-0.910" capacity="156" />
  
  <!-- Mass distribution -->
  <ballast x="3" y="0" z="-0.9" mass="500"/>
  
</airplane>
