<!--  MiG-15bis yasim config.
-->

<airplane mass="7907">

<!-- Approach configuration -->
  <approach speed="125" aoa="5.0" fuel="0.2">
    <control-setting axis="/controls/engines/engine/throttle-real" value="0.7"/>
    <control-setting axis="/controls/flight/flaps" value="1.0"/>
    <control-setting axis="/controls/flight/spoiler" value="0.0"/>
    <control-setting axis="/controls/gear/gear-down" value="1"/>
    <solve-weight idx="0" weight="80"/>
    <solve-weight idx="1" weight="31"/>
    <solve-weight idx="2" weight="31"/>
  </approach>

<!-- Cruise configuration -->
  <cruise speed="581" alt="1000" fuel="0.8">
<!--<cruise speed="500" alt="47500" fuel="0.6"> -->
    <control-setting axis="/controls/engines/engine/throttle-real" value="1.0"/>
    <control-setting axis="/controls/flight/flaps" value="0.0"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
    <solve-weight idx="0" weight="80"/>
  </cruise>

  <cockpit x="-2.12" y="0.0" z="0.8"/>

  <fuselage ax="0.0" ay="0.0" az="0.0"
            bx="-8.1" by="0" bz="0.0"
            width="1.5" taper="0.5" midpoint="0.5"/>

<!-- Wing -->
	<wing x="-3.75" y="0.75" z="0.0" 
	        chord="2.46" taper="0.65"
	        length="5.0" sweep="31"
	        camber="0.0" dihedral="-2.0"
	        incidence="0.0">

		<stall aoa="18" width="3" peak="1.6"/>
	
		<spoiler start="0.01" end="0.55" lift="1.3" drag="1.4"/>
		<control-input axis="/controls/flight/flaps-real" control="SPOILER"/>
		<control-output control="SPOILER" side="left" prop="/surface-positions/left-flap-pos-norm"/>
		<control-output control="SPOILER" side="right" prop="/surface-positions/right-flap-pos-norm"/>
		<control-speed control="SPOILER" transition-time="10"/>
	
		<flap0 start="0.55" end="0.93" lift="1.1" drag="1.3"/>
		<control-input axis="/controls/flight/aileron-real" control="FLAP0" split="true"/>
		<control-output control="FLAP0" side="left" prop="/surface-positions/left-aileron-pos-norm"/>
		<control-output control="FLAP0" side="right" prop="/surface-positions/right-aileron-pos-norm"/>

		<flap1 start="0.55" end="0.65" lift="1.1" drag="1.1"/>
		<control-input axis="/controls/flight/aileron-trim-real" control="FLAP1" split="true"/>
		<control-output control="FLAP1" side="left" prop="/surface-positions/aileron-trimmer-pos-norm"/>

	</wing>

<!-- HStab -->
	<hstab x="-8.8" y="0.08" z="1.59"
		chord="1.37" taper="0.43"
		length="1.9" sweep="36"
		camber="0.0" dihedral="0.0"
		effectiveness="2.4">
      
		<stall aoa="19.0" width="2" peak="1.3"/>
  
		<flap0 start="0.02" end="1" lift="1.5" drag="1.5"/>
		<control-input axis="/controls/flight/elevator" control="FLAP0"/>
		<control-input axis="/controls/flight/elevator-trim" control="FLAP0"/>
		<control-output control="FLAP0" side="left" prop="/surface-positions/left-elevator-pos-norm"/>
		<control-output control="FLAP0" side="right" prop="/surface-positions/right-elevator-pos-norm"/>
		<control-speed control="FLAP0" transition-time="1.0"/>

		<spoiler start="0.02" end="0.35" lift="1.1" drag="1.1"/>
		<control-input axis="/controls/flight/elevator-trim-real" control="SPOILER" split="false"/>
		<control-output control="SPOILER" side="left" prop="/surface-positions/elevator-trimmer-pos-norm"/>

	</hstab>

<!-- MStab for Airbrakes -->
	<mstab x="-7.2" y="0.2" z="-0.1"
		chord="0.9" taper="0.43"
		length="1.0" sweep="36"
		camber="0.0" dihedral="0.0"
		effectiveness="2.4">
		<stall aoa="19.0" width="2" peak="1.6"/>
		<flap1 start="0.0" end="1.0" lift="0.7" drag="8"/>
		<control-input axis="/controls/flight/speedbrake-real" control="FLAP1"/>
		<control-output control="FLAP1" prop="/surface-positions/speedbrake-pos-norm"/>
		<control-speed control="FLAP1" transition-time="3.0"/>
	</mstab>

