<?xml version="1.0" encoding="UTF-8" ?>

<PropertyList>

	<name>Startup</name>
	<description>Learn how to start the engines and prepare for takeoff in the CRJ700.</description>
	<presets>
		<on-ground type="bool">true</on-ground>
	</presets>

	<init>
		<set>
			<property>controls/gear/brake-parking</property>
			<value type="bool">true</value>
		</set>
		<set>
			<property>controls/engines/engine[0]/cutoff</property>
			<value type="bool">true</value>
		</set>
		<set>
			<property>controls/engines/engine[0]/throttle</property>
			<value>0</value>
		</set>
		<set>
			<property>controls/engines/engine[0]/thrust-mode</property>
			<value>0</value>
		</set>
		<set>
			<property>controls/engines/engine[1]/cutoff</property>
			<value type="bool">true</value>
		</set>
		<set>
			<property>controls/engines/engine[1]/throttle</property>
			<value>0</value>
		</set>
		<set>
			<property>controls/engines/engine[1]/thrust-mode</property>
			<value>0</value>
		</set>
		<set>
			<property>engines/engine[0]/running</property>
			<value type="bool">false</value>
		</set>
		<set>
			<property>engines/engine[1]/running</property>
			<value type="bool">false</value>
		</set>
		<nasal>
			<script><![CDATA[
			 # engine cutoff settings seem to get overridden
			 settimer(func
			  {
			  setprop("controls/engines/engine[0]/cutoff", 1);
			  setprop("controls/engines/engine[1]/cutoff", 1);
			  }, 0);
			]]></script>
		</nasal>
	</init>

	<step>
		<message>Welcome aboard the Bombardier CRJ700, a modern regional jet airliner.</message>
	</step>

	<step>
		<message>In this tutorial, we will learn how to start the engines and prepare for takeoff.
First, ensure all doors are closed (click them to open/close) and all passengers and
cargo have been loaded.</message>
	</step>

	<step>
		<message>The electrical system is currently dormant. Reach up to the overhead panel and turn
on the battery.</message>
		<view>
			<heading-offset-deg>311.9</heading-offset-deg>
			<pitch-offset-deg>36.1</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>35.4</field-of-view>
		</view>
		<marker>
			<x-m>-13.3950</x-m>
			<y-m>-0.1842</y-m>
			<z-m>-0.1408</z-m>
			<scale>1.9667</scale>
		</marker>
		<exit>
			<condition>
				<property>controls/electric/battery-switch</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>To start the engines, we need to turn on the APU (auxilary power unit). Engage the
APU start/stop switch.</message>
		<view>
			<heading-offset-deg>308.7</heading-offset-deg>
			<pitch-offset-deg>21.0</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>26.9</field-of-view>
		</view>
		<marker>
			<x-m>-13.5358</x-m>
			<y-m>0.0142</y-m>
			<z-m>-0.1967</z-m>
			<scale>1.9667</scale>
		</marker>
		<exit>
			<condition>
				<property>controls/APU/off-on</property>
			</condition>
		</exit>
	</step>
	<step>
		<message>If you want to, you may also turn on the power/fuel switch, which turns on the
Electronic Control Unit. This enables the EICAS to display the APU's RPM and EGT.</message>
	</step>

	<step>
		<message>The APU will now spool up. During this time, "APU START" will appear on the EICAS. When
the APU is fully started, "APU RUNNING" will appear.</message>
		<exit>
			<condition>
				<property>engines/apu/running</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>Turn on the APU electric generator, which will provide electrical power to the airplane
without draining the battery.</message>
		<view>
			<heading-offset-deg>316.8</heading-offset-deg>
			<pitch-offset-deg>29.4</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>33.5</field-of-view>
		</view>
		<marker>
			<x-m>-13.4825</x-m>
			<y-m>-0.1542</y-m>
			<z-m>-0.1650</z-m>
			<scale>1.9667</scale>
		</marker>
		<exit>
			<condition>
				<property>controls/electric/APU-generator</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>Switch the bleed air source to the APU so we can start the engines.</message>
		<view>
			<heading-offset-deg>305.1</heading-offset-deg>
			<pitch-offset-deg>25.2</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>22.8</field-of-view>
		</view>
		<marker>
				<x-m>-13.5075</x-m>
				<y-m>0.0425</y-m>
				<z-m>-0.1767</z-m>
				<scale>2.0833</scale>
		</marker>
		<exit>
			<condition>
				<equals>
					<property>controls/pneumatic/bleed-source</property>
					<value>2</value>
				</equals>
			</condition>
		</exit>
	</step>

	<step>
		<message>Click the thrust levers to set them to idle. This will allow fuel to flow to the
