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

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

     sources          : 

     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="500">

  <!-- Approach configuration -->
  <approach speed="15" aoa="8">
    <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="18" width="4" peak="1.5"/>
        <flap0 start="0.45" end="1" lift="1.5" drag="1.4"/>

        <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
        <control-input axis="/controls/flight/aileron-trim" control="FLAP0" 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="16" width="4" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.4" 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="-3.3" y="0" z="-0.855"
         chord="1.37"
         length="1.068"
         taper="1">
         <stall aoa="16" width="4" peak="1.5"/>
         <flap0 start="0" end="1" lift="2.0" drag="1.2"/>

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

                 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">
             <piston-engine eng-rpm="2500"
                            eng-power="30"
                            displacement="1751"/>
             <actionpt x="3.827" y="0.0" z="0.324"/>
             <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"/>
  </propeller>

  <gear x="3.367" y="0.376" z="-1.193"
        compression="0.01">
  </gear>

  <gear x="3.367" y="-0.376" z="-1.193"
        compression="0.01">
  </gear>

  <gear x="-0.867" y="0" z="-1.158" 
        compression="0.01">
  </gear>

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

  <!-- hitch -->
  <hitch name="aerotow" 
         x="-3.0" y="0" z="-0.65"
         force-is-calculated-by-other="1">
         <tow length="60" 
              weight-per-meter="0.035"
              elastic-constant="9000"
              break-force="10000"
              mp-auto-connect-period="1.0"/>
         <winch max-tow-length="1000"
                min-tow-length="60"
                initial-tow-length="60"/>
  </hitch>

</airplane>