<!-- MStab for Gears -->
	<mstab x="-4.290" y="1.875" z="-1.0"
		chord="0.65" taper="1"
		length="0.15" sweep="0"
		camber="0.0" dihedral="0.0"
		effectiveness="2.4">
		<stall aoa="19.0" width="2" peak="1.6"/>
		<flap1 start="0.0" end="1.0" lift="0.7" drag="8"/>
		<control-input axis="/controls/gear/gear-down-real" control="FLAP1"/>
		<control-output control="FLAP1" side="left" prop="/gear/gear[0]/position-norm"/>
		<control-output control="FLAP1" side="right" prop="/gear/gear[0]/position-norm"/>
		<control-speed control="FLAP1" transition-time="7"/>
	</mstab>

<!-- Rudder -->
  <vstab x="-7.22" y="0" z="0.5"
         chord="2.6" taper="0.47"
         length="2.90"  sweep="50"
         effectiveness="1.0">
       
    <stall aoa="40.0" width="5" peak="3"/>
    <flap0 start="0" end="1" lift="1.5" drag="1.3"/>
    <control-input axis="/controls/flight/rudder" control="FLAP0" invert="true"/>
    <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
    <control-speed control="FLAP0" transition-time="0.5"/>
  </vstab>

<!-- Landing Gear -->
<!-- nose -->
  <gear x="-1.05" y="0" z="-1.46"
        retract-time="7" compression="0.4" spring="0.4">

    <control-input axis="/controls/flight/rudder" control="STEER" square="true"/>
		<control-output control="STEER" prop="/gear/gear[0]/steering-norm"/>

    <control-input axis="/controls/gear/gear-down-real" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
    <control-speed control="EXTEND" transition-time="7"/>

  </gear>

<!-- left main -->
  <gear x="-4.29" y="1.9" z="-1.34"
        retract-time="7" compression="0.6" spring="1.4">

    <control-input axis="/controls/gear/brake-left-real" control="BRAKE"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
    <control-input axis="/controls/gear/gear-down-real" control="EXTEND"/>

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

  </gear>

<!-- right main -->
  <gear x="-4.29" y="-1.9" z="-1.34"
        retract-time="7" compression="0.6" spring="1.4">

    <control-input axis="/controls/gear/brake-right-real" control="BRAKE"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>

    <control-input axis="/controls/gear/gear-down-real" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>
    <control-speed control="EXTEND" transition-time="7"/>

  </gear>

<!-- Engine -->
  <jet x="-4.967" y="0.0" z="0.0" mass="1924" thrust="5849" n1-idle="32" n1-max="106" spool-time="1" egt="1292" tsfc="0.95">
	<actionpt x="-8.1" y="0" z="0"/>
	<control-input axis="/controls/engines/engine/throttle-real" control="THROTTLE"/>
  </jet>

  <tank x="-3.294" y="0.0" z="-0.25" jet="true" capacity="1324"/>
  <tank x="-3.294" y="0.0" z="0.25" jet="true" capacity="1324"/>

<!-- Drop tanks -->
	
	<tank x="-4.747" y="2.644" z="0.468" jet="true" capacity="441"/>
	<tank x="-4.747" y="-2.644" z="0.468" jet="true" capacity="441"/>

  <ballast x="-1.8" y="0" z="0" mass="1200"/> <!-- Cockpit -->
  <ballast x="-2.0" y="0" z="0" mass="2000"/> <!-- Trim ballast -->

<!--
    N-37 ammunition.
-->
  <weight x="-1.2" y="-0.3" z="-0.6" size="0.9"
          mass-prop="/yasim/weights/N-37-ammunition-weight-lbs"/>

<!--
    NS-23 (inner) ammunition.
-->
  <weight x="-1.5" y="0.29" z="-0.52" size="0.9"
          mass-prop="/yasim/weights/NS-23-I-ammunition-weight-lbs"/>

<!--
    NS-23 (outer) ammunition.
-->
  <weight x="-1.22" y="0.37" z="-0.38" size="0.9"
          mass-prop="/yasim/weights/NS-23-O-ammunition-weight-lbs"/>

<!--
    Left drop tank, empty weight
-->

	<weight x="-4.747"
		y="2.644"
		z="-0.468"
		size="0.4"
		mass-prop="/yasim/weights/left-drop-tank-lbs"/>

<!--
    Right drop tank, empty weight
-->

	<weight x="-4.747"
		y="-2.644"
		z="-0.468"
		size="0.4"
		mass-prop="/yasim/weights/right-drop-tank-lbs"/>


</airplane>
