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

<!-- S.P.A.D. VII -    2009 BARANGER Emmanuel
          Updated - 08/2020 BARANGER Emmanuel
     Mar 29, 2024 - VonS update to approximate the Mann, Egerton & Co. Ltd. built Spad 7
                    (for RFC), with 140-hp engine

     sources          : http://en.wikipedia.org/wiki/SPAD_S.VII

     wingspan         : 7.81 m    (   25 ft  8 in )
     length           : 6.08 m    (   19 ft 11 in )
     height           : 2.20 m    (    7 ft  2 in )
     empty weight     :  530 kg   ( 1168 lb       )
     Gross weight     :  740 kg   ( 1632 lb       )
     engine           : 1 Hispano-Suiza 8A inline engine ( 140 hp )
     max speed        :  190 km/h (     103.6 kt    )
-->
<airplane mass="1168" version="YASIM_VERSION_CURRENT" mtow-lbs="1554">

  <!-- Approach configuration -->
  <approach speed="54" aoa="2" fuel="0.32">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.5"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"  value="1.0"/>
  </approach>

  <!-- Cruise configuration -->
  <cruise speed="97.2" alt="14000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1.0"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"  value="1.0"/>
  </cruise>

  <!-- pilot eyepoint -->
  <cockpit x="1.209" y="7.5" z="0.661"/>

  <fuselage ax=" 2.869" ay=" 0.000" az=" 0.127" bx=" 2.808" by=" 0.000" bz=" 0.127" width="0.747" taper="0.80" midpoint="1"/>
  <fuselage ax=" 2.808" ay=" 0.000" az=" 0.127" bx=" 2.624" by=" 0.000" bz=" 0.127" width="0.922" taper="0.82" midpoint="1"/>
  <fuselage ax=" 2.624" ay=" 0.000" az=" 0.127" bx=" 2.316" by=" 0.000" bz=" 0.127" width="1.041" taper="0.90" midpoint="1"/>
  <fuselage ax=" 2.316" ay=" 0.000" az=" 0.127" bx=" 2.001" by=" 0.000" bz=" 0.127" width="1.082" taper="0.96" midpoint="1"/>
  <fuselage ax=" 2.001" ay=" 0.000" az=" 0.127" bx=" 1.517" by=" 0.000" bz=" 0.127" width="1.082" taper="1.00" midpoint="1"/>
  <fuselage ax=" 1.517" ay=" 0.000" az=" 0.127" bx=" 0.003" by=" 0.000" bz=" 0.149" width="1.082" taper="0.80" midpoint="0"/>
  <fuselage ax=" 0.003" ay=" 0.000" az=" 0.149" bx="-2.447" by=" 0.000" bz=" 0.316" width="0.866" taper="0.20" midpoint="0"/>

  <!-- upper wing -->
  <wing x="1.565" y="0" z="0.895"
        chord="1.633"
        length="3.901"
        taper="0.4"
        sweep="10"
        dihedral="0.001"
        camber="0.007"
        twist="13.5">
        <stall   aoa="10.5" width="0.05" peak="1.8"/>
        <flap0 start="0.5"    end="1"    lift="1.4" drag="2.3"/>

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

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

  <!-- lower wing -->
  <wing x="1.565" y="0.00" z="-0.213"
        append="1"
        chord="1.633"
        length="3.700"
        taper="0.8"
        dihedral="0.001"
        camber="0.005"
        twist="9.1">
  </wing>

  <!-- tailplane -->
  <hstab x="-2.186" y="0" z="0.507"
         chord="1.235"
         length="1.5"
         sweep="8"
         taper="0.6"
         dihedral="0.001"
         camber="-0.008"
         twist="2.9">
         <stall   aoa="11.5" width="0.8" peak="1.5"/>
         <flap0 start="0"      end="1"   lift="1.3" drag="1.9"/>

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

  <!-- tail -->
  <vstab x="-2.128" y="0" z="0.184"
         chord="1.803"
         length="1.2"
         sweep="17"
         taper="0.4">
         <stall   aoa="12" width="0.8" peak="1.4"/>
         <flap0 start="0"    end="1"   lift="1.3" drag="1.7"/>

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

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

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

                 name              : Hispano-Suiza 8
                 type              : 8-cylinder liquid-cooled Vee piston engine
                 power cruise      : 140 hp at 2100 rpm
                 weight            : 215 kg (474 lb)
                 displacement      : 717.8 in3 (11.76 L)
  -->
  <propeller x="2.237" y="0" z="0.141"
             mass="474"
             moment="12"
             radius="1.2"
             cruise-speed="97.2"
             cruise-rpm="1750"
             cruise-power="125"
             cruise-alt="16000"
             takeoff-power="140"
             takeoff-rpm="1900">
             <actionpt x="2.941" y="0" z="0.127"/>
             <piston-engine eng-power="140"
                            eng-rpm="1900"
                            displacement="717.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="2.292" y="0.751" z="-1.323"
        compression="0.15"
        dfric="0.4"
        sfric="0.6"
        damp="2.5">
        <control-input control="BRAKE" axis="/controls/gear/brake-parking" split="true"/>
  </gear>

  <!-- right main -->
  <gear x="2.292" y="-0.751" z="-1.323"
        compression="0.15"
        dfric="0.4"
        sfric="0.6"
        damp="2.5">
        <control-input control="BRAKE" axis="/controls/gear/brake-parking" split="true"/>
  </gear>

  <!-- Tail skid -->
  <gear x="-2.137" y="0" z="-0.164"
        compression="0.10"
        castering="0"
        dfric="0.8"
        sfric="1.0"
        damp="1.9">
  </gear>

  <!-- fuel -->
  <tank x="1.565" y="0" z="-0.205" capacity="200"/>

  <!-- Displacment mass
  <ballast x="2.8" y="0" z="-0.2" mass="250"/> -->

</airplane>
