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

<!-- Commonwealth CA 12 - Emmanuel BARANGER    2010
                Updated : Emmanuel BARANGER 10/2010

       sources          : http://en.wikipedia.org/wiki/CAC_Boomerang

       wingspan         : 10.97 m    (   36 ft 0 in )
       length           :  7.77 m    (   25 ft 6 in )
       height           :  2.92 m    (    9 ft 7 in )
       max speed        :   491 km/h (  265 kt ) at 15500 ft (4730 m)
       empty weight     :  2437 kg   ( 5373 lb      )
       Gross weight     :  3492 kg   ( 7699 lb      )
       engine           : Pratt & Whitney R-1830 Twin Wasp radial engine (1200 hp)
-->
<airplane mass="5373" version="YASIM_VERSION_CURRENT" mtow-lbs="7699">

  <approach speed="80" 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/engines/engine[0]/propeller-pitch" value="0"/>
    <control-setting axis="/controls/flight/flaps"                      value="1"/>
    <control-setting axis="/controls/gear/gear-down"                    value="1"/>
  </approach>

  <cruise speed="250" alt="15000" >
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.8"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="0.7"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/flight/flaps"                      value="0"/>
    <control-setting axis="/controls/gear/gear-down"                    value="0"/>
  </cruise>

  <cockpit x="0.867" y="0" z="0.989"/>

  <!-- Fuselage -->
  <!-- Section basse -->
  <fuselage ax=" 3.285" ay="0" az="0.232" bx=" 3.060" by="0" bz=" 0.232" width="1.230" taper="0.8" midpoint="1"/>
  <fuselage ax=" 3.060" ay="0" az="0.232" bx=" 1.614" by="0" bz=" 0.161" width="1.396" taper="0.9" midpoint="1"/>
  <fuselage ax=" 1.614" ay="0" az="0.161" bx="-0.406" by="0" bz=" 0.028" width="1.396" taper="0.8" midpoint="0"/>
  <fuselage ax="-0.406" ay="0" az="0.028" bx="-2.866" by="0" bz="-0.085" width="1.117" taper="0.2" midpoint="0"/>
  <!-- Section haute -->
  <fuselage ax=" 1.637" ay="0" az="0.583" bx=" 1.322" by="0" bz=" 0.583" width="0.960" taper="0.6" midpoint="1"/>
  <fuselage ax=" 1.322" ay="0" az="0.583" bx=" 0.810" by="0" bz=" 0.583" width="1.206" taper="0.8" midpoint="1"/>
  <fuselage ax=" 0.925" ay="0" az="0.583" bx="-0.406" by="0" bz=" 0.352" width="1.206" taper="0.9" midpoint="0"/>
  <fuselage ax="-0.406" ay="0" az="0.352" bx="-2.866" by="0" bz=" 0.239" width="1.117" taper="0.2" midpoint="0"/>

  <wing x="1.356" y="0" z="-0.530"
        chord="2.528"
        length="5.48"
        taper="0.54"
        dihedral="4"
        sweep="6.6"
        camber="0.005">
        <stall   aoa="28" width="1"    peak="1.5"/>
        <flap0 start="0.02" end="0.56" lift="1.2" drag="1.25"/>
        <flap1 start="0.56" end="0.95" lift="1.2" drag="1.10"/>

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

        <control-output control="FLAP0" prop="/surface-positions/flap-pos-norm"/>
        <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"/>

        <control-speed  control="FLAP0" transition-time="3"/>
  </wing>

  <hstab x="-2.355" y="0" z="0.450"
         chord="1.4"
         length="2"
         taper="0.38"
         sweep="15">
         <stall   aoa="24" width="1" peak="1.1"/>
         <flap0 start="0"    end="1" lift="1.2" 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="-2.630" y="0" z="-0.130"
         chord="2.319"
         length="1.977"
         taper="0.26"
         sweep="20">
         <stall   aoa="22" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.4" drag="1.2"/>

         <control-input  control="FLAP0" axis="/controls/flight/rudder"      invert="true" square="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            : http://en.wikipedia.org/wiki/Pratt_%26_Whitney_R-1830

                 name              : Pratt & Whitney R-1830
                 type              : Fourteen-cylinder two-row supercharged air-cooled radial engine
                 power cruise      : 1200 hp at 2700 rpm for takeoff
                                   :  700 hp at 2325 rpm cruise power at 13120 ft (4000 m)
                 Compression ratio : 6.7:1
                 weight            : 1250 lb (567 kg)
                 Displacement      : 1829.4 in3 (30 l)
  -->
  <propeller x="3.073" y="0.0" z="0.166"
             mass="1696"
             moment="15"
             radius="1.55"
             gear-ratio="0.5625"
             min-rpm="675"
             max-rpm="1519"
             course-stop="4"
             fine-stop="0.25"
             cruise-rpm="1153"
             cruise-power="625"
             cruise-speed="160"
             cruise-alt="7500">
             <actionpt x="3.466" y="0" z="0.166"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <piston-engine eng-power="1200"
                            eng-rpm="2700"
                            displacement="1829.4"
                            compression="6.7"
                            supercharger="1"
                            turbo-mul="1.85"
                            wastegate-mp="48">
                            <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>

  <!-- left main -->
  <gear x="1.984" y="1.304" z="-1.748"
        compression="0.4"
        spring="0.8"
        damp="1.2"
        sfric="1"
        dfric="1"
        stiction="1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="STEER"  axis="/sim/gears/toe-left"/>

        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="4.1"/>
  </gear>

  <!-- right main -->
  <gear x="1.984" y="-1.304" z="-1.748"
        compression="0.4"
        spring="0.8"
        damp="1.2"
        sfric="1"
        dfric="1"
        stiction="1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="STEER"  axis="/sim/gears/toe-right"/>

        <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="6.1"/>
  </gear>

  <!-- Tail wheel -->
  <gear x="-2.887" y="0" z="-0.535"
        compression="0.2"
        spring="0.8"
        damp="1.2"
        sfric="1"
        dfric="1"
        stiction="1">
        <control-input control="STEER"     axis="/controls/flight/rudder"       src0="-1" src1="1" dst0="0.5" dst1="-0.5"/>
  </gear>

  <!-- Fuel  -->
  <tank x=" 1.50" y=" 1.7" z="-0.54" capacity="210"/>
  <tank x=" 1.80" y=" 0.0" z="-0.50" capacity="156"/>
  <tank x=" 1.50" y="-1.7" z="-0.54" capacity="210"/>

</airplane>
