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

<!-- Nord-Aviation N262 : BARANGER Emmanuel (12/2020)
                Updated : BARANGER Emmanuel (01/2021)
                Updated : BARANGER Emmanuel (06/2025)

     sources            : https://en.wikipedia.org/wiki/A%C3%A9rospatiale_N_262

     wingspan           : 21.90 m    ( 71 ft 10 in )
     length             : 19.28 m    ( 63 ft  3 in )
     height             :  6.21 m    ( 20 ft  4 in )
     Moteurs            : 2 Turbomeca Bastan VIC turboprops, 1065 hp each
     Empty weight       :  6654 kg   ( 14670 lb    )
     Max takeoff weight : 10300 kg   ( 22708 lb    )
     Fuel capacity      : 2000 L     (   530 US gal, 440 imp gal)
     Cruise speed       :   360 km/h (   190 kn    )
     Maximum speed      :   385 km/h (   208 kn    )
     Stall speed        :   128 km/h (    69 kn    ) (wheels and flaps down)
-->
<airplane mass="14670" version="YASIM_VERSION_CURRENT" mtow-lbs="22708">

  <approach speed="69" aoa="6" fuel="0.3">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.3"/>
    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.3"/>

    <control-setting axis="/controls/engines/engine[0]/mixture"         value="1.0"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="1.0"/>

    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1.0"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="1.0"/>

    <control-setting axis="/controls/gear/gear-down"                    value="1.0"/>
  </approach>

  <cruise speed="190" alt="5000">
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.85"/>
    <control-setting axis="/controls/engines/engine[1]/throttle"        value="0.85"/>

    <control-setting axis="/controls/engines/engine[0]/mixture"         value="0.70"/>
    <control-setting axis="/controls/engines/engine[1]/mixture"         value="0.70"/>

    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="0.77"/>
    <control-setting axis="/controls/engines/engine[1]/propeller-pitch" value="0.77"/>

    <control-setting axis="/controls/gear/gear-down"                    value="0.00"/>
  </cruise>

  <cockpit x="6.315" y="0.412" z="-0.487"/>
  <!-- down -->
  <!-- Fuselage left -->
  <fuselage ax=" 9.623" ay=" 0.000" az="-1.880" bx=" 9.367" by=" 0.061" bz="-1.852" width="0.526" taper="0.20" midpoint="1"/>
  <fuselage ax=" 9.367" ay=" 0.061" az="-1.852" bx=" 9.206" by=" 0.089" bz="-1.834" width="0.662" taper="0.80" midpoint="1"/>
  <fuselage ax=" 9.206" ay=" 0.089" az="-1.834" bx=" 8.771" by=" 0.164" bz="-1.785" width="0.956" taper="0.70" midpoint="1"/>
  <fuselage ax=" 8.771" ay=" 0.164" az="-1.785" bx=" 7.901" by=" 0.251" bz="-1.674" width="1.335" taper="0.72" midpoint="1"/>
  <fuselage ax=" 7.901" ay=" 0.251" az="-1.674" bx=" 6.185" by=" 0.521" bz="-1.736" width="1.335" taper="1.00" midpoint="1"/>
  <fuselage ax=" 6.185" ay=" 0.521" az="-1.736" bx="-1.815" by=" 0.521" bz="-1.736" width="1.335" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.815" ay=" 0.521" az="-1.736" bx="-5.990" by=" 0.000" bz="-0.961" width="1.335" taper="1.00" midpoint="1"/>

  <!-- Fuselage left -->
  <fuselage ax=" 9.623" ay=" 0.000" az="-1.880" bx=" 9.367" by="-0.061" bz="-1.852" width="0.526" taper="0.20" midpoint="1"/>
  <fuselage ax=" 9.367" ay="-0.061" az="-1.852" bx=" 9.206" by="-0.089" bz="-1.834" width="0.662" taper="0.80" midpoint="1"/>
  <fuselage ax=" 9.206" ay="-0.089" az="-1.834" bx=" 8.771" by="-0.164" bz="-1.785" width="0.956" taper="0.70" midpoint="1"/>
  <fuselage ax=" 8.771" ay="-0.164" az="-1.785" bx=" 7.901" by="-0.251" bz="-1.674" width="1.335" taper="0.72" midpoint="1"/>
  <fuselage ax=" 7.901" ay="-0.251" az="-1.674" bx=" 6.185" by="-0.521" bz="-1.736" width="1.335" taper="1.00" midpoint="1"/>
  <fuselage ax=" 6.185" ay="-0.521" az="-1.736" bx="-1.815" by="-0.521" bz="-1.736" width="1.335" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.815" ay="-0.521" az="-1.736" bx="-5.990" by=" 0.000" bz="-0.961" width="1.335" taper="1.00" midpoint="1"/>

  <fuselage ax="-5.990" ay=" 0.000" az="-0.961" bx="-9.639" by=" 0.000" bz="-0.769" width="1.335" taper="0.05" midpoint="0"/>

  <!-- up -->
  <!-- Left -->
  <fuselage ax=" 7.790" ay=" 0.321" az="-1.089" bx=" 6.796" by=" 0.321" bz="-0.650" width="1.058" taper="0.20" midpoint="1"/>
  <fuselage ax=" 6.980" ay=" 0.321" az="-0.688" bx=" 6.185" by=" 0.321" bz="-0.688" width="1.335" taper="0.80" midpoint="1"/>
  <fuselage ax=" 6.185" ay=" 0.321" az="-0.688" bx="-1.815" by=" 0.321" bz="-0.688" width="1.335" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.815" ay=" 0.321" az="-0.688" bx="-5.990" by=" 0.000" bz="-0.961" width="1.335" taper="1.00" midpoint="1"/>
  <!-- right -->
  <fuselage ax=" 7.790" ay="-0.321" az="-1.089" bx=" 6.796" by="-0.321" bz="-0.650" width="1.058" taper="0.20" midpoint="1"/>
  <fuselage ax=" 6.980" ay="-0.321" az="-0.688" bx=" 6.185" by="-0.321" bz="-0.688" width="1.335" taper="0.80" midpoint="1"/>
  <fuselage ax=" 6.185" ay="-0.321" az="-0.688" bx="-1.815" by="-0.321" bz="-0.688" width="1.335" taper="1.00" midpoint="1"/>
  <fuselage ax="-1.815" ay="-0.321" az="-0.688" bx="-5.990" by=" 0.000" bz="-0.961" width="1.335" taper="1.00" midpoint="1"/>

  <!-- Left engine -->
  <fuselage ax=" 4.896" ay=" 2.929" az="-0.048" bx=" 4.841" by=" 2.929" bz="-0.048" width="0.166" taper="0.00" midpoint="1"/>  <fuselage ax=" 4.841" ay=" 2.929" az="-0.048" bx=" 4.676" by=" 2.929" bz="-0.048" width="0.335" taper="0.50" midpoint="1"/> <fuselage ax=" 4.676" ay=" 2.929" az="-0.048" bx=" 4.258" by=" 2.929" bz="-0.048" width="0.526" taper="0.65" midpoint="1"/>
  <fuselage ax=" 4.258" ay=" 2.929" az="-0.048" bx=" 4.211" by=" 2.929" bz="-0.048" width="0.683" taper="0.76" midpoint="1"/>
  <fuselage ax=" 4.211" ay=" 2.929" az="-0.048" bx=" 3.988" by=" 2.929" bz="-0.048" width="0.834" taper="0.82" midpoint="1"/>
  <fuselage ax=" 3.988" ay=" 2.929" az="-0.048" bx=" 1.767" by=" 2.929" bz="-0.048" width="0.837" taper="1.00" midpoint="1"/>
  <fuselage ax=" 1.767" ay=" 2.929" az="-0.048" bx=" 0.672" by=" 2.929" bz="-0.048" width="0.837" taper="0.50" midpoint="0"/>
  <fuselage ax=" 0.672" ay=" 2.929" az="-0.048" bx=" 0.298" by=" 2.929" bz="-0.048" width="0.418" taper="0.10" midpoint="0"/>

  <!-- up -->
  <fuselage ax=" 4.896" ay="-2.929" az="-0.048" bx=" 4.841" by="-2.929" bz="-0.048" width="0.166" taper="0.00" midpoint="1"/>  <fuselage ax=" 4.841" ay="-2.929" az="-0.048" bx=" 4.676" by="-2.929" bz="-0.048" width="0.335" taper="0.50" midpoint="1"/> <fuselage ax=" 4.676" ay="-2.929" az="-0.048" bx=" 4.258" by="-2.929" bz="-0.048" width="0.526" taper="0.65" midpoint="1"/>
  <fuselage ax=" 4.258" ay="-2.929" az="-0.048" bx=" 4.211" by="-2.929" bz="-0.048" width="0.683" taper="0.76" midpoint="1"/>
  <fuselage ax=" 4.211" ay="-2.929" az="-0.048" bx=" 3.988" by="-2.929" bz="-0.048" width="0.834" taper="0.82" midpoint="1"/>
  <fuselage ax=" 3.988" ay="-2.929" az="-0.048" bx=" 1.767" by="-2.929" bz="-0.048" width="0.837" taper="1.00" midpoint="1"/>
  <fuselage ax=" 1.767" ay="-2.929" az="-0.048" bx=" 0.672" by="-2.929" bz="-0.048" width="0.837" taper="0.50" midpoint="0"/>
  <fuselage ax=" 0.672" ay="-2.929" az="-0.048" bx=" 0.298" by="-2.929" bz="-0.048" width="0.418" taper="0.10" midpoint="0"/>

  <wing x="0.686" y="0" z="-0.012"
        chord    = "3.279"
        length   = "10.762"
        taper    = "0.5"
        sweep    = "-2"
        dihedral = "2"
        camber   = "0.05">
        <stall   aoa="20" width="1"    peak="1.5"/>
        <flap0 start="0.12" end="0.64" lift="1.24" drag="1.9"/>
        <flap1 start="0.64" end="0.98" lift="1.20" drag="1.1"/>

        <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/aileron-pos-norm"/>

        <control-speed  control="FLAP0" transition-time="5"/>
  </wing>

  <hstab x="-7.680" y="0" z="-0.900"
         chord  = "2.719"
         length = "4.452"
         taper  = "0.45"
         sweep  = "4">
         <stall   aoa="18" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.4" drag="1.1"/>

         <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="-7.914" y="0" z="-0.756"
         chord  = "3.166"
         length = "3.820"
         taper  = "0.5"
         sweep  = "5">
         <stall   aoa="16" width="1" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.4" drag="1.1"/>

         <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            : https://en.wikipedia.org/wiki/Rolls-Royce_Dart

                 name              : Rolls-Royce Dart
                 type              : Turboprop
                 power maximum     : 1815 hp (1630 hp at 15000 rpm)
                 weight            : 1207 lb ( 547 kg )
  -->
  <propeller x="3.300" y="2.929" z="-0.048"
             mass         = "1207"
             moment       = "6"
             radius       = "1.577"
             cruise-speed = "250"
             cruise-rpm   = "14000"
             cruise-power = "1815"
             cruise-alt   = "5000"
             min-rpm      = "220"
             max-rpm      = "15000">
             <actionpt x="4.345" y="2.929" z="-0.048"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <turbine-engine eng-power   = "2250"
                             eng-rpm     = "15000"
                             alt         = "5000"
                             flat-rating = "4150"
                             min-n2      = "70"
                             max-n2      = "100">
                             <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="PROPFEATHER" axis="/controls/engines/engine[0]/propeller-feather"/>
             </turbine-engine>
  </propeller>

  <propeller x="3.300" y="-2.929" z="-0.048"
             mass         = "1207"
             moment       = "6"
             radius       = "1.577"
             cruise-speed = "250"
             cruise-rpm   = "14000"
             cruise-power = "1815"
             cruise-alt   = "5000"
             min-rpm      = "220"
             max-rpm      = "15000">
             <actionpt x="4.345" y="-2.929" z="-0.048"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[1]/propeller-pitch"/>
             <turbine-engine eng-power   = "2250"
                             eng-rpm     = "15000"
                             alt         = "5000"
                             flat-rating = "4150"
                             min-n2      = "70"
                             max-n2      = "100">
                             <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="PROPFEATHER" axis="/controls/engines/engine[1]/propeller-feather"/>
             </turbine-engine>
  </propeller>

  <!-- Roue du nez -->
  <gear x="7.682" y="0" z="-3.185"
        compression = "0.1"
        spring      = "2"
        damp        = "2"
        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="5"/>
  </gear>

  <!-- Roue gauche -->
  <gear x="0.581" y="1.499" z="-3.187"
        compression = "0.2"
        spring      = "2"
        damp        = "2"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <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="7"/>
  </gear>

  <!-- Roue droite -->
  <gear x="0.581" y="-1.499" z="-3.187"
        compression = "0.2"
        spring      = "2"
        damp        = "2"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <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="6"/>
  </gear>

  <!-- Point de surélévation pour animation des trains
  <gear x="7.68295" y="0" z="-5.18521"
        compression = "0.1"
        on-water    = "0"
        on-solid    = "1"
        spring      = "1"
        damp        = "2">
  </gear>

  <gear x="0.58184" y="1.49989" z="-5.18734"
        compression = "0.2"
        on-water    = "0"
        on-solid    = "1"
        spring      = "1"
        damp        = "2">
  </gear>

  <gear x="0.58184" y="-1.49989" z="-5.18734"
        compression = "0.2"
        on-water    = "0"
        on-solid    = "1"
        spring      = "1"
        damp        = "2">
  </gear> -->

  <!-- 1000 liters = 1322 pounds = 220 gal us-->
  <tank x="1.68" y=" 3.5" z="-0.037" capacity="1322"/>
  <tank x="1.68" y="-3.5" z="-0.037" capacity="1322"/>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
       3.279 / 6     = 0.546
       0.686 + 0.546 = 1.232
  -->
  <ballast x="8.9" y="0" z="-2.1" mass="2039"/>

</airplane>
