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

<!-- Henschel Hs P 75 : Emmanuel BARANGER (   2010)
              Updated : Emmanuel BARANGER (12/2020)
              Updated : Emmanuel BARANGER (03/2023)

     sources          : http://www.luft46.com/henschel/hsp75.html

     wingspan         : 11.30 m    (    37 ft  1 in )
     length           : 12.20 m    (    40 ft  0 in )
     height           :  4.30 m    (    14 ft  1 in )
     max speed        :   790 km/h (   427 kt       )
     empty weight     :  6000 kg   ( 12000 lb       )
     Max weight       :  7500 kg   ( 16535 lb       )
     engine           : Daimler-Benz DB 613A
     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="12000" version="YASIM_VERSION_CURRENT" mtow-lbs="16535">

  <!-- Approach configuration -->
  <approach speed="85" aoa="4" fuel="0.3">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.30"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="0.55"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="0.50"/>
    <control-setting axis="/controls/engines/engine[0]/boost"           value="0.00"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.30"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="0.55"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="0.50"/>
    <control-setting axis="/controls/engines/engine[1]/boost"           value="0.00"/>

    <control-setting axis="/controls/flight/flaps"                      value="1"/>
    <control-setting axis="/controls/gear/gear-down"                    value="1"/>
  </approach>

  <!-- Cruise configuration -->
  <cruise speed="405" alt="16000" fuel="0.7">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.8"/>
    <control-setting axis="/controls/engines/engine[0]/mixture"         value="0.8"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1.0"/>
    <control-setting axis="/controls/engines/engine[0]/boost"           value="1.0"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.8"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="0.8"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="1.0"/>
    <control-setting axis="/controls/engines/engine[1]/boost"           value="1.0"/>

    <control-setting axis="/controls/flight/flaps"                      value="0"/>
    <control-setting axis="/controls/gear/gear-down"                    value="0"/>
  </cruise>

  <!-- pilot's eyepoint -->
  <cockpit x="1.255" y="0" z="0.933"/>

  <!-- Fuselage Left -->
  <fuselage ax=" 6.180" ay=" 0.000" az=" 0.500" bx=" 5.710" by=" 0.103" bz=" 0.443" width="0.309" taper="0.20" midpoint="1"/>
  <fuselage ax=" 5.710" ay=" 0.103" az=" 0.443" bx=" 5.032" by=" 0.170" bz=" 0.409" width="0.500" taper="0.60" midpoint="1"/>
  <fuselage ax=" 5.032" ay=" 0.170" az=" 0.409" bx=" 3.965" by=" 0.247" bz=" 0.357" width="0.710" taper="0.70" midpoint="1"/>
  <fuselage ax=" 3.965" ay=" 0.247" az=" 0.357" bx=" 2.743" by=" 0.273" bz=" 0.325" width="0.951" taper="0.76" midpoint="1"/>
  <fuselage ax=" 2.743" ay=" 0.273" az=" 0.325" bx=" 2.076" by=" 0.262" bz=" 0.312" width="1.080" taper="0.88" midpoint="1"/>
  <fuselage ax=" 2.076" ay=" 0.262" az=" 0.312" bx=" 0.000" by=" 0.262" bz=" 0.312" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax=" 0.000" ay=" 0.262" az=" 0.312" bx="-1.238" by=" 0.262" bz=" 0.344" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.238" ay=" 0.262" az=" 0.344" bx="-2.999" by=" 0.262" bz=" 0.555" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax="-2.999" ay=" 0.262" az=" 0.555" bx="-4.543" by=" 0.000" bz=" 0.626" width="1.080" taper="0.70" midpoint="0"/>

  <!-- Fuselage Right -->
  <fuselage ax=" 6.180" ay="-0.000" az=" 0.500" bx=" 5.710" by="-0.103" bz=" 0.443" width="0.309" taper="0.20" midpoint="1"/>
  <fuselage ax=" 5.710" ay="-0.103" az=" 0.443" bx=" 5.032" by="-0.170" bz=" 0.409" width="0.500" taper="0.60" midpoint="1"/>
  <fuselage ax=" 5.032" ay="-0.170" az=" 0.409" bx=" 3.965" by="-0.247" bz=" 0.357" width="0.710" taper="0.70" midpoint="1"/>
  <fuselage ax=" 3.965" ay="-0.247" az=" 0.357" bx=" 2.743" by="-0.273" bz=" 0.325" width="0.951" taper="0.76" midpoint="1"/>
  <fuselage ax=" 2.743" ay="-0.273" az=" 0.325" bx=" 2.076" by="-0.262" bz=" 0.312" width="1.080" taper="0.88" midpoint="1"/>
  <fuselage ax=" 2.076" ay="-0.262" az=" 0.312" bx=" 0.000" by="-0.262" bz=" 0.312" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax=" 0.000" ay="-0.262" az=" 0.312" bx="-1.238" by="-0.262" bz=" 0.344" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.238" ay="-0.262" az=" 0.344" bx="-2.999" by="-0.262" bz=" 0.555" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax="-2.999" ay="-0.262" az=" 0.555" bx="-4.543" by=" 0.000" bz=" 0.626" width="1.080" taper="0.70" midpoint="0"/>

  <!-- Top left -->
  <fuselage ax=" 2.131" ay=" 0.262" az=" 0.647" bx=" 1.606" by=" 0.262" bz=" 0.647" width="1.080" taper="0.20" midpoint="1"/>
  <fuselage ax=" 1.606" ay=" 0.262" az=" 0.647" bx="-1.227" by=" 0.262" bz=" 0.647" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.227" ay=" 0.262" az=" 0.647" bx="-2.999" by=" 0.262" bz=" 0.555" width="1.080" taper="1.00" midpoint="1"/>

  <!-- Top right -->
  <fuselage ax=" 2.131" ay="-0.262" az=" 0.647" bx=" 1.606" by="-0.262" bz=" 0.647" width="1.080" taper="0.20" midpoint="1"/>
  <fuselage ax=" 1.606" ay="-0.262" az=" 0.647" bx="-1.227" by="-0.262" bz=" 0.647" width="1.080" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.227" ay="-0.262" az=" 0.647" bx="-2.999" by="-0.262" bz=" 0.555" width="1.080" taper="1.00" midpoint="1"/>

  <fuselage ax="-4.590" ay=" 0.000" az=" 0.626" bx="-5.312" by=" 0.000" bz=" 0.626" width="0.724" taper="0.80" midpoint="0"/>
  <fuselage ax="-5.312" ay=" 0.000" az=" 0.626" bx="-5.968" by=" 0.000" bz=" 0.626" width="0.579" taper="0.40" midpoint="0"/>

  <hstab x="5.187" y="0" z="0.473"
         chord="1.220"
         length="1.9"
         taper="0.30"
         sweep="20"
         twist="-1.0"
         incidence="0.3">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0.30" end="0.90" lift="1.3" drag="1.1"/>

         <control-input  control="FLAP0" axis="/controls/flight/elevator"      invert="true" square="true" src0="-1" src1="1" dst0="-0.8" dst1="0.8"/>
         <control-input  control="FLAP0" axis="/controls/flight/elevator-trim" invert="true"/>

         <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
  </hstab>

  <wing x="-2.025" y="0" z="0.554"
        chord="3.674"
        length="5.8"
        taper="0.40"
        sweep="11"
        incidence="0.9"
        dihedral="3">
        <stall   aoa="20" width="1" peak="1.5"/>
        <flap0 start="0.21" end="0.53" lift="1.2" drag="1.4"/>
        <flap1 start="0.55" end="0.93" lift="1.2" drag="1.1"/>

        <control-input  control="FLAP0" axis="/controls/flight/flaps"                   invert="true"/>
        <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="9"/>
  </wing>

  <vstab x="-2.825" y="0" z="0.214"
         chord="3.280"
         length="1.8"
         taper="0.4"
         sweep="12"
         dihedral="-90">
         <stall   aoa="16" width="1"    peak="1.5"/>
         <flap0 start="0.14" end="0.94" lift="1.3" drag="1.3"/>

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

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

  <!-- Engines   source            : http://www.ibiblio.org/pub/academic/history/marshall/military/airforce/engines.txt
                                     http://en.wikipedia.org/wiki/Daimler-Benz_DB_610

                 name              : Daimler-Benz DB 613A (Coupled side-by-side DB 603s)
                 type              : 24-cylinder, liquid-cooled inline engine,
                                     of double inverted V configuration. Supercharged, direct fuel injection
                 power cruise      : 2750 hp each
                 power max         : 3800 hp each
                 rpm               : 2700 rpm
                 weight            :  756 kg  ( 1667 lb )
                 displacement      : 2176 in3 ( 35.7 l  )
                 compression       : 8.3:1
                 propeller diameter: 3.4 m

            It is impossible to have two propellers on one engine. As the DB613 is the coupling of two DB 603s,
            I therefore simulated two motors instead of a single larger one.
  -->
  <propeller x="-0.900" y="0.450" z="0.300"
             mass="1667"
             radius="1.7"
             moment="10"
             cruise-alt="16000"
             cruise-power="2750"
             cruise-speed="405"
             cruise-rpm="2500"
             contra="1">
             <actionpt x="-4.716" y="0" z="0.663"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2800"
                            displacement="2176"
                            compression="8.3">
                            <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>

  <propeller x="-0.900" y="-0.450" z="0.300"
             mass="1667"
             radius="1.7"
             moment="10"
             cruise-alt="16000"
             cruise-power="2750"
             cruise-speed="405"
             cruise-rpm="2500"
             contra="1">
             <actionpt x="-5.502" y="0" z="0.663"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[1]/propeller-pitch"/>
             <piston-engine eng-power="3800"
                            eng-rpm="2800"
                            displacement="2176"
                            compression="8.3">
                            <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"/>
                            <control-input control="BOOST"    axis="/controls/engines/engine[1]/boost"/>
             </piston-engine>
  </propeller>

  <!-- Front gear -->
  <gear x="4.863" y="0" z="-1.983"
        compression="0.2"
        spring="0.8"
        stiction="1">
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="STEER"  axis="/controls/flight/rudder" square="true" src0="-1.0" src1="1.0" dst0="-0.5" dst1="0.5"/>

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

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

  <!-- left main gear -->
  <gear x="-1.498" y="1.663" z="-1.976"
        compression="0.2"
        spring="0.8"
        stiction="1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking" split="true"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

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

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

  <!-- right main gear -->
  <gear x="-1.498" y="-1.663" z="-1.976"
        compression="0.2"
        spring="0.8"
        stiction="1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking" split="true"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

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

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

  <!-- tail support-wheels -->
  <gear x="-3.374" y="0" z="-1.503"
        compression="0.01"
        spring="0.8"
        stiction="1">
  </gear>

  <!-- mass balance -->
  <tank x="-1.5" y=" 1.9" z="0.59" capacity="800.0"/>
  <tank x=" 0.2" y=" 0.0" z="0.00" capacity="482.5"/>
  <tank x="-1.5" y="-1.9" z="0.59" capacity="800.0"/>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
                 3.674 / 6     =  0.612
                -2.025 + 0.612 = -1.413
  -->
  <ballast x="5.075" y=" 0.000" z=" 0.290" mass="272"/>

</airplane>

