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

<!-- Starck AS-37             : BARANGER Emmanuel Helijah (09/2024)

              source          : https://www.wikiwand.com/en/articles/Starck_AS-37

              Wingspan        : 6.30 m    (   20 ft  8 in )
              Lenght          : 6.00 m    (   19 ft  8 in )
              Height          : 1.60 m    (    5 ft  3 in )
              Empty mass      :  400 kg   (  882 lb       )
              Max. mass       :  620 kg   ( 1367 lb       )
              Engines         : 1 Citroën GS 1220 4-cylinder air-cooled ( 65 hp )
              Maximum speed   :  185 km/h (  100 kn       ) at sea level
              Cruise speed    :  170 km/h (   92 kn       ) at sea level
-->
<airplane mass="1207" version="YASIM_VERSION_CURRENT" mtow-lbs="1984">

  <!-- Approach configuration -->
  <approach speed="35" aoa="2" fuel="0.3">
    <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="92" alt="2000" fuel="1">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.75"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"  value="1"/>
    <control-setting axis="/controls/flight/flaps"               value="0"/>
  </cruise>

  <cockpit x="1.779" y="0.195" z="0.155"/>

  <!-- Fuselage -->
  <fuselage ax=" 2.991" ay=" 0.000" az="-0.326" bx=" 2.878" by=" 0.029" bz="-0.326" width="0.338" taper="0.05" midpoint="1"/>
  <fuselage ax=" 2.878" ay=" 0.029" az="-0.326" bx=" 2.557" by=" 0.107" bz="-0.271" width="0.581" taper="0.60" midpoint="1"/>
  <fuselage ax=" 2.594" ay=" 0.107" az="-0.297" bx=" 2.201" by=" 0.107" bz="-0.189" width="0.831" taper="0.70" midpoint="1"/>
  <fuselage ax=" 2.219" ay=" 0.107" az="-0.179" bx=" 1.709" by=" 0.062" bz="-0.086" width="1.043" taper="0.80" midpoint="1"/>
  <fuselage ax=" 1.829" ay=" 0.062" az="-0.086" bx=" 1.088" by=" 0.116" bz="-0.124" width="1.043" taper="0.88" midpoint="0"/>
  <fuselage ax=" 1.088" ay=" 0.116" az="-0.124" bx=" 0.131" by=" 0.116" bz="-0.160" width="0.918" taper="0.90" midpoint="0"/>
  <fuselage ax=" 0.131" ay=" 0.116" az="-0.160" bx="-2.441" by=" 0.000" bz="-0.196" width="0.810" taper="0.20" midpoint="0"/>

  <fuselage ax=" 2.991" ay="-0.000" az="-0.326" bx=" 2.878" by="-0.029" bz="-0.326" width="0.338" taper="0.05" midpoint="1"/>
  <fuselage ax=" 2.878" ay="-0.029" az="-0.326" bx=" 2.557" by="-0.107" bz="-0.271" width="0.581" taper="0.60" midpoint="1"/>
  <fuselage ax=" 2.594" ay="-0.107" az="-0.297" bx=" 2.201" by="-0.107" bz="-0.189" width="0.831" taper="0.70" midpoint="1"/>
  <fuselage ax=" 2.219" ay="-0.107" az="-0.179" bx=" 1.709" by="-0.062" bz="-0.086" width="1.043" taper="0.80" midpoint="1"/>
  <fuselage ax=" 1.829" ay="-0.062" az="-0.086" bx=" 1.088" by="-0.116" bz="-0.124" width="1.043" taper="0.88" midpoint="0"/>
  <fuselage ax=" 1.088" ay="-0.116" az="-0.124" bx=" 0.131" by="-0.116" bz="-0.160" width="0.918" taper="0.90" midpoint="0"/>
  <fuselage ax=" 0.131" ay="-0.116" az="-0.160" bx="-2.461" by=" 0.000" bz="-0.196" width="0.810" taper="0.20" midpoint="0"/>

  <wing x="1.241" y="0.000" z="0.014"
        chord     = "1.229"
        length    = "3.091"
        taper     = "1"
        incidence = "2"
        camber    = "0.004">
        <stall aoa="20" width="1" peak="1.5"/>
  </wing>

  <wing x="-0.116" y="0.000" z="-0.494"
        append    = "1"
        chord     = "1.229"
        length    = "2.326"
        taper     = "1"
        incidence = "2"
        camber    = "0.004">
        <stall aoa="20" width="1" peak="1.5"/>
  </wing>

  <wing x="-0.116" y="2.326" z="-0.494"
        append    = "1"
        chord     = "1.229"
        length    = "1.525"
        taper     = "1"
        sweep     = "-54"
        dihedral  = "31"
        incidence = "2"
        camber    = "0.004">
        <stall   aoa="20" width="1" peak="1.5"/>
        <flap1 start="0"    end="1" 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.250" y="0.000" z="-0.100"
         chord  = "0.891"
         length = "1.200"
         taper  = "1">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.1" 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.051" y="0.000" z="-0.162"
         chord  = "1.734"
         length = "1.380"
         taper  = "0.30"
         sweep  = "30">
         <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"/>
         <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>

  <!-- Engines   source            : https://www.autotitre.com/fiche-technique/Citro%C3%ABn/GS/1220
                                     https://www.wikiwand.com/fr/articles/Moteur_boxer_s%C3%A9rie_G_Citro%C3%ABn

                 name              : Citroën GS 1220
                 type              : Four-cylinder air-cooled
                 Displacement      : 74,448 cu in (1220 cm3)
                 power cruise      : 65 hp at 5750 rpm
                 Compression ratio : 8.2:1
  -->
  <propeller x="1.153" y="0.000" z="-0.187"
             mass          = "240"
             moment        = "1.2"
             radius        = "0.52"
             cruise-speed  = "92"
             cruise-rpm    = "5400"
             cruise-alt    = "2000"
             cruise-power  = "60"
             takeoff-power = "65"
             takeoff-rpm   = "5750"
             contra        = "1">
             <actionpt x="0.551" y="1.209" z="-0.048"/>
             <control-input control="PROPFEATHER" axis="/controls/engines/engine[0]/propeller-feather"/>
             <piston-engine eng-rpm      = "5750"
                            alt          = "2000"
                            eng-power    = "65"
                            displacement = "74.448"
                            compression  = "8.2">
                            <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>

  <propeller x="1.153" y="0.000" z="-0.187"
             mass          = "240"
             moment        = "1.2"
             radius        = "0.52"
             cruise-speed  = "92"
             cruise-rpm    = "5400"
             cruise-alt    = "2000"
             cruise-power  = "60"
             takeoff-power = "65"
             takeoff-rpm   = "5750"
             contra        = "1">
             <actionpt x="0.551" y="-1.209" z="-0.048"/>
             <control-input control="PROPFEATHER" axis="/controls/engines/engine[0]/propeller-feather"/>
             <piston-engine eng-rpm      = "5750"
                            alt          = "2000"
                            eng-power    = "65"
                            displacement = "74.448"
                            compression  = "8.2">
                            <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>

  <gear x="2.205" y="0" z="-1.107"
        compression = "0.15"
        spring      = "2"
        stiction    = "1">
        <control-input control="STEER" axis="/controls/flight/rudder" src0="-1.0" src1="1.0" dst0="-0.2" dst1="0.2"/>
   </gear>

  <gear x="0.871" y="0.896" z="-1.105"
        compression = "0.10"
        spring      = "2"
        stiction    = "1">
        <control-input control="BRAKE" axis="/controls/gear/brake-left"    split="true"/>
        <control-input control="BRAKE" axis="/controls/gear/brake-parking" split="true"/>
  </gear>

  <gear x="0.871" y="-0.896" z="-1.105"
        compression = "0.10"
        spring      = "2"
        stiction    = "1">
        <control-input control="BRAKE" axis="/controls/gear/brake-right"   split="true"/>
        <control-input control="BRAKE" axis="/controls/gear/brake-parking" split="true"/>
  </gear>

  <!-- Main tank       : 90 l available on 100 l total
                       : 35 l available on 40 l total

       90 l = 23.76 gal = 198.45 lb
       35 l =  9.24 gal =  77.17 lb
  -->
  <tank x="1.95" y=" 0.0" z="-0.382" capacity="198.45" />
  <tank x="1.40" y=" 0.0" z="-0.382" capacity=" 77.17" />

</airplane>
