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

<!-- Payen Pa 350 cd  : 2007 BARANGER Emmanuel
              Updated : 2014 BARANGER Emmanuel

     sources          : http://img259.imageshack.us/img259/6499/pa350cd2.jpg

     wingspan         : 3.30 m    (   10 ft  8 in )
     length           : 6.87 m    (   22 ft  6 in )
     height           : 1.35 m    (    4 ft  3 in )
     empty weight     :  290 kg   (  640 lb       )
     engine           : 1 Renault 4 Pdi ( 150 hp  )
     max speed        :  500 km/h (     276 kt    ) at sea level
-->
<airplane mass="640">

  <!-- Approach configuration -->
  <approach speed="48" aoa="2" fuel="0.3">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.3"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="0.5"/>
    <control-setting axis="/controls/engines/engine[0]/boost" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="1"/>
  </approach>

  <!-- Cruise configuration -->
  <cruise speed="250" alt="10000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/boost" value="1"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
  </cruise>

  <!-- pilot eyepoint -->
  <cockpit x="-1.182" y="0" z="0.366"/>

  <fuselage ax="2.649" ay="0" az="0.078" bx="-3.434" by="0" bz="0.149" width="0.63" taper="0.3" midpoint="0.2"/>

  <wing x="-0.9" y="0" z="0.08"
        chord="4.779"
        length="2.3"
        taper="0.1"
        sweep="48"
        dihedral="20"
        camber="0.02">
        <stall aoa="16" width="1" peak="1.3"/>
        <flap0 start="0.25" end="0.85" lift="1.3" drag="1.1"/>

        <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="0.755" y="0.22" z="0.106"
         chord="1.122"
         length="1.4"
         taper="0.439" 
         sweep="-5">
         <stall aoa="14" width="1" peak="1.5"/>
         <flap0 start="0.22" end="0.88" lift="1.5" drag="1.2"/>

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

         <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
  </hstab>

  <vstab x="-2.857" y="1.34" z="-0.201"
         chord="0.815"
         length="0.88"
         taper="1"
         sweep="-15">
         <stall aoa="14" width="1" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.3" drag="1.1"/>

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

  <vstab x="-2.857" y="-1.34" z="-0.201"
         chord="0.815"
         length="0.88"
         taper="1"
         sweep="-15">
         <stall aoa="14" width="1" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.3" drag="1.1"/>

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

  <!-- Engines   source            : 

                 name              : Renault 4 Pdi
                 type              : 4-cylinder liquid-cooled Vee inversed piston engine
                 power cruise      : 150 hp at 2300 rpm
                 weight            : 150 kg (330.69 lb)
  -->
  <propeller x="2.48" y="0" z="0.070"
             mass="330.69"
             moment="35"
             radius="1.2"
             cruise-speed="250"
             cruise-rpm="1900"
             cruise-power="120"
             cruise-alt="10000"
             takeoff-power="150"
             takeoff-rpm="2300"
             contra="1">
             <actionpt x="2.86" y="0" z="0.07"/>
             <piston-engine eng-power="150"
                            eng-rpm="2300"
                            displacement="717.8">
                            <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"/>
                            <control-input control="BOOST" axis="/controls/engines/engine[0]/boost"/>
             </piston-engine>
  </propeller>

  <gear x="0.997" y="0.000" z="-1.309"
        compression="0.2"
        spring="0.7"
        damp="3.4"
        dfric="0.6"
        sfric ="0.7">
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
        <control-input axis="/controls/flight/rudder" control="STEER" src0="-1" src1="1" dst0="-0.1" dst1="0.1"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        
        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
        
        <control-speed control="EXTEND" transition-time="6"/>
  </gear>

  <gear x="-2.91478" y="1.33575" z="-0.23592"
        compression="0.1"
        castering="1"
        dfric="0.3"
        sfric ="0.4">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
  </gear>

  <gear x="-2.91478" y="-1.33575" z="-0.23592"
        compression="0.1"
        castering="1"
        dfric="0.3"
        sfric ="0.4">
        <control-input axis="/controls/gear/brake-right" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE" split="true"/>
  </gear>

  <tank x="-2.2" y=" 0.92" z="0.41" capacity="482.5"/> 
  <tank x="-2.2" y="-0.92" z="0.41" capacity="482.5"/> 

  <!-- Mass displacment -->
  <ballast x="-2" y="0" z="-1.5" mass="200"/>
 
</airplane>
