<PropertyList>
	<name>Engine Start</name>
	<description>This tutorial teaches the Hurricane engine start procedure</description>

	<init>
		<set>
			<property>/sim/current-view/view-number</property>
			<value>0</value>
		</set>
		<set>
			<property>/controls/gear/brake-parking</property>
			<value>1</value>
		</set>
		<set>
			<property>/controls/flight/flaps</property>
			<value>0.0</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/throttle</property>
			<value>0.0</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/mixture</property>
			<value>1</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/mag-switch-left</property>
			<value>0</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/mag-switch-right</property>
			<value>0</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/propeller-pitch</property>
			<value>1</value>
		</set>
		<set>
			<property>/engines/engine[0]/running</property>
			<value>0</value>
		</set>
	</init>

	<step>
		<view>
			<heading-offset-deg>19.4</heading-offset-deg>
			<pitch-offset-deg>-31.5</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>0.0</x-offset-m>
			<y-offset-m>0.7</y-offset-m>
			<z-offset-m>3.9</z-offset-m>
			<field-of-view>32.8</field-of-view>
		</view>

		<marker>
			<x-m>3.1858</x-m>
			<y-m>-0.2587</y-m>
			<z-m>0.2151</z-m>
			<scale>3.0000</scale>
		</marker>

		<message>
			Switch on both magnetos
		</message>
		<exit>
			<condition>
				<property>/controls/engines/engine[0]/mag-switch-left</property>
				<property>/controls/engines/engine[0]/mag-switch-right</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>
			Open throttle to around 1/3rd
		</message>
		<view>
			<heading-offset-deg>43.3</heading-offset-deg>
			<pitch-offset-deg>-43.7</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>0.0</x-offset-m>
			<y-offset-m>0.7</y-offset-m>
			<z-offset-m>3.9</z-offset-m>
			<field-of-view>44.3</field-of-view>
		</view>

		<error>
			<message>Ensure the throttle is 1/3 open{|.}</message>
			<condition>
				<or>
					<less-than>
						<property>/controls/engines/engine[0]/throttle</property>
						<value>0.25</value>
					</less-than>
					<greater-than>
						<property>/controls/engines/engine[0]/throttle</property>
						<value>0.35</value>
					</greater-than>
				</or>
			</condition>
		</error>
		<exit>
			<condition>
				<and>
					<greater-than>
						<property>/controls/engines/engine[0]/throttle</property>
						<value>0.25</value>
					</greater-than>
					<less-than>
						<property>/controls/engines/engine[0]/throttle</property>
						<value>0.35</value>
					</less-than>
				</and>
			</condition>
		</exit>
	</step>

	<step>
		<message>Next, press and release the fuel primer button five times</message>
		<view>
			<heading-offset-deg>345.1</heading-offset-deg>
			<pitch-offset-deg>-37.0</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>0.0</x-offset-m>
			<y-offset-m>0.7</y-offset-m>
			<z-offset-m>3.9</z-offset-m>
			<field-of-view>44.3</field-of-view>
		</view>
		<marker>
			<x-m>3.1858</x-m>
			<y-m>0.2960</y-m>
			<z-m>0.0942</z-m>
			<scale>3.0000</scale>
		</marker>
		<exit>
			<condition>
				<greater-than>
					<property>/engines/engine[0]/primer</property>
					<value>4</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Finally, press and hold the starter button until the engine is running</message>
		<view>
			<heading-offset-deg>26.1</heading-offset-deg>
			<pitch-offset-deg>-33.6</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>0.0</x-offset-m>
			<y-offset-m>0.7</y-offset-m>
			<z-offset-m>3.9</z-offset-m>
			<field-of-view>27.6</field-of-view>
		</view>
		<marker>
			<x-m>3.1858</x-m>
			<y-m>-0.3418</y-m>
			<z-m>0.2062</z-m>
			<scale>2.3778</scale>
		</marker>
		<exit>
			<condition>
				<property>/engines/engine[0]/running</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>Throttle back to avoid tipping the aircraft onto its nose</message>
		<exit>
			<condition>
				<less-than>
					<property>/controls/engines/engine[0]/throttle</property>
					<value>0.2</value>
				</less-than>
			</condition>
		</exit>
	</step>

	<end>
		<message>The engine should now be running</message>
		<view>
			<heading-offset-deg>0</heading-offset-deg>
			<pitch-offset-deg>-12</pitch-offset-deg>
			<field-of-view>55</field-of-view>
		</view>
	</end>
</PropertyList>
