<?xml version="1.0"?>  
<system name="HK36 Engine Control Unit"> 
	<channel name="Throttle">
		<!--	[3]	page 5 - 4	Throttle setting according to power setting -->
		<fcs_function>
			<function>
				<quotient>
					<table>
						<independentVar lookup="row">/controls/engines/engine[0]/throttle</independentVar>
						<tableData>
							0	0
							0.55	0.59
							0.65	0.64
							0.75	0.67
							0.9	1
							1	1.15
						</tableData>
					</table>
					<value>1.15</value> <!-- normalize to 1 -->
				</quotient>
			</function>
			<output>fcs/throttle-cmd-norm[0]</output>
			<output>fcs/throttle-pos-norm[0]</output>
		</fcs_function>
	</channel>
	<channel name="Mixture">
		<!--	The engine does not have a mixture control	-->
		<fcs_function>
			<function>
				<table>
					<independentVar lookup="row">atmosphere/pressure-altitude</independentVar>
					<tableData>
						0	1.0
						30000	0.32
					</tableData>
				</table>
			</function>
			<output>fcs/mixture-cmd-norm[0]</output>
			<output>fcs/mixture-pos-norm[0]</output>
		</fcs_function>
	</channel>
	<channel name="Starter">
		<switch>
			<default value="0"/>
			<test value="1">
				/systems/electrical/outputs/starter ge 8
			</test>
			<output>propulsion/starter_cmd</output>
		</switch>
	</channel>
	<channel name="Propeller">
		<switch>
			<default value="0"/>
			<test value="1">
				/controls/engines/engine[0]/propeller-pitch eq 0.0
			</test>
			<output>fcs/feather-cmd-norm</output>
			<output>fcs/feather-pos-norm</output>
		</switch>
	</channel>

</system>
