<?xml version="1.0"?>
<system name="DA62: ECU">
	<!-- Engine Control System (ECU) -->
	<!-- [1] page 7 - 32 -->
	<channel name="Propeller">
		<!-- Propeller Setpoint Curve -->
		<fcs_function>
			<function>
				<table>
					<independentVar lookup="row">fcs/throttle-cmd-norm[0]</independentVar>
					<tableData>
						0	0.874
						0.2	0.748
						0.9	0.937
						1.0	1.0
					</tableData>
				</table>
			</function>
			<output>fcs/advance-cmd-norm[0]</output>
			<output>fcs/advance-pos-norm[0]</output>
		</fcs_function>
		<fcs_function>
			<function>
				<table>
					<independentVar lookup="row">fcs/throttle-cmd-norm[1]</independentVar>
					<tableData>
						0	0.874
						0.2	0.748
						0.9	0.937
						1.0	1.0
					</tableData>
				</table>
			</function>
			<output>fcs/advance-cmd-norm[1]</output>
			<output>fcs/advance-pos-norm[1]</output>
		</fcs_function>
	</channel>
	<channel name="Mixture">
		<!-- Being a diesel engine, the E4P-C does not have a carburetor and thus no mixture lever. 
		The amount of fuel injected into the cylinders is controlled by the ECU based on ambient pressure -->
		<fcs_function>
			<function>
				<table>
					<independentVar>atmosphere/pressure-altitude</independentVar>
					<tableData>
						0	1
						30000	0.36
					</tableData>
				</table>
			</function>
			<output>fcs/mixture-cmd-norm[0]</output>
			<output>fcs/mixture-pos-norm[0]</output>
			<output>fcs/mixture-cmd-norm[1]</output>
			<output>fcs/mixture-pos-norm[1]</output>
		</fcs_function>
	</channel>
</system>
