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

<!-- Cessna 195 Businessliner : BARANGER Emmanuel (12/2021)
     Floats version
                      Updated : BARANGER Emmanuel (03/2023)
     June 10, 2024: VonS update to drag values, control sensitivity, also engine parameters, etc.

     sources          : https://www.wikiwand.com/en/Cessna_195

     wingspan         :    36 ft 2 in      ( 11.02 m    )
     length           :    27 ft 4 in      (  8.33 m    )
     height           :     7 ft 2 in      (  2.18 m    )
     empty weight     :  2100 lb           (   953 kg   )
     Gross weight     :  3350 lb           (  1520 kg   )
     engine           : 1 Jacobs R-755 radial engine ( 300 hp )
     Cruise speed     :   150 kt           (   220 km/h ) at 70% power
     Maximum speed    :   155 kt           (   286 km/h )
     Stall speed      :    54 kt           (   100 km/h )
     Fuel capacity    :    75 US gallons   (   280 l    )
-->
<airplane mass="2100" version="YASIM_VERSION_CURRENT" mtow-lbs="3350">

  <approach speed="60" aoa="2" fuel="0.2" >
    <control-setting axis="/controls/engines/engine[0]/throttle"        value="0.3"/>
    <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"/>
  </approach>

  <cruise speed="145" alt="6000" fuel="1.0" >
    <control-setting  axis="/controls/engines/engine[0]/throttle"        value="0.7"/>
    <control-setting  axis="/controls/engines/engine[0]/mixture"         value="0.6"/>
    <control-setting  axis="/controls/engines/engine[0]/propeller-pitch" value="1"/>
    <control-setting axis="/controls/flight/flaps"                       value="0"/>
  </cruise>

  <cockpit x="2.058" y="0.244" z="0.428" />

  <!-- Fuselage -->
  <fuselage ax=" 3.839" ay=" 0.000" az="-0.195" bx=" 3.777" by=" 0.000" bz="-0.195" width="0.802" taper="0.90" midpoint="1"/>
  <fuselage ax=" 3.777" ay=" 0.000" az="-0.195" bx=" 3.463" by=" 0.000" bz="-0.195" width="1.055" taper="0.76" midpoint="1"/>
  <fuselage ax=" 3.463" ay=" 0.000" az="-0.195" bx=" 3.190" by=" 0.000" bz="-0.195" width="1.131" taper="0.93" midpoint="1"/>
  <fuselage ax=" 3.190" ay=" 0.000" az="-0.195" bx=" 3.041" by=" 0.000" bz="-0.195" width="1.154" taper="0.93" midpoint="1"/>
  <fuselage ax=" 3.041" ay=" 0.000" az="-0.195" bx=" 2.697" by=" 0.000" bz="-0.195" width="1.221" taper="0.95" midpoint="1"/>
  <fuselage ax=" 2.697" ay=" 0.000" az="-0.195" bx=" 1.506" by=" 0.000" bz="-0.117" width="1.221" taper="1.00" midpoint="1"/>
  <fuselage ax=" 1.506" ay=" 0.000" az="-0.117" bx=" 0.505" by=" 0.000" bz="-0.032" width="1.221" taper="0.92" midpoint="0"/>
  <fuselage ax=" 0.505" ay=" 0.000" az="-0.032" bx="-3.649" by=" 0.000" bz=" 0.318" width="1.119" taper="0.30" midpoint="0"/>
  <fuselage ax="-3.649" ay=" 0.000" az=" 0.318" bx="-4.144" by=" 0.000" bz=" 0.450" width="0.336" taper="0.05" midpoint="0"/>

  <!-- Cockpit -->
  <fuselage ax=" 2.588" ay=" 0.000" az="-0.135" bx=" 2.113" by=" 0.000" bz=" 0.077" width="1.154" taper="0.93" midpoint="1"/>
  <fuselage ax=" 2.330" ay=" 0.000" az="-0.004" bx=" 0.108" by=" 0.000" bz=" 0.020" width="1.221" taper="0.84" midpoint="0"/>

  <wing x="1.285" y="0" z="0.583"
        chord    = "2.256"
        length   = "5.491"
        taper    = "0.5"
        sweep    = "4"
        dihedral = "0.001"
        camber   = "0.003"
        twist    = "3.7">
        <stall   aoa="11" width="0.1"  peak="1.5" />
        <flap0 start="0.18" end="0.54" lift="1.3" drag="2.6"/>
        <flap1 start="0.54" end="0.87" lift="1.1" drag="1.3"/>

        <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/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="3"/>
  </wing>

  <hstab x="-3.322" y="0" z="0.415"
         chord  = "1.425"
         length = "1.593"
         taper  = "0.6"
         sweep  = "6"
         camber = "0.002"
         twist  = "1.5">
         <stall   aoa="11.5" width="0.3" peak="1.5"/>
         <flap0 start="0"    end="1" lift="1.3" drag="1.4"/>

         <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="-3.062" y="0" z="0.4985"
         chord  = "2.192"
         length = "1.193"
         taper  = "0.5"
         sweep  = "20">
         <stall   aoa="13" width="0.5" peak="1.5" />
         <flap0 start="0"    end="1" lift="1.45" drag="1.3"/>

         <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" min="1" max="-1"/>
  </vstab>

  <vstab x="-3.290" y="1.062" z="0.400"
         chord  = "0.624"
         length = "0.62"
         taper  = "0.4"
         sweep  = "20">
  </vstab>

  <vstab x="-3.290" y="1.062" z="0.400"
         chord    = "0.624"
         length   = "0.42"
         taper    = "0.5"
         sweep    = "15"
         dihedral = "300">
  </vstab>

  <vstab x="-3.290" y="-1.062" z="0.400"
         chord  = "0.624"
         length = "0.62"
         taper  = "0.4"
         sweep  = "20">
  </vstab>

  <vstab x="-3.290" y="-1.062" z="0.400"
         chord    = "0.624"
         length   = "0.42"
         taper    = "0.5"
         sweep    = "15"
         dihedral = "300">
  </vstab>

  <!-- Engines   source       : https://www.wikiwand.com/en/Jacobs_R-755

                 name         : Jacobs R-755
                 type         : 7-cylinder air-cooled radial piston engine
                 power        :  300 hp at 2300 rpm
                 weight       :  505 lb ( 229 kg )
                 Displacement : 757 in3 (12.4 l  )
  -->
  <propeller x="3.546" y="0" z="-0.195"
             mass          = "505"
             moment        = "12"
             radius        = "1.28"
             cruise-speed  = "145"
             cruise-rpm    = "2150"
             cruise-alt    = "6000"
             cruise-power  = "270"
             takeoff-power = "300"
             takeoff-rpm   = "2300">
             <actionpt x="3.936" y="0" z="-0.195"/>
             <control-input control="ADVANCE" axis="/controls/engines/engine[0]/propeller-pitch"/>
             <piston-engine eng-rpm      = "2300"
                            eng-power    = "300"
                            displacement = "757"
                            bore         = "5.25"
                            stroke       = "5.00"
                            compression  = "5.375">
                            <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"/>
         </piston-engine>
  </propeller>

  <!-- Flotteurs -->
  <!-- Avant 0/1 -->
  <gear x="4.10397" y="0.94176" z="-1.92913"
        compression                  = "1.2"
        spring                       = "15"
        sfric                        = "0.8"
        dfric                        = "0.7"
        ignored-by-solver            = "0"
        on-water                     = "1"
        on-solid                     = "1"
        reduce-friction-by-extension = "1.15"
        speed-planing                = "15"
        spring-factor-not-planing    = "0.7">
  </gear>

  <gear x="4.10397" y="-0.94176" z="-1.92913"
        compression                  = "1.2"
        spring                       = "15"
        sfric                        = "0.8"
        dfric                        = "0.7"
        ignored-by-solver            = "0"
        on-water                     = "1"
        on-solid                     = "1"
        reduce-friction-by-extension = "1.15"
        speed-planing                = "15"
        spring-factor-not-planing    = "0.7">
  </gear>

  <!-- Central 2/3 -->
  <gear x="1.96830" y="0.94176" z="-2.03913"
        compression                  = "1.5"
        spring                       = "15"
        sfric                        = "0.85"
        dfric                        = "0.75"
        ignored-by-solver            = "0"
        on-water                     = "1"
        on-solid                     = "1"
        reduce-friction-by-extension = "1.15"
        speed-planing                = "25"
        spring-factor-not-planing    = "0.25">
  </gear>

  <gear x="1.96830" y="-0.94176" z="-2.03913"
        compression                  = "1.5"
        spring                       = "15"
        sfric                        = "0.85"
        dfric                        = "0.75"
        ignored-by-solver            = "0"
        on-water                     = "1"
        on-solid                     = "1"
        reduce-friction-by-extension = "1.15"
        speed-planing                = "25"
        spring-factor-not-planing    = "0.25">
  </gear>

  <!-- Arriere 4/5 -->
  <gear x="-0.02005" y="0.94176" z="-1.92913"
        compression                  = "1.8"
        spring                       = "8"
        sfric                        = "0.9"
        dfric                        = "0.8"
        ignored-by-solver            = "1"
        on-water                     = "1"
        on-solid                     = "1"
        reduce-friction-by-extension = "0.9"
        speed-planing                = "25"
        spring-factor-not-planing    = "0.9">
    </gear>

  <gear x="-0.02005" y="-0.94176" z="-1.92913"
        compression                  = "1.8"
        spring                       = "8"
        sfric                        = "0.9"
        dfric                        = "0.8"
        ignored-by-solver            = "1"
        on-water                     = "1"
        on-solid                     = "1"
        reduce-friction-by-extension = "0.9"
        speed-planing                = "25"
        spring-factor-not-planing    = "0.9">
  </gear>

  <!-- 2 more Floats, need to be at this position in the file to do not brake the animation
       "reduce-friction-by-extension" is reduced to get steering control 10/11-->
  <gear x="-0.92688" y="0.94176" z="-1.73013"
        compression                  = "1.8"
        spring                       = "8"
        sfric                        = "0.9"
        dfric                        = "0.8"
        ignored-by-solver            = "1"
        on-water                     = "1"
        on-solid                     = "0"
        reduce-friction-by-extension = "0.9"
        speed-planing                = "25"
        spring-factor-not-planing    = "3">
        <control-input control="STEER" axis="/controls/gear/water-rudder-pos" invert ="true" square="true"/>
        <!-- <control-input control="STEER" axis="/controls/flight/rudder" invert ="true" square="true"/> -->
  </gear>

  <gear x="-0.92688" y="-0.94176" z="-1.73013"
        compression                  = "1.8"
        spring                       = "8"
        sfric                        = "0.9"
        dfric                        = "0.8"
        ignored-by-solver            = "1"
        on-water                     = "1"
        on-solid                     = "0"
        reduce-friction-by-extension = "0.9"
        speed-planing                = "25"
        spring-factor-not-planing    = "3">
        <control-input control="STEER" axis="/controls/gear/water-rudder-pos" invert ="true" square="true"/>
        <!-- <control-input control="STEER" axis="/controls/flight/rudder" invert ="true" square="true"/> -->
  </gear>

  <!--  75 US gal = 461.43 lb (2 x 231 lb ) -->
  <tank x=" 1.42" y=" 1.93" z="0.58" capacity="231"/>
  <tank x=" 1.42" y="-1.93" z="0.58" capacity="231"/>

  <!-- Mass distribution
       Dilbert : The cg should be about 1/6 chord ahead of the chord center.
                 2.256 / 6     = 0.376
                 1.285 + 0.376 = 1.661
  -->
  <ballast x="3.654" y="0" z="-0.6" mass="412.5"/>

</airplane>
