<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>

<fdm_config name="DA62" version="2.0" release="ALPHA"
	    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	    xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
	
	<fileheader>
		<author> Aeromatic v 3.3.10 </author>
		<filecreationdate> 12 Mar 2020 </filecreationdate>
		<version>2020.03</version>
		<description> Diamond DA62 </description>
	</fileheader>
	
	<!-- References:
	[1]	Airplane Flight Manual		http://support.diamond-air.at/da62_afm_bas+M52087573ab0.html
	[2]	Airplane Maintenance Manual	http://support.diamond-air.at/da62_amm_bas+M52087573ab0.html
	-->
	
	<metrics>
		<wingarea  unit="FT2">   184.06 </wingarea>
		<wingspan  unit="FT" >    47.80 </wingspan>
		<wing_incidence unit="DEG"> 1.50 </wing_incidence>
		<chord     unit="FT" >     3.57 </chord>
		<htailarea unit="FT2">    31.32 </htailarea>
		<htailarm  unit="FT" >    16.40 </htailarm>
		<vtailarea  unit="FT2">   24.86 </vtailarea>
		<vtailarm  unit="FT" >    16.40 </vtailarm>
		<location name="AERORP" unit="M"> <!-- guess -->
			<x>	-1.56	</x>
			<y>	 0.00	</y>
			<z>	-0.37	</z>
		</location>
		<location name="EYEPOINT" unit="M"> <!-- guess -->
			<x>	-1.44	</x>
			<y>	-0.27	</y>
			<z>	 0.40	</z>
		</location>
		<location name="VRP" unit="M">
			<x>	0.0	</x>
			<y>	0.0	</y>
			<z>	0.0	</z>
		</location>
	</metrics>
	
	<!--	Mass and Balance:
	source:	[1] Chapter 6 (367ff.)
	datum:	-4.09517m
	
	Empty Weight CoG:	2.428125m behind datum	(empty moment divided by empty mass)
	=> -1.667m
	In-Flight Limits:	forward:	2.340m behind datum:	-1.75517m = -69.1011811 in
	rearward:	2.530m behind datum:	-1.56517m = -61.6208661 in
	-->
	
	<mass_balance>
		<ixx unit="KG*M2">   4600 </ixx>
		<iyy unit="KG*M2">   2000 </iyy>
		<izz unit="KG*M2">   6200 </izz>
		<emptywt unit="LBS" >   3528.00 </emptywt>
		<location name="CG" unit="M">
			<x>	-1.667	</x>
			<y>	 0.00	</y> <!-- guess -->
			<z>	-0.25	</z> <!-- guess -->
		</location>
		<pointmass name="Pilot">
			<weight unit="KG"> 80 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-1.605	</x> <!-- 2.30m behind datum -->
				<y>	-0.27	</y> <!-- guess -->
				<z>	-0.15	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="Copilot">
			<weight unit="KG"> 80 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-1.605	</x> <!-- 2.30m behind datum -->
				<y>	-0.27	</y> <!-- guess -->
				<z>	-0.15	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="Passenger Front Left">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-0.845	</x> <!-- 3.25m behind datum -->
				<y>	-0.27	</y> <!-- guess -->
				<z>	-0.15	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="Passenger Front Right">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-0.845	</x> <!-- 3.25m behind datum -->
				<y>	-0.27	</y> <!-- guess -->
				<z>	-0.15	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="Passenger Rear Left">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	 0.055	</x> <!-- 4.15m behind datum -->
				<y>	-0.27	</y> <!-- guess -->
				<z>	-0.15	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="Passenger Rear Right">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	 0.055	</x> <!-- 4.15m behind datum -->
				<y>	-0.27	</y> <!-- guess -->
				<z>	-0.15	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="LH Nose Baggage Compartment">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-3.625	</x> <!-- 0.47m behind datum -->
				<y>	-0.17	</y> <!-- guess -->
				<z>	-0.22	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="RH Nose Baggage Compartment">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-4.045	</x> <!-- 0.05m behind datum -->
				<y>	 0.17	</y> <!-- guess -->
				<z>	-0.22	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="Rear Baggage Compartment">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	 0.122	</x> <!-- average 4.217m behind datum -->
				<y>	 0.17	</y> <!-- guess -->
				<z>	-0.22	</z> <!-- guess -->
			</location>
		</pointmass>
		<pointmass name="De-Icing Fluid">
			<weight unit="KG"> 0 </weight>
			<location name="POINTMASS" unit="M">
				<x>	-3.195	</x> <!-- 0.90m behind datum -->
				<y>	 0.17	</y> <!-- guess -->
				<z>	-0.22	</z> <!-- guess -->
			</location>
		</pointmass>
	</mass_balance>
	
	<propulsion>
		
		<engine file="E4P-C">
			<location unit="M">
				<x>   -2.20 </x>
				<y>   -1.72565 </y>
				<z>   -0.22052 </z>
			</location>
			<orient unit="DEG">
				<pitch>     0.00 </pitch>
				<roll>     0.00 </roll>
				<yaw>     0.00 </yaw>
			</orient>
			<feed> 0 </feed>
			
			<thruster file="MTV-6-R-C-F">
				<sense> 1 </sense>
				<location unit="M">
					<x>   -2.74728 </x>
					<y>   -1.72565 </y>
					<z>   -0.22052 </z>
				</location>
				<orient unit="DEG">
					<pitch>     0.00 </pitch>
					<roll>     0.00 </roll>
					<yaw>     0.00 </yaw>
				</orient>
			</thruster>
		</engine>
		
		<engine file="E4P-C">
			<location unit="M">
				<x>   -2.20 </x>
				<y>    1.72565 </y>
				<z>   -0.22052 </z>
			</location>
			<orient unit="DEG">
				<pitch>     0.00 </pitch>
				<roll>     0.00 </roll>
				<yaw>     0.00 </yaw>
			</orient>
			<feed> 1 </feed>
			
			<thruster file="MTV-6-R-C-F">
				<sense> 1 </sense>
				<location unit="M">
					<x>   -2.74728 </x>
					<y>    1.72565 </y>
					<z>   -0.22052 </z>
				</location>
				<orient unit="DEG">
					<pitch>     0.00 </pitch>
					<roll>     0.00 </roll>
					<yaw>     0.00 </yaw>
				</orient>
			</thruster>
		</engine>
		
		<!-- Two wing tanks, each 100l of which 96l are usable -->
		<!-- 100L Jet A1: 80.28kg -->
		<tank type="FUEL" number="0">
			<location unit="M">
				<x>	-1.465	</x><!-- Main Tanks CoG: 2.63m behind datum -->
				<y>	-1.00	</y> <!-- guess -->
				<z>	-0.52	</z> <!-- guess -->
			</location>
			<capacity unit="KG">	80.28	</capacity>
			<contents unit="KG">	75.00	</contents>
			<unusable unit="LTR">	 4.0	</unusable>
			<type>	JET-A1	</type>
		</tank>
		<tank type="FUEL" number="1">
			<location unit="M">
				<x>	-1.465	</x><!-- Main Tanks CoG: 2.63m behind datum -->
				<y>	 1.00	</y> <!-- guess -->
				<z>	-0.52	</z> <!-- guess -->
			</location>
			<capacity unit="KG">	80.28	</capacity>
			<contents unit="KG">	75.00	</contents>
			<unusable unit="LTR">	 4.0	</unusable>
			<type>	JET-A1	</type>
		</tank>
		
	</propulsion>
	
	<ground_reactions>
		
		<!-- coordinates measured from 3D-model -->
		
		<contact type="BOGEY" name="NOSE">
			<location unit="M">
				<x>	-3.037	</x>
				<y>	 0.00	</y>
				<z>	-1.578	</z>
			</location>
			<static_friction>  0.80 </static_friction>
			<dynamic_friction> 0.50 </dynamic_friction>
			<rolling_friction> 0.02 </rolling_friction>
			<spring_coeff  unit="LBS/FT">     3500 </spring_coeff>
			<damping_coeff unit="LBS/FT/SEC"> 1500 </damping_coeff>
			<max_steer unit="DEG">	40.00 </max_steer> <!-- page 8 - 7 -->
			<brake_group> NONE </brake_group>
			<retractable> 1 </retractable>
		</contact>
		
		<contact type="BOGEY" name="LEFT_MAIN">
			<location unit="M">
				<x>	-1.197	</x>
				<y>	-1.394	</y>
				<z>	-1.582	</z>
			</location>
			<static_friction>  0.80 </static_friction>
			<dynamic_friction> 0.50 </dynamic_friction>
			<rolling_friction> 0.02 </rolling_friction>
			<spring_coeff  unit="LBS/FT">     5000 </spring_coeff>
			<damping_coeff unit="LBS/FT/SEC"> 2500 </damping_coeff>
			<max_steer unit="DEG">0</max_steer>
			<brake_group> LEFT </brake_group>
			<retractable> 1 </retractable>
		</contact>
		
		<contact type="BOGEY" name="RIGHT_MAIN">
			<location unit="M">
				<x>	-1.197	</x>
				<y>	 1.394	</y>
				<z>	-1.582	</z>
			</location>
			<static_friction>  0.80 </static_friction>
			<dynamic_friction> 0.50 </dynamic_friction>
			<rolling_friction> 0.02 </rolling_friction>
			<spring_coeff  unit="LBS/FT">     5000 </spring_coeff>
			<damping_coeff unit="LBS/FT/SEC"> 2500 </damping_coeff>
			<max_steer unit="DEG">0</max_steer>
			<brake_group> RIGHT </brake_group>
			<retractable> 1 </retractable>
		</contact>
		
		<!-- Position: lower wingtip -->
		
		<contact type="STRUCTURE" name="LEFT_WING">
			<location unit="M">
				<x>	-1.12	</x>
				<y>	-6.70	</y>
				<z>	-0.05	</z>
			</location>
			<static_friction>  1 </static_friction>
			<dynamic_friction> 1 </dynamic_friction>
			<spring_coeff  unit="LBS/FT">     5000 </spring_coeff>
			<damping_coeff unit="LBS/FT/SEC"> 2500 </damping_coeff>
		</contact>
		
		<contact type="STRUCTURE" name="RIGHT_WING">
			<location unit="M">
				<x>	-1.12	</x>
				<y>	 6.70	</y>
				<z>	-0.05	</z>
			</location>
			<static_friction>  1 </static_friction>
			<dynamic_friction> 1 </dynamic_friction>
			<spring_coeff  unit="LBS/FT">     5000 </spring_coeff>
			<damping_coeff unit="LBS/FT/SEC"> 2500 </damping_coeff>
		</contact>
		
		<contact type="STRUCTURE" name="TAIL">
			<location unit="M">
				<x>	 3.529	</x>
				<y>	 0.0	</y>
				<z>	-0.584	</z>
			</location>
			<static_friction>  1 </static_friction>
			<dynamic_friction> 1 </dynamic_friction>
			<spring_coeff  unit="LBS/FT">     5000 </spring_coeff>
			<damping_coeff unit="LBS/FT/SEC"> 2500 </damping_coeff>
		</contact>
		
	</ground_reactions>
	
	<system file="da62-fcs.xml"/>
	<system file="da62-ecu.xml"/>
	<system file="pushback.xml"/>
	
	<flight_control name="FCS: DA62">
		
	</flight_control>
	
	<aerodynamics file="Systems/da62-aero.xml"/>
	
	<external_reactions>
		<force name="pushback" frame="BODY">
			<!-- front gear -->
			<location unit="M">
				<x>	-3.037	</x>
				<y>	 0.00	</y>
				<z>	-1.578	</z>
			</location>
			<direction>
				<x>1</x>
				<y>0</y>
				<z>0</z>
			</direction>
		</force>
	</external_reactions>
	
</fdm_config>
