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

<!-- Hispano Suiza HS-42 (E-6)
    CREATED = 04-2024 Manuel ACE (yasim configuration adapted from T-6 Texan by Emmanuel BARANGER)
    UPDATED = 05-2025 Manuel ACE 

- Revisado peso, potencia y depositos combustible.
- Ravisados valores en alas y HSTAB para mejora de físicas de vuelo.
- Revisado approach speed y cruise speed.
- Mejorada la respuesta del mando de profundidad, flaps y alerones.
- PENDIENTE DE REVISAR LAS ALAS, FISICA DEL VUELO Y GEOMETRIA GENERAL DEL FUSELAJE.

    sources          : https://en.wikipedia.org/wiki/Hispano_HS-42
    sources          : https://es.wikipedia.org/wiki/Hispano-Suiza_HS-42


CHARACTERISTICS of Hispano Suiza HS.42 (from original Pilot's Manual)

Crew: 2
Length: 7.95 m (26 ft 1 in)
Wingspan: 10.00 m (32 ft 10 in)
Height: 2.60 m (8 ft 6 in)
Wing area: 16.3 m2 (175 sq ft)
Aspect ratio: 6.13:1
Empty weight: 1,208 kg (2,664 lb)
Gross weight: 1,787 kg (3,939 lb)
Fuel capacity: 400 L (110 US gal; 88 imp gal)
Powerplant: 1 Armstrong Siddeley Cheetah 27, Seven-cylinder radial engine, 283 kW (385 hp)
Propellers: 2-bladed Rotol wooden variable-pitch propeller, 2.84 m (9 ft 4 in) diameter

Performance:
Maximum speed: 335 km/h (208 mph, 181 kn)
Cruise speed: 295 km/h (183 mph, 159 kn)
Stall speed: 118 km/h (73 mph, 64 kn) (flaps down)
Range: 1,200 km (750 mi, 650 nmi)
Endurance: 4 hr 15 min
Service ceiling: 6,000 m (20,000 ft)
Rate of climb: 7.2 m/s (1,410 ft/min)

-->

<airplane mass="2664" version="YASIM_VERSION_CURRENT" mtow-lbs="3939">

  <approach speed="64" aoa="2" fuel="0.2">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.2"/>
    <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/flight/flaps"                      value="1"/>
    <control-setting axis="/controls/gear/gear-down"                    value="1"/>
  </approach>

  <cruise speed="159" alt="5000" fuel="0.7">
    <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.207" y="0" z="0.878"/>

  <!-- Fuselage -->
  <fuselage ax=" 3.992" ay="0" az="-0.089" bx=" 3.873" by="0" bz="-0.089" width="1.174" taper="0.9" midpoint="1"/>
  <fuselage ax=" 3.873" ay="0" az="-0.089" bx=" 3.298" by="0" bz="-0.081" width="1.315" taper="0.9" midpoint="1"/>

  <fuselage ax=" 3.374" ay="0" az="-0.091" bx=" 3.058" by="0" bz="-0.091" width="1.304" taper="0.9" midpoint="1"/>
  <fuselage ax=" 3.058" ay="0" az="-0.091" bx=" 1.821" by="0" bz="-0.194" width="1.304" taper="1.0" midpoint="1"/>
  <fuselage ax=" 1.885" ay="0" az="-0.194" bx="-0.835" by="0" bz="-0.132" width="1.304" taper="0.8" midpoint="0"/>
  <fuselage ax="-0.835" ay="0" az="-0.132" bx="-3.610" by="0" bz="-0.019" width="1.043" taper="0.3" midpoint="0"/>

  <fuselage ax=" 3.058" ay="0" az="-0.091" bx=" 1.817" by="0" bz=" 0.057" width="1.304" taper="1.0" midpoint="1"/>
  <fuselage ax=" 1.885" ay="0" az=" 0.060" bx="-0.835" by="0" bz=" 0.122" width="1.304" taper="0.8" midpoint="0"/>
  <fuselage ax="-0.835" ay="0" az=" 0.137" bx="-3.610" by="0" bz=" 0.250" width="1.043" taper="0.3" midpoint="0"/>
  <!-- Cabine -->
  <fuselage ax=" 2.250" ay="0" az=" 0.679" bx=" 1.802" by="0" bz=" 0.828" width="0.588" taper="0.2" midpoint="1"/>
  <fuselage ax=" 1.888" ay="0" az=" 0.828" bx="-0.103" by="0" bz=" 0.738" width="0.588" taper="1.0" midpoint="1"/>
  <fuselage ax="-0.065" ay="0" az=" 0.764" bx="-0.826" by="0" bz=" 0.575" width="0.588" taper="0.2" midpoint="0"/>

<!-- ALA (PRIMER TRAMO) En este tramo no hay flaps -->
  <wing x="1.616" y="0" z="-0.646"
        chord="2.285"
        length="1.407"
        taper="1.0"
        camber="0.005"
        incidence="0">
        <stall   aoa="20" width="1" peak="1.5"/>
  </wing>

<!-- ALA (SEGUNDO TRAMO) --> <!-- NO AGREGAR NOTAS DESPUES DE LOS VALORES (DA ERROR) -->
<!-- Ajustados valores de flaps (FLAP0) y alerones (FLAP1) -->
  <wing x="1.616" y="1.406" z="-0.646"
        append="1"
        chord="2.285"
        length="4.938"
        taper="0.5"
        sweep="3.5"
        dihedral="6.0"
        incidence="0">
        <stall   aoa="20" width="1"    peak="1.5"/>
        <flap0 start="0.00" end="0.27" lift="1.6" drag="2.5"/>
        <flap1 start="0.27" end="0.93" 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/flaps-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="4"/>
  </wing>

<!-- ESTABILIZADOR HORIZONTAL Y PROFUNDIDAD--> <!-- MODIFICO VALORES DE chord, length, lift y drag -->
  <hstab x="-3" y="0" z="0.40466"
         chord="1.9"
         length="2.100"
         taper="0.58"
         sweep="10">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0.1"    end="0.8" lift="1.25" 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>

<!-- ESTABILIZADOR VERTICAL Y TIMON DE COLA -->
  <vstab x="-3.41256" y="0" z="-0.075"
         chord="1.913"
         length="1.856"
         taper="0.30"
         sweep="10">
         <stall   aoa="16" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.4" 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       : (from original pilot's manual)
                 name         : Armstrong Siddeley Cheetah 27 seven-cylinder radial engine
                 Power        : 287 kW (385 hp) at 2300 rpm at 1067m
                 type         : 7 cylinder single-row supercharged air-cooled radial engine
                 weight       : 637 lb (289 kg)
                 Displacement : 834 in3 (13.65 l)
                 Compression  : 6.35:1
  338 hp (252 kW) at 2,100 rpm for takeoff
  345 hp (257 kW) at 2,425 rpm at 7,875 ft (2,400 m)
  Specific power: 0.41 hp/cu in (18.83 kW/L)
  Compression ratio: 6.35:1
  Specific fuel consumption: 0.45 lb/hp/hr (271 g/kW/hr)
  Oil consumption: 0.24-0.45 oz/hp/hr (9-17 g/kW/hr)
  Power-to-weight ratio: 0.54 hp/lb (0.89 kW/kg)
  -->

 <propeller x="3.7" y="0" z="-0.09"
             mass="637"
             radius="1.38"
             moment="12"
             cruise-speed="126"
             cruise-alt="5000"
             cruise-rpm="2425"
             cruise-power="345"

             takeoff-power="338"
             takeoff-rpm="2100"
             manual-pitch="true">

             <actionpt x="4.08166" y="0" z="-0.09"/>
             <control-input control="PROPPITCH" axis="/controls/engines/engine[0]/propeller-pitch" src0="0" src1="1" dst0="-0.15" dst1="0.55"/>

             <piston-engine eng-power="385"
                            eng-rpm="2300"
                            displacement="834.0"
                            compression="6.35"
                            supercharger="1"
                            turbo-mul="1.4"
                            wastegate-mp="36">
                            <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"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[0]/boost"/>
             </piston-engine>
  </propeller>

  <gear x="2.29809" y="1.32496" z="-1.78338"
        compression="0.2"
        spring="0.8"
        damp="2">
        stiction="1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="STEER" axis="/sim/gears/toe-left"/>
  </gear>

  <gear x="2.29809" y="-1.32496" z="-1.78338"
        compression="0.2"
        spring="0.8"
        damp="2">
        stiction="1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="STEER" axis="/sim/gears/toe-right"/>
  </gear>

  <gear x="-3.39049" y="0" z="-0.64732"
        compression="0.1"
        spring="0.8"
        stiction="1">
        <control-input control="STEER"     axis="/controls/flight/rudder"       src0="-1" src1="1" dst0="0.25" dst1="-0.25"/>
        <control-input control="CASTERING" axis="/controls/gear/tailwheel-lock" src0=" 0" src1="1" dst0="1.00" dst1=" 0.00"/>
  </gear>


  <!--  CONFIGURACIÓN DEPÓSITOS COMBUSTIBLE HS-42 -->

  <!--  DEPÓSITO ALA IZQUIERDA 115 L de gasolina pesan aprox 187.61 lb -->
  <tank x="1.4" y=" 2.7" z="-0.530" capacity="187.61"/>
  <!--  DEPÓSITO CENTRAL RESERVA 50 L de gasolina pesan aprox 81.57 lb -->
  <tank x="1.0" y=" 0.0" z="-0.355" capacity="81.57"/>
  <!--  DEPÓSITO CENTRAL 120 L de gasolina pesan aprox 195.77 lb -->
  <tank x="1.0" y=" 0.0" z="-0.355" capacity="195.77"/>
  <!--  DEPÓSITO ALA DERECHA 115 L de gasolina pesan aprox 187.61 lb -->
  <tank x="1.4" y="-2.7" z="-0.530" capacity="187.61"/>

</airplane>
