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

<!-- BERNARD HV 220      - 2007 Emmanuel BARANGER
                 Updated - 2007 GEOFFROY Pierre
                Revision - 2015 January Emmanuel BARANGER

     sources          : http://en.wikipedia.org/wiki/Bernard_H.V.220
     wingspan         :    30 ft 10 in ( 9.40 m   )
     length           :    31 ft  0 in ( 9.46 m   )
     height           :    13 ft  0 in ( 3.96 m   )
     empty weight     :  3946 lb       ( 1790 kg  ) estimated
     engine           : 1 Lorraine 12 Rcr Radium inline piston engine ( 2200 hp )
     Maximum speed    :   346 kn       (  640 km/h ) estimated
-->
<airplane mass="3946" version="YASIM_VERSION_CURRENT">

  <approach speed="60" aoa="6" fuel="0.2">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.2"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1.0"/>
    <solve-weight idx="0" weight="180"/>
  </approach>

  <cruise speed="300" alt="5000" fuel="0.7">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/mixture" value="1"/>
    <solve-weight idx="0" weight="180"/>
  </cruise>
  
  <cockpit x="0.024" y="0" z="0.716" />

  <fuselage ax="3.533" ay=" 0.000" az=" 0.383" bx="-4.686" by=" 0.000" bz=" 0.472" width="0.609" taper="0.6" midpoint="0.25"/>
  
  <!-- Left float -->
  <fuselage ax="4.720" ay=" 1.257" az="-1.465" bx="-2.214" by=" 1.257" bz="-1.504" width="0.782" taper="0.3" midpoint="0.25"/>
  <!-- Right float -->
  <fuselage ax="4.720" ay="-1.257" az="-1.465" bx="-2.214" by="-1.257" bz="-1.504" width="0.782" taper="0.3" midpoint="0.25"/>
  
  <wing x="0.963" y="0" z="0.002" 
        chord="2" 
        length="4.705"
        taper="0.5" 
        dihedral="2" 
        camber="0.001">
        <stall aoa="20" width="1" peak="1.5"/>
        <flap1 start="0.44" end="0.86" lift="1.4" drag="1.2"/>
        
        <control-input split="true" control="FLAP1" axis="/controls/flight/aileron"/>
        <control-input split="true" control="FLAP1" axis="/controls/flight/aileron-trim"/>
        
        <control-output prop="/surface-positions/left-aileron-pos-norm" side="left" control="FLAP1" />
        <control-output prop="/surface-positions/right-aileron-pos-norm" side="right" control="FLAP1"/>
  </wing>
  
  <hstab x="-3.702" y="0" z="0.343"  
         chord="1.188" 
         length="1.658"
         taper="0.7">
         <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 prop="/surface-positions/elevator-pos-norm" control="FLAP0"/>
  </hstab>

  <vstab x="-4.013" y="0" z="0.457" 
         chord="1.428" 
         length="1.552"
         sweep="20" 
         taper="0.25">
         <stall aoa="14" width="1" peak="1.5"/>
         <flap0 start="0" end="1" lift="1.2" 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 prop="/surface-positions/rudder-pos-norm" control="FLAP0" min="1" max="-1"/>
  </vstab>

  <!-- Engines   source            : http://it.wikipedia.org/wiki/Lorraine_12_R

                 name              : Lorraine 12 R.C.R "Radium"
                 type              : V12 60 ° inverted supercharged
                 power cruise      : 2200 ch à 4000 tr/m 
                 weight            : 510 kg       ( 1124.3 lb )
                 displacement      : 1751.4 cu in ( 28.7 L    )
                 compression       : 7:1
  max-rpm="4000"
  gear-ratio="0.5"
  -->
  <propeller x="2.458" y="0" z="0.231" 
             mass="1124" 
             radius="1.391"
             moment="25"      
             cruise-speed="300" 
             cruise-alt="5000" 
             cruise-power="3500" 
             cruise-rpm="3500" 
             takeoff-power="2200"
             takeoff-rpm="4000"
             min-rpm="20"
             contra="1">
             <actionpt x="3.712" y="0" z="0.383"/>
             <piston-engine eng-power="2200"
                            eng-rpm="4000"  
                            displacement="1751.4"
                            compression="7">
                            <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>

  <!-- Points déffinissant les flotteurs -->
  <!-- 0 Central -->
  <gear x="1.154" y="1.258" z="-1.952" 
        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>

  <!-- 1 -->
  <gear x="1.154" y="-1.258" z="-1.952" 
        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>

  <!-- 2 Avant -->
  <gear x="4.355" y="1.258" z="-1.740" 
        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>

  <!-- 3 -->
  <gear x="4.355" y="-1.258" z="-1.740" 
        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>

  <!-- 4 Arrière -->
  <gear x="-2.211" y="1.258" z="-1.652" 
        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="3">
  </gear>
  
  <!-- 5 -->
  <gear x="-2.211" y="-1.258" z="-1.652" 
        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="3">
  </gear>

  <!-- Fuel  -->  
  <tank x=" 1.5" y="0" z="-0.7" capacity="450"/>
  <tank x=" 0.0" y="0" z="-0.7" capacity="450"/>
  <tank x="-1.5" y="0" z="-0.7" capacity="300"/>

  <weight x="0.75" y="0.0" z="-0.5" mass-prop="/sim/weight[0]/weight-lb"/>
  <!--
  <ballast x="0.93" y="0.0" z="-1.42" mass="350"/>
  -->
</airplane>
