<?xml version="1.0" encoding="UTF-8"?>

<!-- Stampe SV 4 B
                  3D model by Emmanuel BARANGER
                  FDM by Pierre GEOFFROY
                 
     Envergure  : 8.40 m   -> 27.56 ft
     Longueur   : 6.81 m   -> 22.34 ft
     Hauteur    : 2.95 m   ->  9.67 ft
     Poids vide : 520 kg   -> 1146.4 lb
     Moteur     : Renault 4-PO5 (145 ch)
     Vitesse    : Max 200 km/h -> 108 kts, economique 140 km/h -> 75.59 kts
-->

<airplane mass="1146" >

  <approach speed="42" aoa="7" fuel="0.2">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.2"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.65"/> <!-- Ground adjustment only -->
    <solve-weight idx="0" weight="180"/>
  </approach>
  
  <cruise speed="108" alt="5000" fuel="0.5" >
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1.0" />
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.65" /> <!-- Ground adjustment only -->
    <solve-weight idx="0" weight="180"/>
  </cruise>

  <cockpit x="0.349" y="0.00" z="0.553"/>

  <fuselage ax="3.185" ay="0" az="0.297" 
            bx="-2.806" by="0" bz="0.221"
            width="0.672" 
            taper="0.2" 
            midpoint="0.5"/>

  <!-- Wing up -->
  <wing x="1.606" y="0.282" z="1.045" 
        taper="1" 
        incidence="0"
        length="3.867" 
        chord="1.227" 
        sweep="7" 
        dihedral="1.6" 
        twist="0" 
        camber="0.05">
        <stall aoa="25" width="3.0" peak="1.5"/>
        <flap1 start="0.328" end="0.890" lift="1.2" drag="1.1"/>
      
        <control-input axis="/controls/flight/aileron" control="FLAP1" split="true"/>
        <control-input axis="/controls/flight/aileron-trim" control="FLAP1" split="true"/>
      
        <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"/>
  </wing>

  <!-- Wing down -->
  <mstab x="1.207" y="0.297" z="-0.355" 
        taper="1" 
        incidence="0"
        length="3.525" 
        chord="1.227" 
        sweep="7" 
        dihedral="1.6" 
        twist="0" 
        camber="0.05">
        <stall aoa="25" width="3.0" peak="1.5"/>
        <flap1 start="0.250" end="0.880" lift="1.2" drag="1.1"/>
      
        <control-input axis="/controls/flight/aileron" control="FLAP1" split="true"/>
        <control-input axis="/controls/flight/aileron-trim" control="FLAP1" split="true"/>
      
        <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"/>
  </mstab>
  
  <hstab x="-2.711" y="0.0" z="0.283" 
         taper="1.0" 
	 length="1.362" 
	 chord="0.983" 
	 sweep="0" 
	 incidence="0.0"> 
         <stall aoa="16" width="8" peak="1.5"/>
         <flap0 start="0.0" end="1.6" lift="1.55" drag="1.2"/>
         <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="-2.746" y="0" z="0.002" 
         taper="0.7" 
	 length="1.259" 
	 chord="1.283" 
	 sweep="0" 
	 incidence="0.0">
         <stall aoa="14" width="4" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.6" drag="1.2"/>
         <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>

  <!-- engine    : RENAULT 4-PO5 145 HP at 2450 RPM
       propeller : EVRA 6006A 1.98 m diameter
  =================================================================================
  -->
  <propeller x="3.000" y="0.0" z="0.292"  
             radius="1.1"
             mass="342"       
             moment="-4"
             cruise-power="110"
             cruise-alt="5000" 
             cruise-speed="75"
             cruise-rpm="2100"
             takeoff-power="145"
             takeoff-rpm="2450">
             <piston-engine eng-rpm="2450" 
                            alt="5000" 
                            eng-power="145"
                            displacement="384" 
                            compression="5.8"/>
             <actionpt x="3.240" y="0.0" z="0.292" />
             <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"/> <!-- Ground adjustment only -->

  </propeller>

  <!-- Left wheel -->
  <gear x="1.747" y="0.783" z="-1.259" 
        compression="0.15" 
        spring="1.8" 
        damp="0.3" 
        on-solid="1" >
        <control-input axis="/controls/gear/brake-left" control="BRAKE" split="true"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
  </gear>

  <!-- Right wheel -->
  <gear x="1.747" y="-0.783" z="-1.259" 
        compression="0.15" 
        spring="1.8"
        damp="0.3" 
        on-solid="1" >
        <control-input axis="/controls/gear/brake-right" control="BRAKE" split="true"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
  </gear>

  <!-- Tail wheel -->
  <gear x="-2.916" y="0" z="-0.269" 
        compression="0.1" 
        spring="0.8"
        on-solid="1"
        sfric="1"
        dfric="1">
        <control-input axis="/controls/flight/rudder" control="STEER" src0="-1.0" src1="1.0" dst0="0.5" dst1="-0.5"/>
  </gear>

  <!-- Fuel: Forward 142 lbs -->
  <tank x="1.824" y="0" z="1.162" capacity="142"/>
  
  <weight x="0.609" y="0.0" z="0.166" mass-prop="/sim/weight[0]/weight-lb"/>

  <!-- CG theorique x=1.087 y=0.0 z=-0.317 -->
  <ballast x="-0.174" y="0.0" z="-1.728" mass="400" />

</airplane>
