<?xml version="1.0"?>

<airplane mass="530">

<!-- Configuration d'approche -->
<approach speed="31" aoa="15">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="0.8"/>
  <control-setting axis="/controls/engines/engine[0]/mixture" value="1.0"/>
</approach>

<!-- Configuration de croisière -->
<cruise speed="40" alt="0">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="1.0"/>
  <control-setting axis="/controls/engines/engine[0]/mixture" value="0.75"/>
  <control-setting axis="/controls/flight/elevator-trim" value="0.1"/>
</cruise>

<!-- Point de vue du pilote -->
<cockpit x="-0.075" y="0" z="1.125"/>

<fuselage ax="1.37" ay="0" az="-0.71" bx="-4.81" by="0" bz="-0.65" width="0.71" taper="0.16" midpoint="0.17"/>

<wing x="-0.80" 
      y="0.42" 
      z="0.0" 
      taper="1.0" 
      incidence="-3" 
      twist="0"
      length="4.87" 
      chord="1.60" 
      sweep="0" 
      dihedral="5" 
			idrag="1.6"
      camber="0.11">
      <stall aoa="8" width="4" peak="1.5"/>
      <flap0 start=".31" end="0.85" lift="1.4" 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="-4.87" 
       y="0.05" 
       z="-0.42" 
       taper="1.0" 

       length="1.49" 
       chord="1.13" 
       sweep="0">
       <stall aoa="14" width="4" peak="1.5"/>
       <flap0 start="0" end="1" lift="1.7" 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="-4.87" 
       y="0" 
       z="-0.65" 
       taper="0.38" 
       length="1.31" 
       chord="1.37" 
       sweep="0" 
       incidence="1.5">
       <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>

 <propeller radius="1.0" x="2.4" y="0" z="0.2" mass="125" moment="4"
             cruise-alt="3000" cruise-speed="25"
             cruise-rpm="1200" cruise-power="20"
             takeoff-rpm="1300" takeoff-power="24"
            >
		<actionpt x="2.063" y="0" z="0.004"/>

    <piston-engine eng-power="28" eng-rpm="1450"
                   displacement="28.193" compression="12.7"
                   turbo-mul="1" >

      <control-input axis="/controls/engines/engine[0]/throttle"
                     control="THROTTLE"/>
      <control-input axis="/controls/engines/engine[0]/starter"
                     control="STARTER"/>
      <control-input axis="/controls/engines/engine[0]/magnetos"
                     control="MAGNETOS"/>
      <control-input axis="/controls/engines/engine[0]/mixture"
                     control="MIXTURE"/>
    </piston-engine>
  </propeller>

<gear x="1.489" 
      y="0.729" 
      z="-1.4" 
			sfric="1.1"
			dfric="0.6"
      compression="0.02"> <!-- gauche -->

</gear>

<gear x="1.489" 
      y="-0.729" 
      z="-1.4" 
			sfric="1.1"
			dfric="0.6"
      compression="0.02"> <!-- droite -->
</gear>

<gear x="-3.223" 
      y="0" 
      z="-1.0" 
      compression="0.1"> <!-- Arrière -->
</gear>

<!-- Réservoir -->
<tank x="-0.45" y="0" z="-0.89" capacity="72"/> 

<ballast x="-4.0" y="0" z="-0.70" mass="-75"/>

<!-- pilote -->
<weight x="0.025" y="0" z="1.125" mass-prop="/yasim/j3cub/pilot-lb"/>

</airplane>
