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

<!-- Tupolev Tu-95 : BARANGER Emmanuel (2011)
           Updated : F-GTUX            (2012 May)
           Updated : BARANGER Emmanuel (2015 March)

     source          : http://en.wikipedia.org/wiki/Tupolev_Tu-95

     Wingspan        : 70.00 m   (    230 ft )
     Lenght          : 54.00 m   (    177 ft )
     Height          : 15.00 m   (     50 ft )
     Empty mass      : 65820 kg  ( 145100 lb )
     Engines         : 8 Bristol Centaurus radial engines, 2650 hp each
     Cruise speed    : 400 km/h  ( 220 kt    ) at 25000 ft
     Maximum speed   : 480 km/h  ( 260 kt    ) at 25000 ft
-->

<airplane mass="145100" version="YASIM_VERSION_CURRENT">

  <approach speed="130" aoa="2" fuel="0.3">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.7"/>
    <control-setting axis="/controls/engines/engine[0]/condition" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="0"/>

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

    <control-setting axis="/controls/engines/engine[2]/throttle" value="0.7"/>
    <control-setting axis="/controls/engines/engine[2]/condition" value="1"/>
    <control-setting axis="/controls/engines/engine[2]/propeller-pitch" value="0"/>

    <control-setting axis="/controls/engines/engine[3]/throttle" value="0.7"/>
    <control-setting axis="/controls/engines/engine[3]/condition" value="1"/>
    <control-setting axis="/controls/engines/engine[3]/propeller-pitch" value="0"/>

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

  <cruise speed="475" alt="39370" fuel="0.8">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/condition" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>

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

    <control-setting axis="/controls/engines/engine[2]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[2]/condition" value="1"/>
    <control-setting axis="/controls/engines/engine[2]/propeller-pitch" value="1"/>

    <control-setting axis="/controls/engines/engine[3]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[3]/condition" value="1"/>
    <control-setting axis="/controls/engines/engine[3]/propeller-pitch" value="1"/>

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

  <cockpit x="18.064" y="0.382" z="-1.233"/>

  <!-- Fuselage -->
  <fuselage ax="21.508" ay="  0.000" az="-2.603" bx=" 17.996" by="  0.000" bz="-2.311" width="2.881" taper="0.30" midpoint="1.0"/>
  <fuselage ax="17.996" ay="  0.000" az="-2.311" bx=" -4.503" by="  0.000" bz="-2.633" width="2.881" taper="1.00" midpoint="1.0"/>
  <fuselage ax="-4.503" ay="  0.000" az="-2.633" bx="-21.364" by="  0.000" bz="-2.073" width="2.881" taper="0.33" midpoint="0.0"/>

  <!-- Engines -->
  <fuselage ax=" 7.479" ay=" 12.319" az="-2.709" bx="  1.851" by=" 12.319" bz="-2.709" width="1.269" taper="0.90" midpoint="0.0"/>
  <fuselage ax="10.761" ay="  6.411" az="-2.797" bx=" -3.442" by="  6.411" bz="-2.797" width="1.269" taper="0.90" midpoint="0.0"/>

  <fuselage ax="10.761" ay=" -6.411" az="-2.797" bx=" -3.442" by=" -6.411" bz="-2.797" width="1.269" taper="0.90" midpoint="0.0"/>
  <fuselage ax=" 7.479" ay="-12.319" az="-2.709" bx="  1.851" by="-12.319" bz="-2.709" width="1.269" taper="0.90" midpoint="0.0"/>

  <wing x="6.045" y="1.275" z="-1.937"
        chord="8.274" 
        length="27" 
        taper="0.32"  
        sweep="27" 
        incidence="2"
        twist="-2"
        dihedral="-2.5"
        camber="0.05">
        <stall aoa="22" width="1" peak="1.5"/>
        <flap0 start="0.02" end="0.55" lift="1.8" drag="1.6"/>
        <flap1 start="0.70" end="0.98" lift="1.4" drag="1.1"/>

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

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

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

  <!-- Elevator -->
  <hstab x="-16.88" y="0" z="-0.843"
         chord="5.146"
         length="9"
         taper="0.40"
         dihedral="-2"
         sweep="34">
         <stall aoa="22" width="1" peak="1.5"/>
         <flap0 start="0" end="0.95" lift="1.6" drag="1.3"/>

         <control-input axis="/controls/flight/elevator" control="FLAP0"/>
         <control-input axis="/controls/flight/elevator-trim" control="FLAP0"/>

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

  <!-- Rudder -->
  <vstab x="-14.17" y="0" z="-1.483"
         chord="9.9"
         length="10" 
         taper="0.25"
         sweep="35">
         <stall aoa="20" width="1" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.3" drag="1.3"/>

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

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

  <!-- Engines   source            : http://en.wikipedia.org/wiki/Kuznetsov_NK-12

                 name              : Kuznetsov NK-12
                 type              : Turboprop
                 power cruise      : 14795 ehp hp
                 weight            : 2900 kg  ( 6393 lbs)
  -->
  <!-- Left exterior -->
  <propeller x="6.5" y="12.312" z="-2.709"
             mass="6393"
             radius="2.8"
             moment="10500"
             cruise-alt="30000"
             cruise-speed="280"
             cruise-rpm="750"
             cruise-power="9700"
             takeoff-rpm="840"
             takeoff-power="14600"
             min-rpm="700"
             max-rpm="840"
             manual="true"
             contra="1">
             <actionpt x="8.228" y="12.321" z="-2.709"/>
             <control-input  control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <turbine-engine eng-power="14600"
                             eng-rpm="840"
                             alt="36000"
                             min-n2="40"
                             max-n2="100"
                             flat-rating="14660"
                             bsfc="0.360">
                             <control-input control="THROTTLE" axis="/controls/engines/engine[0]/throttle"/>
                             <control-input control="STARTER" axis="/controls/engines/engine[0]/starter"/>
                             <control-input control="PROPFEATHER" axis="/controls/engines/engine[0]/propeller-feather"/>
                             <control-input control="CONDLEVER" axis="/controls/engines/engine[0]/condition"/>
             </turbine-engine>
  </propeller>

  <!-- Left interior -->
  <propeller x="10" y="6.411" z="-2.797"
             mass="6393"
             radius="2.8"
             moment="10500"
             cruise-alt="30000"
             cruise-speed="280"
             cruise-rpm="750"
             cruise-power="9700"
             takeoff-rpm="840"
             takeoff-power="14600"
             min-rpm="700"
             max-rpm="840"
             manual="true"
             contra="1">
             <actionpt x="11.510" y="6.411" z="-2.797"/>
             <control-input axis="/controls/engines/engine[1]/propeller-pitch" control="ADVANCE"/>
             <turbine-engine eng-power="14600"
                             eng-rpm="840"
                             alt="36000"
                             min-n2="40"
                             max-n2="100"
                             flat-rating="14660"
                             bsfc="0.360">
                             <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
                             <control-input axis="/controls/engines/engine[1]/starter" control="STARTER"/>
                             <control-input axis="/controls/engines/engine[1]/propeller-feather" control="PROPFEATHER"/>
                             <control-input axis="/controls/engines/engine[1]/condition" control="CONDLEVER"/>
             </turbine-engine>
  </propeller>

  <!-- Right interior (engine left) -->
  <propeller x="10" y="-6.411" z="-2.797"
             mass="6393"
             radius="2.8"
             moment="10500"
             cruise-alt="30000"
             cruise-speed="280"
             cruise-rpm="750"
             cruise-power="9700"
             takeoff-rpm="840"
             takeoff-power="14600"
             min-rpm="700"
             max-rpm="840"
             manual="true"
             contra="1">
             <actionpt x="11.510" y="-6.411" z="-2.797"/>
             <control-input axis="/controls/engines/engine[2]/propeller-pitch" control="ADVANCE"/>
             <turbine-engine eng-power="14600"
                             eng-rpm="840"
                             alt="36000"
                             min-n2="40"
                             max-n2="100"
                             flat-rating="14660"
                             bsfc="0.360">
                             <control-input axis="/controls/engines/engine[2]/throttle" control="THROTTLE"/>
                             <control-input axis="/controls/engines/engine[2]/starter" control="STARTER"/>
                             <control-input axis="/controls/engines/engine[2]/propeller-feather" control="PROPFEATHER"/>
                             <control-input axis="/controls/engines/engine[2]/condition" control="CONDLEVER"/>
             </turbine-engine>
  </propeller>

  <!-- Right exterior (engine left) -->
  <propeller x="6.5" y="-12.312" z="-2.709"
             mass="6393"
             radius="2.8"
             moment="10500"
             cruise-alt="30000"
             cruise-speed="280"
             cruise-rpm="750"
             cruise-power="9700"
             takeoff-rpm="840"
             takeoff-power="14600"
             min-rpm="700"
             max-rpm="840"
             manual="true"
             contra="1">
             <actionpt x="8.228" y="-12.321" z="-2.709"/>
             <control-input axis="/controls/engines/engine[3]/propeller-pitch" control="ADVANCE"/>
             <turbine-engine eng-power="14600"
                             eng-rpm="840"
                             alt="36000"
                             min-n2="40"
                             max-n2="100"
                             flat-rating="14660"
                             bsfc="0.360">
                             <control-input axis="/controls/engines/engine[3]/throttle" control="THROTTLE"/>
                             <control-input axis="/controls/engines/engine[3]/starter" control="STARTER"/>
                             <control-input axis="/controls/engines/engine[3]/propeller-feather" control="PROPFEATHER"/>
                             <control-input axis="/controls/engines/engine[3]/condition" control="CONDLEVER"/>
             </turbine-engine>
  </propeller>

  <!-- Nose wheel 0 -->
  <gear x="18.031" y="0.000" z="-7.077" 
        compression="0.5" 
        retract-time="5" 
        spring="3.0" 
        damp="6.0">
        <control-input axis="/controls/flight/rudder" control="STEER" square="true" src0="-1.0" src1="1.0" dst0="-0.8" dst1="0.8"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

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

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

  <!-- Left wheels 1 2 3 -->
  <gear x="5.239" y="6.411" z="-6.969"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <gear x="4.138" y="6.411" z="-6.950"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <gear x="3.074" y="6.411" z="-6.903"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <!-- Right wheels 4 5 6 -->
  <gear x="5.239" y="-6.411" z="-6.969"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <gear x="4.138" y="-6.411" z="-6.950"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <gear x="3.074" y="-6.411" z="-6.903"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
        <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <!-- 7 -->
  <gear x="-15.523" y="0" z="-3.599"
        compression="1.0" 
        retract-time="5" 
        spring="3.0" 
        damp="3.0" 
        sfric="0.9" 
        dfric="0.7">
        <control-input axis="/controls/gear/gear-down" control="EXTEND"/>

        <control-speed control="EXTEND" transition-time="5.1"/>

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

  <tank x="  6" y=" 5" z="-2.166" capacity="47950"/>
  <tank x="  6" y="-5" z="-2.166" capacity="47950"/>
  <tank x=" 20" y=" 0" z="-3.000" capacity="47950"/>
  <tank x=" -4" y=" 0" z="-3.000" capacity="47950"/>

  <!-- CG -->
  <ballast x=" 20" y="  0" z=" -2" mass="21000"/>
  <ballast x="-20" y="  0" z="  2" mass="-2700"/>
  
</airplane>