engines.</message>
		<view>
			<heading-offset-deg>314.5</heading-offset-deg>
			<pitch-offset-deg>-43.0</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>20.5</field-of-view>
		</view>
		<marker>
			<x-m>-13.6250</x-m>
			<y-m>0.0058</y-m>
			<z-m>-1.1517</z-m>
			<scale>6.2500</scale>
		</marker>
		<exit>
			<condition>
				<and>
					<not>
						<property>controls/engines/engine[0]/cutoff</property>
					</not>
					<not>
						<property>controls/engines/engine[1]/cutoff</property>
					</not>
				</and>
			</condition>
		</exit>
	</step>

	<step>
		<message>Now let's start the engines. Activate the engine starters by clicking both engine
start buttons.</message>
		<view>
			<heading-offset-deg>314.5</heading-offset-deg>
			<pitch-offset-deg>21.0</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>21.6</field-of-view>
		</view>
		<marker>
			<x-m>-13.5825</x-m>
			<y-m>-0.0408</y-m>
			<z-m>-0.2108</z-m>
			<scale>2.5667</scale>
		</marker>
		<exit>
			<condition>
				<and>
					<property>controls/engines/engine[0]/starter</property>
					<property>controls/engines/engine[1]/starter</property>
				</and>
			</condition>
		</exit>
	</step>

	<step>
		<message>Now wait for the engines to spool up to about 20% N1 and become responsive.</message>
		<view>
			<heading-offset-deg>339.3</heading-offset-deg>
			<pitch-offset-deg>-20.4</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>22.8</field-of-view>
		</view>
		<exit>
			<condition>
				<and>
					<property>engines/engine[0]/running</property>
					<property>engines/engine[1]/running</property>
				</and>
			</condition>
		</exit>
	</step>

	<step>
		<message>Now that the engines are running, turn on the engine 1 electric generator.</message>
		<view>
			<heading-offset-deg>319.1</heading-offset-deg>
			<pitch-offset-deg>31.0</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>35.4</field-of-view>
		</view>
		<marker>
			<x-m>-13.4850</x-m>
			<y-m>-0.2042</y-m>
			<z-m>-0.1650</z-m>
			<scale>2.0000</scale>
		</marker>
		<exit>
			<condition>
				<property>controls/electric/engine[0]/generator</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>Turn on the engine 2 electric generator.</message>
		<marker>
			<x-m>-13.4850</x-m>
			<y-m>-0.1033</y-m>
			<z-m>-0.1650</z-m>
			<scale>2.0000</scale>
		</marker>
		<exit>
			<condition>
				<property>controls/electric/engine[1]/generator</property>
			</condition>
		</exit>
	</step>

	<step>
		<message>We are now generating electrical power through the engines.  Turn off
the APU generator, as it is no longer needed.</message>
		<marker>
			<x-m>-13.4850</x-m>
			<y-m>-0.1583</y-m>
			<z-m>-0.1650</z-m>
			<scale>2.0000</scale>
		</marker>
		<exit>
			<condition>
				<not>
					<property>controls/electric/APU-generator</property>
				</not>
			</condition>
		</exit>
	</step>

	<step>
		<message>We don't need the APU anymore, so shut it down.</message>
		<view>
			<heading-offset-deg>309.6</heading-offset-deg>
			<pitch-offset-deg>22.2</pitch-offset-deg>
			<roll-offset-deg>0.0</roll-offset-deg>
			<x-offset-m>-0.5</x-offset-m>
			<y-offset-m>-0.5</y-offset-m>
			<z-offset-m>-13.1</z-offset-m>
			<field-of-view>28.5</field-of-view>
		</view>
		<marker>
			<x-m>-13.5417</x-m>
			<y-m>0.0217</y-m>
			<z-m>-0.1933</z-m>
			<scale>1.7000</scale>
		</marker>
		<exit>
			<condition>
				<not>
					<property>controls/APU/off-on</property>
				</not>
			</condition>
		</exit>
	</step>

	<end>
		<message>Congratulations! You have successfully started a the Bombardier CRJ700.</message>
	</end>

</PropertyList>
