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

<!-- Velocity XL        :  BARANGER Emmanuel aka "helijah" 02/2026

     source             : https://www.wikiwand.com/en/articles/Velocity_V-Twin

     Wingspan           : 34 ft 0 in ( 10.36 m    )
     lenght             : 20 ft 0 in (  6.10 m    )
     height             :  8 ft 5 in (  2.56 m    )
     Empty mass         :    2000 lb (   907 kg   )
     Max takeoff weight :    3200 lb (  1451 kg   )
     Engine             : 2 x Lycoming IO-320 4 horizontally opposed piston engines, 160 hp each
     Cruise speed       :     175 kt (   323 km/h ) normal at 75% power
     Stall speed        :      65 kt (   121 km/h )
-->
<airplane mass="2000" version="YASIM_VERSION_CURRENT" mtow-lbs="3200">

  <approach          speed="75" aoa="2"                                 fuel="0.2" >
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.3"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.3"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="1"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/gear/gear-down"                    value="1"/>
    <solve-weight    idx="0"                                            weight="180"/>
    <solve-weight    idx="1"                                            weight="0"/>
  </approach>

  <cruise            speed="175" alt="8000"                             fuel="0.7">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.65"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="0.8"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="0.5"/>
    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.65"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="0.8"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="0.5"/>
    <control-setting axis="/controls/gear/gear-down"                    value="0"/>
    <solve-weight    idx="0"                                            weight="180"/>
    <solve-weight    idx="1"                                            weight="0"/>
  </cruise>

  <!-- Cockpit position: -->
  <cockpit x="0.770" y="0.236" z="0.404"/>

  <!-- Fuselage -->
  <fuselage ax=" 3.017" ay=" 0.000" az="-0.123" bx=" 2.993" by=" 0.000" bz="-0.123" width="0.070" taper="0.10" midpoint="1"/>
  <fuselage ax=" 2.993" ay=" 0.000" az="-0.123" bx=" 2.937" by=" 0.000" bz="-0.126" width="0.172" taper="0.40" midpoint="1"/>
  <fuselage ax=" 2.937" ay=" 0.000" az="-0.126" bx=" 2.671" by=" 0.000" bz="-0.131" width="0.470" taper="0.36" midpoint="1"/>

  <!-- Left -->
  <fuselage ax=" 2.671" ay=" 0.000" az="-0.131" bx=" 1.758" by=" 0.145" bz="-0.131" width="0.780" taper="0.60" midpoint="1"/>
  <fuselage ax=" 1.758" ay=" 0.145" az="-0.131" bx=" 0.925" by=" 0.113" bz="-0.011" width="1.030" taper="0.74" midpoint="1"/>
  <fuselage ax=" 0.925" ay=" 0.113" az="-0.011" bx=" 0.418" by=" 0.072" bz=" 0.021" width="1.123" taper="0.92" midpoint="1"/>
  <fuselage ax=" 0.418" ay=" 0.072" az=" 0.021" bx="-0.275" by=" 0.072" bz=" 0.021" width="1.123" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.275" ay=" 0.072" az=" 0.021" bx="-1.288" by=" 0.107" bz=" 0.021" width="1.123" taper="0.80" midpoint="0"/>
  <fuselage ax="-1.288" ay=" 0.107" az=" 0.021" bx="-1.866" by=" 0.205" bz=" 0.075" width="0.898" taper="0.60" midpoint="0"/>
  <fuselage ax="-1.863" ay=" 0.205" az=" 0.089" bx="-3.087" by=" 0.000" bz=" 0.129" width="0.531" taper="0.10" midpoint="0"/>

  <!-- Right -->
  <fuselage ax=" 2.671" ay=" 0.000" az="-0.131" bx=" 1.758" by="-0.145" bz="-0.131" width="0.780" taper="0.60" midpoint="1"/>
  <fuselage ax=" 1.758" ay="-0.145" az="-0.131" bx=" 0.925" by="-0.113" bz="-0.011" width="1.030" taper="0.74" midpoint="1"/>
  <fuselage ax=" 0.925" ay="-0.113" az="-0.011" bx=" 0.418" by="-0.072" bz=" 0.021" width="1.123" taper="0.92" midpoint="1"/>
  <fuselage ax=" 0.418" ay="-0.072" az=" 0.021" bx="-0.275" by="-0.072" bz=" 0.021" width="1.123" taper="1.00" midpoint="1"/>
  <fuselage ax="-0.275" ay="-0.072" az=" 0.021" bx="-1.288" by="-0.107" bz=" 0.021" width="1.123" taper="0.80" midpoint="0"/>
  <fuselage ax="-1.288" ay="-0.107" az=" 0.021" bx="-1.866" by="-0.205" bz=" 0.075" width="0.898" taper="0.60" midpoint="0"/>
  <fuselage ax="-1.863" ay="-0.205" az=" 0.089" bx="-3.087" by=" 0.000" bz=" 0.129" width="0.531" taper="0.10" midpoint="0"/>

  <mstab x="0.111" y="0" z="-0.146"
         chord    = "3.5"
         length   = "2.41"
         taper    = "0.38"
         dihedral = "2.6"
         sweep    = "38"
         camber   = "0.03">
         <stall aoa="18" width="1" peak="1.5"/>
  </mstab>

  <wing x="-1.371" y="1.8936" z="-0.0577"
        chord    = "1.36"
        length   = "2.94"
        taper    = "0.5"
        dihedral = "0"
        sweep    = "20.5"
        camber   = "0.03">
        <stall   aoa="18" width="1"    peak="1.5"/>
        <flap0 start="0.25" end="0.75" lift="1.15" drag="1.2"/>

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

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

  <hstab x="1.957" y="0.000" z="0.018"
         chord     = "0.473"
         length    = "2.32"
         taper     = "1"
         incidence = "-2"
         camber    = "0.1">
         <stall   aoa="15" width="1"    peak="1.5" />
         <flap0 start="0.25" end="0.95" lift="1.5" drag="1.2"/>

         <control-input  control="FLAP0" axis="/controls/flight/elevator"      invert="true"/>
         <control-input  control="FLAP0" axis="/controls/flight/elevator-trim" invert="true"/>
         <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
  </hstab>

  <vstab x="-2.440" y="-0.000" z="0.264"
         chord  = "1.519"
         length = "1.500"
         taper  = "0.40"
         sweep  = "34">
         <stall   aoa="14" width="1"  peak="1.5" />
         <flap0 start="0"    end="1"  lift="1.3" 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>

  <vstab x="-2.510" y=" 4.720" z="-0.050"
         chord    = "0.500"
         length   = "0.570"
         taper    = "0.40"
         dihedral = "75"
         sweep    = "30">
  </vstab>

  <vstab x="-2.510" y="-4.720" z="-0.050"
         chord    = "0.500"
         length   = "0.570"
         taper    = "0.40"
         dihedral = "105"
         sweep    = "30">
  </vstab>

  <!--  Continental IO-550
                 source       : https://www.wikiwand.com/en/articles/Lycoming_IO-320

                 type         : Four-cylinder air-cooled horizontally opposed engine
                 power        : 160 hp at 2700 rpm
                 weight       : 244 lb dry ( 111 kg )
                 Displacement : 319.8 in3 ( 5.24 L )
                 Compression  : 7:1

  -->
  <propeller x="-1.690" y=" 1.220" z="0.077"
             mass          = "244"
             radius        = "0.88"
             moment        = "9.64"
             cruise-speed  = "175"
             cruise-rpm    = "2700"
             cruise-alt    = "8500"
             cruise-power  = "145"
             takeoff-power = "160"
             takeoff-rpm   = "2800"
             gear-ratio    = ".94"
             fine-stop     = "0.8"
             coarse-stop   = "4"
             min-rpm       = "2454"
             max-rpm       = "2800"
             contra        = "1">
             <actionpt x="-2.195" y=" 1.220" z="0.142"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <piston-engine eng-rpm      = "2800"
                            eng-power    = "160"
                            displacement = "319.8"
                            compression  = "7">
                            <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>

  <propeller x="-1.690" y="-1.220" z="0.077"
             mass          = "244"
             radius        = "0.88"
             moment        = "9.64"
             cruise-speed  = "175"
             cruise-rpm    = "2700"
             cruise-alt    = "8500"
             cruise-power  = "145"
             takeoff-power = "160"
             takeoff-rpm   = "2800"
             gear-ratio    = ".94"
             fine-stop     = "0.8"
             coarse-stop   = "4"
             min-rpm       = "2454"
             max-rpm       = "2800"
             contra        = "1">
             <actionpt x="-2.195" y="-1.220" z="0.142"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[1]/propeller-pitch"/>
             <piston-engine eng-rpm      = "2800"
                            eng-power    = "160"
                            displacement = "319.8"
                            compression  = "7">
                            <control-input control="THROTTLE" axis="/controls/engines/engine[1]/throttle"/>
                            <control-input control="STARTER"  axis="/controls/engines/engine[1]/starter"/>
                            <control-input control="MAGNETOS" axis="/controls/engines/engine[1]/magnetos"/>
                            <control-input control="MIXTURE"  axis="/controls/engines/engine[1]/mixture"/>
             </piston-engine>
  </propeller>

  <!-- Slight changes to gear locations: -->
  <gear x="2.150" y="0.000" z="-1.255"
        compression = "0.1"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <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="7"/>
  </gear>

  <gear x="-0.900" y="0.900" z="-1.200"
        compression = "0.1"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"    split="true"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking" split="true"/>
        <control-input  control="STEER"  axis="/sim/gears/toe-left"/>

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

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

  <gear x="-0.900" y="-0.900" z="-1.200"
        compression = "0.1"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"   split="true"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking" split="true"/>
        <control-input  control="STEER"  axis="/sim/gears/toe-right"/>

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

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

  <tank x="-1.000" y=" 0.000" z="-0.100" capacity=" 24"/>
  <tank x="-1.000" y=" 0.900" z="-0.100" capacity="198"/>
  <tank x="-1.000" y="-0.900" z="-0.100" capacity="198"/>

  <weight x=" 0.770" y="0.000" z="0.000" mass-prop="/sim/weight[0]/weight-lb"/>
  <weight x="-1.000" y="0.000" z="0.000" mass-prop="/sim/weight[1]/weight-lb"/>

  <ballast x="2.000" y="0.000" z="0.000" mass="764.5"/>

</airplane>
