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

<!-- Fairey Gannet      : Emmanuel BARANGER (    2012 ) with Melchior's script
                Updated : Emmanuel BARANGER ( 11/2021 )
                Updated : Emmanuel BARANGER ( 06/2025 )

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

     wingspan           : 54 ft 4 in ( 16.56 m    )
     length             : 43 ft      ( 13.00 m    )
     height             : 13 ft 9 in (  4.19 m    )
     max speed          : 269.98 kt  (   500 km/h )
     empty weight       : 15069 lb   (  6835 kg   )
     Max takeoff weight : 19600 lb   (  8890 kg   )
     engine             : 1 Armstrong Siddeley Double Mamba ASMD 1 turboprop ( 2950 hp )
-->
<airplane mass="15069" version="YASIM_VERSION_CURRENT" mtow-lbs="19600">

  <approach speed="110" aoa="8">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.4"/>
    <control-setting axis="/controls/engines/engine[0]/condition"       value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.4"/>
    <control-setting axis="/controls/engines/engine[1]/condition"       value="1"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="1"/>

    <control-setting axis="/controls/flight/flaps"                      value="1"/>
    <control-setting axis="/controls/gear/gear-down"                    value="1"/>
  </approach>

  <cruise speed="450" alt="25000" >
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.9"/>
    <control-setting axis="/controls/engines/engine[0]/condition"       value="1" />
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.9"/>
    <control-setting axis="/controls/engines/engine[1]/condition"       value="1" />
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="1"/>

    <control-setting axis="/controls/flight/flaps"                      value="0"/>
    <control-setting axis="/controls/gear/gear-down"                    value="0"/>
  </cruise>250

  <cockpit x="3.841" y="0" z="0.995"/>

  <!-- Bol -->
  <fuselage ax=" 6.780" ay=" 0.000" az="-0.160" bx=" 6.606" by=" 0.000" bz="-0.160" width="0.431" taper="0.10" midpoint="1"/>
  <fuselage ax=" 6.606" ay=" 0.000" az="-0.160" bx=" 6.313" by=" 0.000" bz="-0.160" width="0.673" taper="0.64" midpoint="1"/>
  <fuselage ax=" 6.313" ay=" 0.000" az="-0.160" bx=" 5.890" by=" 0.000" bz="-0.160" width="0.909" taper="0.74" midpoint="1"/>

  <!-- Fuselage -->
  <fuselage ax=" 5.771" ay=" 0.000" az="-0.142" bx=" 4.462" by=" 0.000" bz=" 0.173" width="1.330" taper="0.70" midpoint="1"/>
  <fuselage ax=" 4.789" ay=" 0.000" az=" 0.468" bx=" 3.925" by=" 0.000" bz=" 0.586" width="1.330" taper="0.30" midpoint="1"/>
  <fuselage ax=" 4.007" ay=" 0.000" az=" 0.573" bx="-0.533" by=" 0.000" bz=" 0.365" width="1.330" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.533" ay=" 0.000" az=" 0.365" bx="-5.379" by=" 0.000" bz=" 0.233" width="1.330" taper="0.20" midpoint="0"/>

  <fuselage ax=" 5.771" ay=" 0.000" az="-0.142" bx=" 4.426" by=" 0.000" bz="-0.084" width="1.330" taper="0.70" midpoint="1"/>
  <fuselage ax=" 4.426" ay=" 0.000" az="-0.084" bx="-0.533" by=" 0.000" bz="-0.084" width="1.352" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.533" ay=" 0.000" az="-0.084" bx="-5.379" by=" 0.000" bz=" 0.003" width="1.330" taper="0.20" midpoint="0"/>

  <fuselage ax=" 5.771" ay=" 0.000" az="-0.567" bx=" 4.426" by=" 0.000" bz="-0.899" width="1.330" taper="0.70" midpoint="1"/>
  <fuselage ax=" 4.426" ay=" 0.000" az="-0.899" bx="-0.533" by=" 0.000" bz="-0.899" width="1.352" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.533" ay=" 0.000" az="-0.899" bx="-5.379" by=" 0.000" bz="-0.294" width="1.330" taper="0.20" midpoint="0"/>

  <mstab x="1.225" y="0.274" z="-0.195"
         chord    = "3.960"
         length   = "2.580"
         taper    = "0.75"
         dihedral = "-7"
         sweep    = "-4">
         <stall   aoa="20" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.2" drag="1.25"/>

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

         <control-output control="FLAP0" prop="surface-positions/flap-pos-norm"/>
         <control-speed  control="FLAP0" transition-time="5"/>
  </mstab>

  <wing x="1.405" y="2.827" z="-0.507"
        chord    = "2.966"
        length   = "5.487"
        taper    = "0.65"
        dihedral = "5"
        sweep    = "-3.5"
        camber   = "0.05">
        <stall   aoa="20" width="1"    peak="1.5"/>
        <flap0 start="0.00" end="0.33" lift="1.2" drag="1.25"/>
        <flap1 start="0.45" end="0.97" lift="1.2" drag="1.10"/>

        <control-input  control="FLAP0" axis="/controls/flight/flaps"        invert="true"/>
        <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="5"/>
  </wing>

  <hstab x="-4.695" y="0" z="0.762"
         chord  = "2.504"
         length = "2.935"
         taper  = "0.54"
         sweep  = "5.5">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0.14" end="1" lift="1.5" drag="1.2"/>

         <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="-4.461" y="0" z="-0.355"
         chord  = "3.418"
         length = "3.200"
         taper  = "0.30"
         sweep  = "20">
         <stall   aoa="16" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.75" drag="1.35"/>

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

  <vstab x="-4.632" y="1.732" z="0.749"
         chord  = "1.243"
         length = "0.920"
         taper  = "0.30"
         sweep  = "16">
         <stall aoa="16" width="1" peak="1.5"/>
  </vstab>

  <vstab x="-4.632" y="1.732" z="0.749"
         chord    = "1.243"
         length   = "0.920"
         taper    = "0.30"
         dihedral = "-90"
         sweep    = "16">
         <stall aoa="16" width="1" peak="1.5"/>
  </vstab>

  <vstab x="-4.632" y="-1.732" z="0.749"
         chord  = "1.243"
         length = "0.920"
         taper  = "0.30"
         sweep  = "16">
         <stall aoa="16" width="1" peak="1.5"/>
  </vstab>

  <vstab x="-4.632" y="-1.732" z="0.749"
         chord    = "1.243"
         length   = "0.920"
         taper    = "0.30"
         dihedral = "-90"
         sweep    = "16">
         <stall aoa="16" width="1" peak="1.5"/>
  </vstab>

  <!-- Engines   source            : http://en.wikipedia.org/wiki/Armstrong_Siddeley_Double_Mamba

                 name              : Armstrong Siddeley Double Mamba
                 type              : Turboprop engine
                 power cruise      : 2960 hp ( 2 x 1480 )
                 weight            : 2170 lb  ( 984 kg )
  -->
  <propeller x="3.803" y="0" z="-0.160"
             mass         = "1085"
             moment       = "-25"
             radius       = "2.048"
             cruise-speed = "450"
             cruise-rpm   = "2000"
             cruise-power = "1800"
             cruise-alt   = "6000"
             min-rpm      = "50"
             max-rpm      = "2950"
             contra       = "1">
             <actionpt x="6.386" y="0" z="-0.160"/>
             <control-input  control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <turbine-engine eng-power   = "1800"
                             eng-rpm     = "2750"
                             alt         = "6000"
                             flat-rating = "1200"
                             min-n2      = "70"
                             max-n2      = "100"
                             bsfc        = "0.47">
                             <control-input control="THROTTLE"    axis="/controls/engines/engine[0]/throttle"/>
                             <control-input control="CONDLEVER"   axis="/controls/engines/engine[0]/condition"/>
                             <control-input control="STARTER"     axis="/controls/engines/engine[0]/starter"/>
                             <control-input control="PROPFEATHER" axis="/controls/engines/engine[0]/propeller-feather"/>
             </turbine-engine>
  </propeller>

  <propeller x="3.803" y="0" z="-0.160"
             mass         = "1085"
             moment       = "-25"
             radius       = "2.048"
             cruise-speed = "450"
             cruise-rpm   = "2000"
             cruise-power = "1800"
             cruise-alt   = "6000"
             min-rpm      = "50"
             max-rpm      = "2950"
             contra       = "1">
             <actionpt x="6.010" y="0" z="-0.160"/>
             <control-input  control="ADVANCE" axis="/controls/engines/engine[1]/propeller-pitch"/>
             <turbine-engine eng-power   = "1800"
                             eng-rpm     = "2750"
                             alt         = "6000"
                             flat-rating = "1200"
                             min-n2      = "70"
                             max-n2      = "100"
                             bsfc        = "0.47">
                             <control-input control="THROTTLE"    axis="/controls/engines/engine[1]/throttle"/>
                             <control-input control="CONDLEVER"   axis="/controls/engines/engine[1]/condition"/>
                             <control-input control="STARTER"     axis="/controls/engines/engine[1]/starter"/>
                             <control-input control="PROPFEATHER" axis="/controls/engines/engine[1]/propeller-feather"/>
             </turbine-engine>
  </propeller>

  <!-- Noze wheel -->
  <gear x="5.5739" y="0" z="-2.6578"
        compression = "0.5"
        spring      = "2.0"
        damp        = "4.2"
        stiction    = "1.0">
        <control-input  control="STEER"  axis="/controls/flight/rudder" square="true" src0="-1.0" src1="1.0" dst0="-0.8" dst1="0.8"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

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

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

  <!-- left main -->
  <gear x="1.4995" y=" 2.1692" z="-2.4867"
        compression = "0.5"
        spring      = "2.0"
        damp        = "4.2"
        stiction    = "1.0">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

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

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

  <!-- right main -->
  <gear x="1.4995" y="-2.1692" z="-2.4867"
        compression = "0.5"
        spring      = "2.0"
        damp        = "4.2"
        stiction    = "1.0">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

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

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

  <!-- Fuel  -->
  <tank x="1.883" y=" 2.406" z="-0.384" capacity="410"/>
  <tank x="2.133" y=" 0.000" z="-0.436" capacity="256"/>
  <tank x="1.883" y="-2.406" z="-0.384" capacity="410"/>

  <weight x="3.93" y="0" z="0.57" mass-prop="/sim/weight[0]/weight-lb"/>

  <!-- Crosse d'appontage -->
  <hook x="-4.78539" y="0" z="-0.65539" length="1.938" down-angle="65" up-angle="-10">
        <control-input axis="/controls/gear/tailhook" control="HEXTEND"/>
        <control-speed control="HEXTEND" transition-time="4"/>
  </hook>

  <!-- Launch-bar -->
  <launchbar x="5.574" y="0" z="-2.206" length="0.2">
             <control-input control="LEXTEND" axis="/controls/gear/launchbar"/>
             <control-speed control="LEXTEND" transition-time="1"/>
  </launchbar>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
                 3.960 / 6     = 0.660
                 1.225 + 0.660 = 1.885 ===== 2.093 better
  -->
  <ballast x="5.620" y="0.000" z="-0.82" mass="3800"/>

</airplane>
