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

<!-- Arsenal VG33         : BARANGER Emmanuel (2008/2010/2015)
                   Update : BARANGER Emmanuel (03/2024)
                   Update : BARANGER Emmanuel (12/2025)

     Sources              : http://en.wikipedia.org/wiki/Arsenal_VG-33

     Envergure            : 10.80 m       ( 35 ft  3 in )
     Longueur             :  8.55 m       ( 28 ft  0 in )
     Hauteur              :  3.31 m       ( 10 ft 10 in )
     Masse a vide         :  2050 kg      ( 4519 lb     )
     Gross weight         :  2655 kg      ( 5853 lb     )
     Moteur               : Hispano-Suiza 12Y31 supercharged liquid-cooled 60 deg V12 engine (860 hp)
     Vitesse max          : 558 km/h      ( 301 kt )
     Vitesse de croisiere : 518 km/h      ( 280 kt )
-->
<airplane mass="4519" version="YASIM_VERSION_CURRENT" mtow-lbs="5853">

  <approach          speed="70" aoa="4"                          fuel   = "0.2">
    <control-setting axis="/controls/engines/engine[0]/throttle" value  = "0.3"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"  value  = "0.2"/>
    <solve-weight    idx="0"                                     weight = "180"/>
  </approach>

  <cruise            speed="280" alt="5000"                      fuel   = "0.6">
    <control-setting axis="/controls/engines/engine[0]/throttle" value  = "0.8"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"  value  = "1.0"/>
    <solve-weight    idx="0"                                     weight = "180"/>
  </cruise>

  <cockpit x="-0.034" y="0" z="0.730"/>

  <!-- Bol -->
  <fuselage ax=" 4.195" ay=" 0.000" az="-0.043" bx=" 3.973" by=" 0.000" bz="-0.043" width="0.438" taper="0.40" midpoint="1"/>
  <fuselage ax=" 3.973" ay=" 0.000" az="-0.043" bx=" 3.776" by=" 0.000" bz="-0.043" width="0.559" taper="0.80" midpoint="1"/>

  <!-- Fuselage -->
  <fuselage ax=" 3.776" ay=" 0.000" az="-0.043" bx=" 3.362" by=" 0.000" bz="-0.043" width="0.798" taper="0.70" midpoint="1"/>
  <fuselage ax=" 3.362" ay=" 0.000" az="-0.043" bx=" 2.897" by=" 0.000" bz="-0.043" width="0.953" taper="0.84" midpoint="1"/>
  <fuselage ax=" 2.897" ay=" 0.000" az="-0.043" bx=" 0.868" by=" 0.000" bz=" 0.088" width="0.953" taper="1.00" midpoint="1"/>
  <fuselage ax=" 0.868" ay=" 0.000" az=" 0.088" bx="-1.996" by=" 0.000" bz=" 0.127" width="0.953" taper="0.72" midpoint="0"/>
  <fuselage ax="-1.996" ay=" 0.000" az=" 0.127" bx="-3.193" by=" 0.000" bz=" 0.186" width="0.686" taper="0.66" midpoint="0"/>
  <fuselage ax="-3.193" ay=" 0.000" az=" 0.186" bx="-3.771" by=" 0.000" bz=" 0.183" width="0.453" taper="0.60" midpoint="0"/>
  <fuselage ax="-3.771" ay=" 0.000" az=" 0.183" bx="-4.191" by=" 0.000" bz=" 0.108" width="0.272" taper="0.15" midpoint="0"/>

  <fuselage ax=" 3.676" ay=" 0.000" az="-0.346" bx=" 3.262" by=" 0.000" bz="-0.346" width="0.798" taper="0.70" midpoint="1"/>
  <fuselage ax=" 3.262" ay=" 0.000" az="-0.346" bx=" 2.699" by=" 0.000" bz="-0.377" width="0.953" taper="0.84" midpoint="1"/>
  <fuselage ax=" 2.723" ay=" 0.000" az="-0.377" bx=" 0.000" by=" 0.000" bz="-0.377" width="0.953" taper="1.00" midpoint="1"/>
  <fuselage ax=" 0.000" ay=" 0.000" az="-0.377" bx="-1.995" by=" 0.000" bz="-0.170" width="0.953" taper="0.72" midpoint="0"/>
  <fuselage ax="-1.995" ay=" 0.000" az="-0.170" bx="-3.220" by=" 0.000" bz="-0.030" width="0.686" taper="0.66" midpoint="0"/>
  <fuselage ax="-3.220" ay=" 0.000" az="-0.030" bx="-3.771" by=" 0.000" bz=" 0.040" width="0.453" taper="0.60" midpoint="0"/>
  <fuselage ax="-3.771" ay=" 0.000" az=" 0.040" bx="-4.191" by=" 0.000" bz=" 0.108" width="0.272" taper="0.15" midpoint="0"/>

  <!-- Cockpit -->
  <fuselage ax=" 0.766" ay=" 0.000" az=" 0.422" bx=" 0.324" by=" 0.000" bz=" 0.721" width="0.427" taper="0.70" midpoint="1"/>
  <fuselage ax=" 0.442" ay=" 0.000" az=" 0.721" bx="-0.188" by=" 0.000" bz=" 0.707" width="0.427" taper="1.00" midpoint="1"/>
  <fuselage ax=" 0.442" ay=" 0.000" az=" 0.721" bx="-0.188" by=" 0.000" bz=" 0.707" width="0.427" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.188" ay=" 0.000" az=" 0.707" bx="-0.747" by=" 0.000" bz=" 0.593" width="0.427" taper="0.97" midpoint="0"/>
  <fuselage ax="-0.747" ay=" 0.000" az=" 0.593" bx="-2.181" by=" 0.000" bz=" 0.413" width="0.427" taper="0.10" midpoint="0"/>

  <wing x="1.140" y="0" z="-0.400"
        chord    = "2.00"
        length   = "5.379"
        taper    = "0.49"
        sweep    = "-2.5"
        dihedral = "5"
        camber   = "0.01">
        <stall   aoa="20" width="1"    peak="1.5"/>
        <flap0 start="0.12" end="0.47" lift="1.7" drag="1.4"/>
        <flap1 start="0.47" end="0.86" lift="1.2" drag="1.2"/>

        <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="7"/>
  </wing>

  <hstab x="-2.977" y="0" z="0.247"
         chord  = "1.130"
         length = "2.056"
         taper  = "0.51"
         sweep  = "3">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.2" 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="-3.226" y="0" z="0.296"
         chord  = "1.777"
         length = "1.4"
         taper  = "0.26"
         sweep  = "17">
         <stall   aoa="16" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.6" drag="1.2"/>

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

         <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
  </vstab>

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

                 name              : Hispano-Suiza 12Y
                 type              : Twelve-cylinder supercharged liquid-cooled 60 dg V12 engine
                 power cruise      : 824 hp at 2400 rpm for takeoff
                                   : 848 hp at 2400 rpm at 4000 m (13100 ft)
                 displacement      : 36.05 l ( 2199.9 in3 )
                 compression       : 5.8:1
                 weight            : 465 kg  ( 1025 lb )

                gear-ratio="0.5"
  -->
  <propeller x="2.605" y="0.0" z="-0.126"
             mass          = "1024"
             radius        = "1.43"
             moment        = "35"
             cruise-speed  = "280"
             cruise-alt    = "5000"
             cruise-power  = "848"
             cruise-rpm    = "2400"
             takeoff-power = "848"
             takeoff-rpm   = "2400">
             <actionpt x="3.987" y="0.0" z="-0.043"/>
             <piston-engine eng-rpm      = "2400"
                            eng-power    = "860"
                            displacement = "2199.9"
                            compression  = "5.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"/>
             </piston-engine>
  </propeller>

  <!-- left main -->
  <gear x="1.484" y="1.944" z="-1.629"
        compression = "0.4"
        spring      = "6"
        damp        = "1.2"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <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="5.1"/>
  </gear>

  <!-- right main -->
  <gear x="1.484" y="-1.944" z="-1.629"
        compression = "0.4"
        spring      = "6"
        damp        = "1.2"
        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="4.9"/>
  </gear>

  <gear x="-3.682" y="0" z="-0.311"
        compression = "0.2"
        spring      = "6"
        damp        = "1.2"
        stiction    = "1">
  </gear>

  <!-- Fuel  -->
  <tank x=" 1.0" y=" 2" z="-0.3" capacity="210"/>
  <tank x="-0.4" y=" 0" z="-0.7" capacity="156"/>
  <tank x=" 1.0" y="-2" z="-0.3" capacity="210"/>

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

  <!-- Mass distribution
       Dilbert/Helijah : The cg should be about 1/6 chord back from the center of the chord.
                 2.000 / 6     = 0.333
                 1.140 - 0.333 = 0.807
  -->
  <ballast x="3" y="0" z="0" mass="-184"/>

</airplane>
