<?xml version="1.0"?>

<system name="FADEC">
	
	<channel name="Requested_Prop_RPM"> 
		
		<fcs_function name="systems/FADEC/rpm-requested">
			<function>
				<product>
					<difference>
						<table>
							<independentVar>/controls/engines/engine/throttle</independentVar>
							<tableData> <!-- ref. [4] chapter 3.6, propeller RPM according to throttle setting -->               
							0	1750
							0.25	1750
							0.5	1880
							0.65	1960
							0.75	2030
							0.9	2180
							1	2300
							</tableData>
						</table>
						<value>1750</value>
					</difference>
					<value>0.00181818</value>
				</product>
			</function>
			<output>fcs/advance-cmd-norm</output>
			<output>fcs/advance-pos-norm</output>
		</fcs_function> 
		<!--<fcs_function name="systems/FADEC/prop_pitch">
			<function>
				<table>
					<independentVar lookup="row">systems/FADEC/rpm-requested</independentVar>    
					<independentVar lookup="column">propulsion/engine[0]/power-hp</independentVar>
					<independentVar lookup="table">velocities/vc-kts</independentVar>
					<tableData breakPoint="0.0">
						0	160
					890	12	45
					2300	12	30.6
					</tableData>
					<tableData breakPoint="128.0">
						0	160
					890	45	45
					2300	12	37.74
					</tableData>
					<tableData breakPoint="180.0">
						0	160
					890	45	45
					2300	12	40.5
					</tableData>
				</table>
			</function>
			<output>propulsion/engine[0]/blade-angle</output>   
		</fcs_function> -->
		<fcs_function name="engine/load_governor">
			<function>
				<product>
					<table>
						<independentVar lookup="row">/controls/engines/engine/throttle</independentVar>
						<tableData> <!-- ref. [4] chapter 3.6, engine power according to load setting -->               
						0      0
						0.25   43
						0.5    73
						0.65   92
						0.75   100
						0.9    123
						1      135
						</tableData>
					</table>
					<value>0.00740740740741</value>
				</product>
			</function>
			<output>fcs/throttle-cmd-norm</output>   
			<output>fcs/throttle-pos-norm</output>   
		</fcs_function>
	  
	</channel>
				
</system>

