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

<!-- GRUMANN F6F Hellcat - 2010 Emmanuel BARANGER
   
     Grumman Aircraft Engineering Co.
     F6F Hellcat

     sources          : http://en.wikipedia.org/wiki/F6F_Hellcat
     wingspan         : 13.06 m    (  42 ft 10 in)
     length           : 10.24 m    (  33 ft  7 in)
     height           :  3.99 m    (  13 ft  1 in)
     max speed        :   610 km/h ( 330 kts)
     stall speed      :   135 km/h (  73 kts)
     empty weight     :  4190 kg   (9238 lb)
     engine           : Pratt & Whitney R-2800-10W "Double Wasp" two-row radial engine with a two-speed two-stage 
     propeller        : 3-blade Hamilton Standard - 4 m (13 ft 1 in)
     fuel tank        : 250 gal (946 L) internal; up to 3 - 150 gal (568 L) external drop tanks
-->

<airplane mass="9238">

  <approach speed="75" aoa="4">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.2"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1.0"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1.0"/>
    <control-setting axis="/controls/flight/flaps" value="1"/>
    <control-setting axis="/controls/gear/gear-down" value="1"/>
  </approach>

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

  <cockpit x="1.047" y="0" z="1.168"/>

  <fuselage ax="4.543" ay="0" az="0.022" bx="-5.014" by="0" bz="-0.353" width="1.4" taper="0.6" midpoint="0.4"/>

  <wing x="1.4" y="0.687" z="-0.293" 
        chord="3.100"
        length="5.830" 
        taper="0.5" 
        dihedral="4.5"
        sweep="-2" 
        camber="0.01">
        <stall aoa="18" width="4" peak="1.5"/>
        <flap0 start="0.032" end="0.655" lift="1.5" drag="1.2"/>
        <flap1 start="0.655" end="0.952" lift="1.2" drag="1.3"/>

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


        <control-output control="FLAP0" prop="/surface-positions/flaps-pos-norm"/>
        <control-output control="FLAP1" side="left" prop="/surface-positions/left-aileron-pos-norm"/>
        <control-output control="FLAP1" side="right" prop="/surface-positions/right-aileron-pos-norm"/>
  </wing>

  <hstab x="-4" y="0.0" z="0.188" 
         chord="1.8"
         length="2.85" 
         taper="0.58"
         sweep="8">
         <stall aoa="16" width="14" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.8" drag="1.8"/>

         <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.160" y="0.00" z="-0.075" 
         chord="1.913"
         length="1.856" 
         taper="0.40"
         sweep="10">
         <stall aoa="14" width="4" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.3" 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"/>
  </vstab>

  <!-- Engines   source            : http://en.wikipedia.org/wiki/Pratt_%26_Whitney_R-2800

                 name              : Pratt & Whitney R-2800
                 type              : 18-cylinder air-cooled two-row radial engine with water injection
                 power cruise      :   2100 hp at 2700 rpm
                 weight            :   1073 kg  ( 2360 lb)
                 displacement      : 2804.5 in3 (45.96 l)
                 compression       : 6.9:1
                 Propeller diameter: 4 m (13 ft 1 in)
                              compression="6.9"
  -->
  <propeller x="4" y="0" z="0.105"
             radius="2" 
             mass="1900"
             moment="105.5"
             cruise-alt="2000"
             cruise-power="1095"
             cruise-speed="190"
             cruise-rpm="1037"
             gear-ratio="0.479"
             min-rpm="766"
             max-rpm="1637" >
             <actionpt x="4.704" y="0" z="0.105"/>
             <control-input axis="/controls/engines/engine[0]/propeller-pitch" control="ADVANCE" />
             <piston-engine eng-power="2100"
                            eng-rpm="2800"
                            turbo-mul="4.3"
                            wastegate-mp="56">
                            <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="2.713" y="1.738" z="-2.026"
        compression="0.2"
        retract-time="7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        <control-speed control="EXTEND" transition-time="6.2"/>
        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
  </gear>

  <gear x="2.713" y="-1.738" z="-2.026"
        compression="0.2" 
        retract-time="7">
        <control-input axis="/controls/gear/brake-right" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        <control-speed control="EXTEND" transition-time="6"/>
        <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>
  </gear>

  <gear x="-3.781" y="0.0" z="-1.084"
        compression="0.2"
        retract-time="7">
        <control-input axis="/controls/flight/rudder" control="STEER" src0="-1.0" src1="1.0" dst0=".25" dst1="-.25"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
        <control-speed control="EXTEND" transition-time="7"/>
        <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>
  </gear>

  <tank x="1.4" y="2.7" z="-0.4" capacity="570"/>
  <tank x="1" y="0" z="-0.355" capacity="884"/>
  <tank x="1.4" y="-2.7" z="-0.4" capacity="570"/>

  <!-- Crosse d'appontage -->
  <hook x="-6.054" y="0" z="-0.769" length="1.169" down-angle="40" up-angle="0">
        <control-input axis="/controls/gear/tailhook" control="HEXTEND"/>
        <control-speed control="HEXTEND" transition-time="4"/>
  </hook>

  <!-- Launch-bar --> 
  <launchbar x="7.533" y="0" z="-2.30"  length="0.6">
             <control-input axis="/controls/gear/launchbar" control="LEXTEND"/>
             <control-speed control="LEXTEND" transition-time="1"/>
  </launchbar>
    
  <!-- CG theorique x=1.302 y=0 z=-0.293 -->
  <ballast x="0" y="0.0" z="-2" mass="1000"/>

</airplane>

