<PropertyList>
	<name>Engine Start</name>
	<description>This tutorial teaches the Lightning 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>/sim/model/lightning/controls/shut_down</property>
			<value>1</value>
		</set>
		<set>
			<property>/systems/electrical/suppliers/external</property>
			<value>0</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/cutoff</property>
			<value>0</value>
		</set>
		<set>
			<property>/controls/engines/engine[1]/cutoff</property>
			<value>0</value>
		</set>
		<set>
			<property>/controls/engines/engine[0]/throttle</property>
			<value>0.0</value>
		</set>
		<set>
			<property>/controls/engines/engine[1]/throttle</property>
			<value>0.0</value>
		</set>
		<set>
			<property>/engines/engine[0]/running</property>
			<value>0</value>
		</set>
		<set>
			<property>/engines/engine[1]/running</property>
			<value>0</value>
		</set>
	</init>

	<step>
		<message>
			First, ensure ground power is being supplied.
			Use the checkbox on the Lightning dialogue{ (TAB key)|.}
		</message>
		<view>
			<heading-offset-deg>340</heading-offset-deg>
			<pitch-offset-deg>-22</pitch-offset-deg>
			<field-of-view>40</field-of-view>
		</view>
		<nasal>
			<script>Lightning.dialog.open()</script>
		</nasal>
		<error>
			<message>Call up the dialogue with the TAB key and select "External Power"{|.}</message>
			<condition>
				<less-than>
					<property>/systems/electrical/suppliers/external</property>
					<value>1</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/systems/electrical/suppliers/external</property>
					<value>0</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>
			Ensure the engine shutdown control is in the upright position{|.}
		</message>
		<view>
			<heading-offset-deg>27.7</heading-offset-deg>
			<pitch-offset-deg>-48</pitch-offset-deg>
			<field-of-view>55</field-of-view>
		</view>
		<marker>
			<x-m>3.484</x-m>
			<y-m>-0.323</y-m>
			<z-m>0.559</z-m>
		</marker>
		<nasal>
			<script>Lightning.dialog.close()</script>
		</nasal>
		<error>
			<message>Ensure the cutoff switch is vertical{|.}</message>
			<condition>
				<greater-than>
					<property>/sim/model/lightning/controls/shut_down</property>
					<value>0</value>
				</greater-than>
			</condition>
		</error>
		<exit>
			<condition>
				<less-than>
					<property>/sim/model/lightning/controls/shut_down</property>
					<value>1</value>
				</less-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Next, turn on the battery switch{|.}</message>
		<view>
			<heading-offset-deg>320.5</heading-offset-deg>
			<pitch-offset-deg>-39.3</pitch-offset-deg>
			<field-of-view>35</field-of-view>
		</view>
		<marker>
			<x-m>3.507</x-m>
			<y-m>0.468</y-m>
			<z-m>0.632</z-m>
		</marker>
		<error>
			<message>Ensure the battery switch is on{ (up)|.}</message>
			<condition>
				<less-than>
					<property>/controls/switches/battery</property>
					<value>1</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/controls/switches/battery</property>
					<value>0</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Turn on the "Engine Start Master"{ |-}switch{|.}</message>
		<marker>
			<x-m>3.4051</x-m>
			<y-m>0.4453</y-m>
			<z-m>0.6231</z-m>
		</marker>
		<error>
			<message>Ensure the "Engine Start Master"{ |-}switch is on{ (up)|.}</message>
			<condition>
				<less-than>
					<property>/controls/switches/eng_start_master</property>
					<value>1</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/controls/switches/eng_start_master</property>
					<value>0</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Turn on the "Ignition"{ |-}switch{|.}</message>
		<marker>
			<x-m>3.438</x-m>
			<y-m>0.445</y-m>
			<z-m>0.623</z-m>
		</marker>
		<error>
			<message>Ensure the "Ignition"{ |-}switch is on{ (up)|.}</message>
			<condition>
				<less-than>
					<property>/controls/switches/ignition</property>
					<value>1</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/controls/switches/ignition</property>
					<value>0</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Move the throttles to the first "Open" position{|.}</message>
		<view>
			<heading-offset-deg>27.7</heading-offset-deg>
			<pitch-offset-deg>-48</pitch-offset-deg>
			<field-of-view>55</field-of-view>
		</view>
		<marker>
			<x-m>3.436</x-m>
			<y-m>-0.358</y-m>
			<z-m>0.594</z-m>
			<scale>3.5</scale>
		</marker>
		<error>
			<message>Open the throttles{|!}</message>
			<condition>
				<less-than>
					<property>/controls/engines/engine[0]/throttle</property>
					<value>0.03</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/controls/engines/engine[0]/throttle</property>
					<value>0.03</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>
			Press and hold the {No1|number-one} "Engine Start"{ |-}button for up to two seconds.
			You should hear the AVPIN pump running, then the combustion of the AVPIN,
			followed by the engine spooling up{|.}
		</message>
		<view>
			<heading-offset-deg>320.5</heading-offset-deg>
			<pitch-offset-deg>-39.3</pitch-offset-deg>
		</view>
		<marker>
			<x-m>3.475</x-m>
			<y-m>0.442</y-m>
			<z-m>0.630</z-m>
		</marker>
		<error>
			<message>Press the {No1|number-one} "Engine Start"{ |-}button for a few seconds{|.}</message>
			<condition>
				<less-than>
					<property>/engines/engine[0]/n1</property>
					<value>2</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/engines/engine[0]/n1</property>
					<value>30</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Press and hold the {No2|number-two} "Engine Start"{ |-}button for up to two seconds{|.}</message>
		<marker>
			<x-m>3.475</x-m>
			<y-m>0.465</y-m>
			<z-m>0.639</z-m>
		</marker>
		<error>
			<message>Press the {No2|number-two} "Engine Start"{ |-}button for a few seconds{|.}</message>
			<condition>
				<less-than>
					<property>/engines/engine[1]/n1</property>
					<value>2</value>
				</less-than>
			</condition>
		</error>
		<exit>
			<condition>
				<greater-than>
					<property>/engines/engine[1]/n1</property>
					<value>30</value>
				</greater-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Turn off the "Engine start master"{ |-}switch{|.}</message>
		<marker>
			<x-m>3.4053</x-m>
			<y-m>0.4453</y-m>
			<z-m>0.6231</z-m>
		</marker>
		<error>
			<message>Ensure the "Engine Start Master"{ |-}switch is off{ (down)|.}</message>
			<condition>
				<greater-than>
					<property>/controls/switches/eng_start_master</property>
					<value>0</value>
				</greater-than>
			</condition>
		</error>
		<exit>
			<condition>
				<less-than>
					<property>/controls/switches/eng_start_master</property>
					<value>1</value>
				</less-than>
			</condition>
		</exit>
	</step>

	<step>
		<message>Disconnect external electrical supplies{|.}</message>
		<nasal>
			<script>Lightning.dialog.open()</script>
		</nasal>
		<error>
			<message>Call up the dialogue with the TAB key if necessary and deselect "External Power"{|.}</message>
			<condition>
				<greater-than>
					<property>/systems/electrical/suppliers/external</property>
					<value>0</value>
				</greater-than>
			</condition>
		</error>
		<exit>
			<condition>
				<less-than>
					<property>/systems/electrical/suppliers/external</property>
					<value>1</value>
				</less-than>
			</condition>
		</exit>
	</step>

	<end>
		<message>Both engines should now be running.</message>
		<view>
			<heading-offset-deg>0</heading-offset-deg>
			<pitch-offset-deg>-20</pitch-offset-deg>
		</view>
		<nasal>
			<script>Lightning.dialog.close()</script>
		</nasal>
	</end>
</PropertyList>
