<?xml version="1.0" encoding="UTF-8"?>

<!-- Tupolev Tu-95 : BARANGER Emmanuel (2011) 

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

  <approach speed="145" aoa="2" fuel="0.9">
    <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="1"/>
    <control-setting axis="/controls/gear/gear-down" value="1"/>
  </approach>

  <cruise speed="475" alt="39370" fuel="0.6">
    <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" 
        dihedral="-2"
        camber="0.01">
        <stall aoa="20" width="1" peak="3.5"/>
        <flap0 start="0.06" end="0.50" lift="1.4" drag="1.6"/>
        <flap1 start="0.50" end="0.95" lift="1.6" drag="1.2"/>

        <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="7.0"/>
        <control-speed control="FLAP1" transition-time="1.2"/>
  </wing>

  <!-- Elevator -->
  <hstab x="-16.864" y="0" z="-0.843"
         chord="5.146"
         length="9"
         taper="0.40"
         dihedral="-2"
         sweep="34">
         <stall aoa="18" width="1" peak="1.5"/>
         <flap0 start="0" end="0.95" lift="1.8" drag="2.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"/>
	 
         <control-speed control="FLAP0" transition-time="1.2"/>
  </hstab>

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

         <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"/>
	 
         <control-speed control="FLAP0" transition-time="1.2"/>
  </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.188" y="12.312" z="-2.709"
             radius="2.8"
             mass="6393"
             moment="10500"
             cruise-alt="1000"
             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"/>
    <turbine-engine eng-power="14600"
                    eng-rpm="840"
                    alt="36000"
                    min-n2="80"
                    max-n2="100"
                    flat-rating="14660">
    </turbine-engine>
    <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[0]/starter" control="STARTER"/>
    <control-input axis="/controls/engines/engine[0]/propeller-pitch" control="ADVANCE"/>
    <control-input axis="/controls/engines/engine[0]/propeller-feather" control="PROPFEATHER"/>
    <control-input axis="/controls/engines/engine[0]/condition" control="CONDLEVER"/>

    <control-output control="ADVANCE" prop="/engines/engine[0]/propeller-pitch"/>

    <control-speed control="THROTTLE" transition-time="10"/>   
  </propeller>

  <!-- Left interior -->
  <propeller x="9.469" y="6.411" z="-2.797"
             radius="2.8"
             mass="6393"
             moment="10500"
             cruise-alt="1000"
             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"/>
    <turbine-engine eng-power="14600"
                    eng-rpm="840"
                    alt="36000"
                    min-n2="80"
                    max-n2="100"
                    flat-rating="14660">
    </turbine-engine>
    <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-pitch" control="ADVANCE"/>
    <control-input axis="/controls/engines/engine[1]/propeller-feather" control="PROPFEATHER"/>
    <control-input axis="/controls/engines/engine[1]/condition" control="CONDLEVER"/>

    <control-output control="ADVANCE" prop="/engines/engine[1]/propeller-pitch"/>

    <control-speed control="THROTTLE" transition-time="10"/>   
  </propeller>

  <!-- Right interior (engine left) -->
  <propeller x="9.469" y="-6.411" z="-2.797"
             radius="2.8"
             mass="6393"
             moment="10500"
             cruise-alt="1000"
             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"/>
    <turbine-engine eng-power="14600"
                    eng-rpm="840"
                    alt="36000"
                    min-n2="80"
                    max-n2="100"
                    flat-rating="14660">
    </turbine-engine>
    <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-pitch" control="ADVANCE"/>
    <control-input axis="/controls/engines/engine[2]/propeller-feather" control="PROPFEATHER"/>
    <control-input axis="/controls/engines/engine[2]/condition" control="CONDLEVER"/>

    <control-output control="ADVANCE" prop="/engines/engine[2]/propeller-pitch"/>

    <control-speed control="THROTTLE" transition-time="10"/>   
  </propeller>

  <!-- Right exterior (engine left) -->
  <propeller x="6.188" y="-12.312" z="-2.709"
             radius="2.8"
             mass="6393"
             moment="10500"
             cruise-alt="1000"
             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"/>
    <turbine-engine eng-power="14600"
                    eng-rpm="840"
                    alt="36000"
                    min-n2="80"
                    max-n2="100"
                    flat-rating="14660">
    </turbine-engine>
    <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-pitch" control="ADVANCE"/>
    <control-input axis="/controls/engines/engine[3]/propeller-feather" control="PROPFEATHER"/>
    <control-input axis="/controls/engines/engine[3]/condition" control="CONDLEVER"/>

    <control-output control="ADVANCE" prop="/engines/engine[3]/propeller-pitch"/>

    <control-speed control="THROTTLE" transition-time="10"/>   
  </propeller>

  <!-- Noze wheel -->
  <gear x="18.031" y="0.000" z="-7.077" 
        compression="0.2" 
        retract-time="5" 
        spring="1.0" 
        damp="1.50">
        <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 -->
  <gear x="5.239" y="6.411" z="-6.969"
        compression="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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 -->
  <gear x="5.239" y="-6.411" z="-6.969"
        compression="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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>

  <!-- Tail wheel -->
  <gear x="-15.524" y="0" z="-3.599"
        compression="0.2" 
        retract-time="5" 
        spring="3.0" 
        damp="1.5" 
        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>

  <!-- 13650 Imp gal = 61971 l = 113104 pound -->
  <tank x="5.710" y=" 5" z="-2.466" capacity="56552"/>
  <tank x="5.710" y="-5" z="-2.466" capacity="56552"/>

  <!-- CG -->
  <ballast x=" 25" y="0" z="-5" mass=" 20000"/>
  <ballast x="-20" y="0" z=" 5" mass="-20000"/>
  
</airplane>

