<!-- A3XX Aerodynamics -->
<!-- Joshua Davidson (it0uchpods) -->

<aerodynamics>
	<axis name="LIFT">

		<function name="aero/force/Lift_alpha">
			<description>Lift due to alpha</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<tableData>
						-0.20 -0.900
						 0.00  0.103
						 0.15  1.600
						 0.23  1.900
						 0.60  1.000
					</tableData>
				</table>
			</product>
		</function>

		<function name="aero/force/Lift_flap">
			<description>Delta Lift due to flaps</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">fcs/flap-pos-norm</independentVar>
					<tableData>
						0.000  0.00000
						0.290  0.00250
						0.596  0.00700
						0.645  0.01300
						1.000  0.01700
					</tableData>
				</table>
			</product>
		</function>

		<function name="aero/force/Lift_slats">
			<description>Delta Lift due to slats</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/slat-pos-deg</property>
				<value> 0.01000 </value>
			</product>
		</function>

		<function name="aero/force/Lift_speedbrake">
			<description>Delta Lift due to speedbrake</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/speedbrake-pos-norm</property>
				<value>-0.15</value>
			</product>
		</function>

		<function name="aero/force/Lift_elevator">
			<description>Lift due to Elevator Deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/elevator-pos-rad</property>
				<value>0.04</value>
			</product>
		</function>

	</axis>

	<axis name="DRAG">

		<function name="aero/force/Drag_basic">
			<description>Drag at zero lift</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<tableData>
						-1.57    1.260
						-0.26    0.018
						 0.00    0.008
						 0.26    0.017
						 1.57    1.320
					</tableData>
				</table>
			</product>
		</function>

		<function name="aero/force/Drag_induced">
			<description>Induced drag</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/cl-squared</property>
				<value>0.035</value>
			</product>
		</function>

		<function name="aero/force/Drag_mach">
			<description>Drag due to mach</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">velocities/mach</independentVar>
					<tableData>
						 0.00      0.000
						 0.79      0.000
						 1.10      0.023
						 1.80      0.015
					</tableData>
				</table>
			</product>
		</function>

		<function name="aero/force/Drag_flap">
			<description>Drag due to flaps</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/flap-pos-deg</property>
				<value> 0.00080 </value>
			</product>
		</function>

		<function name="aero/force/Drag_slats">
			<description>Drag due to slats</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/flap-pos-deg</property>
				<value> 0.00080 </value>
			</product>
		</function>

		<function name="aero/force/Drag_gear">
			<description>Drag due to gear</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>gear/gear-pos-norm</property>
				<value>0.025</value>
			</product>
		</function>

		<function name="aero/force/Drag_speedbrake">
			<description>Drag due to speedbrakes</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/speedbrake-pos-norm</property>
				<value>0.035</value>
			</product>
		</function>

		<function name="aero/force/Drag_beta">
			<description>Drag due to sideslip</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/beta-rad</independentVar>
					<tableData>
						-1.57    1.230
						-0.26    0.050
						 0.00    0.000
						 0.26    0.050
						 1.57    1.230
					</tableData>
				</table>
			</product>
		</function>

		<function name="aero/force/Drag_elevator">
			<description>Drag due to Elevator Deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<abs><property>fcs/elevator-pos-norm</property></abs>
				<value>0.035</value>
			</product>
		</function>

	</axis>

	<axis name="SIDE">

		<function name="aero/force/Side_beta">
			<description>Side force due to beta</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/beta-rad</property>
				<value>-1</value>
			</product>
		</function>

	</axis>

	<axis name="ROLL">

		<function name="aero/moment/Roll_beta">
			<description>Roll moment due to beta</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/beta-rad</property>
				<value>-0.1</value>
			</product>
		</function>

		<function name="aero/moment/Roll_damp">
			<description>Roll moment due to roll rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/p-aero-rad_sec</property>
				<value>-0.95</value>
			</product>
		</function>

		<function name="aero/moment/Roll_yaw">
			<description>Roll moment due to yaw rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/r-aero-rad_sec</property>
				<value>0.005</value>
			</product>
		</function>

		<function name="aero/moment/Roll_aileron">
			<description>Roll moment due to aileron</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/left-aileron-pos-rad</property>
				<value>0.20</value>
			</product>
		</function>

		<function name="aero/moment/Roll_rudder">
			<description>Roll moment due to rudder</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/rudder-pos-rad</property>
				<value>0.003</value>
			</product>
		</function>

	</axis>

	<axis name="PITCH">

		<function name="aero/moment/Pitch_alpha">
			<description>Pitch moment due to alpha</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>aero/alpha-rad</property>
				<value>-0.6</value>
			</product>
		</function>

		<function name="aero/moment/Pitch_elevator">
			<description>Pitch moment due to elevator</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>fcs/elevator-pos-rad</property>
				<table>
					<independentVar lookup="row">velocities/mach</independentVar>
					<tableData>
						0.0     -1.900
						2.0     -0.900
					</tableData>
				</table>
			</product>
		</function>

		<function name="aero/moment/Pitch_damp">
			<description>Pitch moment due to pitch rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>aero/ci2vel</property>
				<property>velocities/q-aero-rad_sec</property>
				<value>-140</value>
			</product>
		</function>

		<function name="aero/moment/Pitch_alphadot">
			<description>Pitch moment due to alpha rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>aero/ci2vel</property>
				<property>aero/alphadot-rad_sec</property>
				<value>-1</value>
			</product>
		</function>

	</axis>

	<axis name="YAW">

		<function name="aero/moment/Yaw_beta">
			<description>Yaw moment due to beta</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/beta-rad</property>
				<value>0.12</value>
			</product>
		</function>

		<function name="aero/moment/Yaw_damp">
			<description>Yaw moment due to yaw rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/r-aero-rad_sec</property>
				<value>-0.2</value>
			</product>
		</function>

		<function name="aero/moment/Yaw_rudder">
			<description>Yaw moment due to rudder</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/rudder-pos-rad</property>
				<value>-0.2</value>
			</product>
		</function>

		<function name="aero/moment/Yaw_aileron">
			<description>Adverse yaw</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/left-aileron-pos-rad</property>
				<value>0</value>
			</product>
		</function>

	</axis>
</aerodynamics>