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

<!-- Santo Dumont N 21 "Demoiselle" 1909 : 2009 Emmanuel BARANGER
                                  Update : 2010 Emmanuel BARANGER with melchior script
                                  Update : 2020 Emmanuel BARANGER

     sources          : https://en.wikipedia.org/wiki/Santos-Dumont_Demoiselle

     wingspan         : 5 m                            ( 16,4 ft)
     length           : 8 m                            ( 26.2 ft)
     max speed        : 90 km/h                        ( 50.0 kt)
     empty weight     : 93 kg (pilote 50 kg)           (205.0 lb - 110 lb)
     engine           : Darrack (30 hp)
-->
<airplane mass="205" version="YASIM_VERSION_CURRENT" mtow-lbs="255">

  <!-- Approach configuration -->
  <approach speed="15" aoa="4">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.5"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1.0"/>
    <control-setting axis="/sim/weight[0]/weight-lb" value ="110"/>
  </approach>

  <!-- Cruise configuration -->
  <cruise speed="50" alt="0">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.75"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.75"/>
    <control-setting axis="/controls/flight/elevator-trim" value="0.1"/>
    <control-setting axis="/sim/weight[0]/weight-lb" value ="110"/>
  </cruise>

  <!-- pilot's eyepoint -->
  <cockpit x="2.514" y="0.0" z="-0.221"/>

  <fuselage ax="3.659" ay="0" az="-0.181" bx="-2.817" by="0" bz="-0.324" width="0.728" midpoint="0.1" taper="0.2"/>

  <wing x="2.529" y="0" z="0.054"
        chord="2.260"
        length="2.516"
        incidence="4"
        dihedral="10"
        camber="0.001"
        taper="1">
        <stall aoa="14" width="1" peak="1.5"/>
        <flap0 start="0.45" end="1" lift="1.28" drag="1.1"/>

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

        <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"/>
  </wing>

  <hstab x="-3.45" y="0.0" z="-0.320"
         chord="1.13"
         length="1.16"
         taper="1">
         <stall aoa="12" width="1" peak="1.0"/>
         <flap0 start="0" end="1" lift="1.4" drag="1.1"/>

         <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="-3.3" y="0" z="-0.855"
         chord="1.37"
         length="1.068"
         taper="1">
         <stall aoa="10" width="1" peak="1.0"/>
         <flap0 start="0" end="1" lift="1.25" drag="1.1"/>

         <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            :

                 name              : flat-twin Darracq
                 type              :
                 power cruise      : 30 hp
                 weight            :
  -->
  <propeller x="3.618" y="0.0" z="0.324"
             radius="0.927"
             mass="150"
             moment="4"
             cruise-speed="50"
             cruise-alt="8000"
             cruise-power="30"
             cruise-rpm="2150"
             takeoff-power="30"
             takeoff-rpm="2300"
             gear-ratio="0.5">
             <actionpt x="3.827" y="0.0" z="0.324"/>
             <piston-engine eng-rpm="2500"
                            eng-power="30"
                            displacement="1751">
                            <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="3.367" y="0.376" z="-1.193"
        compression="0.01"
        spring="0.8"
        sfric="0.5"
        dfric="0.4"
        stiction="1">
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
  </gear>

  <gear x="3.367" y="-0.376" z="-1.193"
        compression="0.01"
        spring="0.8"
        sfric="0.5"
        dfric="0.4"
        stiction="1">
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
  </gear>

  <gear x="-0.867" y="0" z="-1.158"
        compression="0.01"
        spring="0.8"
        sfric="0.5"
        dfric="0.4"
        stiction="1"/>

  <tank x="2.806" y="0" z="0.318" capacity="56" />

  <!-- pilot -->
  <weight x="2.426" y="0" z="-0.551" mass-prop="/sim/weight[0]/weight-lb"/>

</airplane>
