<?xml version="1.0"?>

<airplane mass="718.7">

	<!-- Approach configuration -->
	<approach speed="27" aoa="4" glide-angle="4.1"/>

	<!-- Cruise configuration -->
	<cruise speed="80" alt="10000" glide-angle="4.1"/>

	<!-- pilot's eyepoint -->
	<cockpit x="-1.17" y="0" z="0.51"/>

	<fuselage ax="0.0" ay="0.0" az="0.0" bx="-7.37" by="0.0" bz="0.0"
		width="0.665" taper="0.28" midpoint="0.225"/>

	<wing x="-3.19" y="0.35" z="0.24" taper="0.15" incidence="5.0" twist="-2.5"
		length="8.72" chord="1.77" sweep="-5" dihedral="5">
		<stall aoa="30" width="12" peak="1.5"/>
		<flap0 start="0.43" end="0.97" lift="1.3" drag="1.1"/>
			<control-input axis="controls/flight/aileron" 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"/>
			<control-speed control="FLAP0" transition-time="0.5"/>
		<spoiler start="0.24" end="0.38" lift="0" drag="5.5"/>
			<control-input axis="controls/engines/engine/throttle" control="SPOILER"/>
			<control-output control="SPOILER" prop="surface-positions/speedbrake-pos-norm"/>
			<control-speed control="SPOILER" transition-time="1"/>
	</wing>

	<hstab x="-6.85" y="0.09" z="0.44" taper="0.2" 
		length="1.94" chord="1.06" sweep="0" incidence="5.0" effectiveness="1.8">
		<stall aoa="30" width="16" peak="1.5"/>
		<flap0 start="0.0" end="0.89" 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>

	<vstab x="-7.35" y="0" z="-0.13" taper="0.19" effectiveness="2.5"
		length="1.77" chord="1.66" sweep="0">
		<stall aoa="15" width="14" peak="1.5"/>
		<flap0 start="0" end="0.88" lift="1.6" drag="1.3"/>
			<control-input axis="controls/flight/rudder" square="true" 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" min="1" max="-1"/>
	</vstab>

	<!-- nose skid -->
	<gear x="-0.76" y="0" z="-0.39" compression="0.05" spring="1" damp="2" dfric="0.1" sfric ="0.12"/>

	<!-- main wheel-->
	<gear x="-2.43" y="0" z="-0.51" compression="0.1" spring="1" damp="1" dfric="0.07" sfric ="0.08"/>

	<!-- Tail skid -->
	<gear x="-7.22" y="0" z="-0.22" compression="0.05" dfric="0.1" sfric ="0.12" damp="2" skid="1"/>

	<!-- pilots -->
	<ballast x="-1.15" y="0" z="0.3" mass="140"/>
	<ballast x="-1.86" y="0" z="0.4" mass="140"/>

	<!-- hitch -->
	<!-- <hitch name="winch" x="-1.3" y="0" z="-0.51"> -->
	<hitch name="winch" x="-2.0" y="0" z="-0.1505">
		<tow length="51" weight-per-meter="0.1" elastic-constant="40000"  break-force="10000"/>
		<!-- 4.5mm steel wire-->
		<winch max-tow-length="1000" min-tow-length="1" initial-tow-length="1000" max-winch-speed="40" power="150" max-force="6000" />
		<control-input axis="controls/winch/place" control="PLACEWINCH"/>
	</hitch>

	<hitch name="aerotow" x="0" y="0" z="-0" force-is-calculated-by-other="0">
		<tow length="60" weight-per-meter="0.035" elastic-constant="9000" break-force="10000" mp-auto-connect-period="0.0"/>
		<winch max-tow-length="1000" min-tow-length="60" initial-tow-length="60"/>
		<control-input axis="controls/aerotow/find-aircraft" control="FINDAITOW"/>
	</hitch>

</airplane>
