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

<!-- Stampe SV 4 B First version : Pierre GEOFFROY   03/2008
                    total update : Emmanuel BARANGER 04/2021
                          update : Emmanuel BARANGER 04/2024

     source             : https://www.wikiwand.com/en/Stampe-Vertongen_SV.4

     Wingspan           : 8.40 m        (   27.56 ft   )
     Length             : 6.81 m        (   22.34 ft   )
     Height             : 2.95 m        (    9.67 ft   )
     Empty weight       : 520 kg        ( 1146.40 lb   )
     Max takeoff weight : 770 kg        ( 1698.00   lb )
     Engine             : 1 de Havilland Gipsy Major 4-cylinder air-cooled inverted in-line piston engine ( 145 hp )
     Max speed          : 188 km/h -> 102 kt
     Cruise speed       : 140 km/h ->  76 kt
-->
<airplane mass="1146.4" version="YASIM_VERSION_CURRENT" mtow-lbs="1698">

  <approach speed="42" aoa="4" 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="76" 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.000" az=" 0.297" bx=" 3.108" by=" 0.000" bz=" 0.297" width="0.307" taper="0.80" midpoint="1"/>
  <fuselage ax=" 3.145" ay=" 0.000" az=" 0.313" bx=" 2.925" by=" 0.000" bz=" 0.251" width="0.487" taper="0.59" midpoint="1"/>
  <fuselage ax=" 2.910" ay=" 0.000" az=" 0.256" bx=" 2.762" by=" 0.000" bz=" 0.223" width="0.550" taper="0.85" midpoint="1"/>
  <fuselage ax=" 2.762" ay=" 0.000" az=" 0.223" bx=" 2.237" by=" 0.000" bz=" 0.171" width="0.666" taper="0.80" midpoint="1"/>
  <fuselage ax=" 2.237" ay=" 0.000" az=" 0.171" bx="-0.045" by=" 0.000" bz=" 0.171" width="0.666" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.045" ay=" 0.000" az=" 0.171" bx="-2.864" by=" 0.000" bz=" 0.171" width="0.666" taper="0.15" midpoint="0"/>

  <fuselage ax=" 3.149" ay=" 0.000" az="-0.052" bx=" 2.919" by=" 0.000" bz="-0.052" width="0.487" taper="0.59" midpoint="1"/>
  <fuselage ax=" 2.919" ay=" 0.000" az="-0.052" bx=" 2.764" by=" 0.000" bz="-0.052" width="0.531" taper="0.92" midpoint="1"/>
  <fuselage ax=" 2.764" ay=" 0.000" az="-0.052" bx=" 2.237" by=" 0.000" bz="-0.052" width="0.666" taper="0.80" midpoint="1"/>
  <fuselage ax=" 2.237" ay=" 0.000" az="-0.044" bx="-0.045" by=" 0.000" bz="-0.044" width="0.666" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.045" ay=" 0.000" az="-0.044" bx="-2.864" by=" 0.000" bz=" 0.075" width="0.666" taper="0.15" midpoint="0"/>

  <!-- Wing up -->
  <wing x="1.689" y="0.000" z="1.045"
        chord="1.227"
        length="4.115"
        sweep="7"
        taper="1"
        dihedral="1.6"
        camber="0.005">
        <stall   aoa="20" width="1"    peak="1.5"/>
        <flap1 start="0.38" end="0.91" lift="1.2" drag="1.2"/>

        <control-input  control="FLAP1" axis="/controls/flight/aileron"      split="true"/>
        <control-input  control="FLAP1" axis="/controls/flight/aileron-trim" split="true"/>

        <control-output control="FLAP1" prop="/surface-positions/left-aileron-pos-norm"  side="left"/>
        <control-output control="FLAP1" prop="/surface-positions/right-aileron-pos-norm" side="right"/>
  </wing>

  <!-- Wing down -->
  <wing x="1.284" y="0.000" z="-0.355"
        append="1"
        chord="1.227"
        length="3.757"
        taper="1"
        sweep="7"
        dihedral="1.6">
        <stall   aoa="20"  width="1"    peak="1.5"/>
        <flap1 start="0.31"  end="0.90" lift="1.2" drag="1.2"/>

        <control-input  control="FLAP1" axis="/controls/flight/aileron"      split="true"/>
        <control-input  control="FLAP1" axis="/controls/flight/aileron-trim" split="true"/>

        <control-output control="FLAP1" prop="/surface-positions/left-aileron-pos-norm"  side="left"/>
        <control-output control="FLAP1" prop="/surface-positions/right-aileron-pos-norm" side="right"/>
  </wing>

  <hstab x="-2.711" y="0.0" z="0.283"
         taper="1.0"
         length="1.362"
         chord="0.983">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0.0"  end="1" lift="1.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="-2.746" y="0" z="0.002"
         taper="0.7"
         length="1.259"
         chord="1.283">
         <stall   aoa="16" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.2" drag="1.2"/>

         <control-input  control="FLAP0" axis="/controls/flight/rudder"      invert="true" square="true" />
         <control-input  control="FLAP0" axis="/controls/flight/rudder-trim" invert="true"/>

         <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm" min="1" max="-1"/>
  </vstab>

  <!-- de Havilland Gipsy Major

                 sources      : http://en.wikipedia.org/wiki/De_Havilland_Gipsy_Major

                 type         : 4-cylinder air-cooled inverted inline piston aircraft engine
                 power        : 122 hp at 2100 rpm, 145 hp at 2550 rpm
                 weight       : 300 lb (136 kg)
                 Displacement : 373.7 in3 (6.124 L)
                 Compression  : 5.25:1
                 propeller    : EVRA 6006A 1.98 m diameter
  -->
  <propeller x="3.000" y="0.0" z="0.292"
             radius="1.1"
             mass="300"
             moment="-4"
             cruise-power="122"
             cruise-rpm="2100"
             cruise-alt="5000"
             cruise-speed="76"
             takeoff-power="145"
             takeoff-rpm="2550">
             <actionpt x="3.240" y="0.0" z="0.292"/>
             <piston-engine eng-power="145"
                            eng-rpm="2550"
                            alt="5000"
                            displacement="373.7"
                            compression="5.25">
                            <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 -->
             </piston-engine>
  </propeller>

  <!-- Left wheel -->
  <gear x="1.747" y="0.783" z="-1.259"
        compression="0.15"
        spring="1.8"
        stiction="1">
        <control-input control="BRAKE" axis="/controls/gear/brake-left"    split="true"/>
        <control-input control="BRAKE" axis="/controls/gear/brake-parking" split="true"/>
        <control-input control="STEER" axis="/sim/gears/toe-right"/>
  </gear>

  <!-- Right wheel -->
  <gear x="1.747" y="-0.783" z="-1.259"
        compression="0.15"
        spring="1.8"
        stiction="1">
        <control-input control="BRAKE" axis="/controls/gear/brake-right"   split="true"/>
        <control-input control="BRAKE" axis="/controls/gear/brake-parking" split="true"/>
        <control-input control="STEER" axis="/sim/gears/toe-left"/>
  </gear>

  <!-- Tail wheel -->
  <gear x="-2.916" y="0" z="-0.269"
        compression="0.1"
        spring="0.8"
        stiction="1">
        <control-input control="STEER" axis="/controls/flight/rudder" 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.042" capacity="142"/>

  <weight x="0.309" y="0.0" z="0.166" mass-prop="/sim/weight[0]/weight-lb"/>

  <!-- Mass diosplacement -->
  <ballast x="-0.174" y="0.0" z="-0.228" mass="400"/>

</airplane>
