<PropertyList>

    <name>Preflight</name>
    <description>
You just stepped through the cockpit door of the cold and dark 747-400, the most magnificent passenger aircraft on the planet. You are the captain on this flight and will direct all flight operations.
    </description>
	
    <audio-dir>Aircraft/747-400/tutorial</audio-dir>
	
    <init>
		<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/electric/battery-switch</property>
			<value>0.0</value>
		</set>
		<set>
			<property>/controls/engines/engine/throttle</property>
			<value>0</value>
		</set>
		<set>
			<property>/engines/engine/running</property>
			<value>0</value>
		</set>
    </init>

    <step>
		<message>Turn ON the BATTERY switch at the overhead panel.</message>
		<marker>
			<x-m> 1.31</x-m>
			<y-m>-0.26</y-m>
			<z-m> 1.40</z-m>
			<scale>0.9174</scale>
		</marker>
		<exit>
			<condition>
				<property>/controls/electric/battery</property>
			</condition>
		</exit>
    </step>

    <step>
		<message>Set all four ELEC ENG CONTROL switches to NORM.</message>
    </step>

    <step>
		<message>Set the BUS TIE switches to AUTO.</message>
    </step>

    <step>
		<message>Set the GEN CONT (generator control) switches ON.</message>
		<exit>
			<and>
				<condition>
					<property>/controls/electric/generator-control[0]</property>
				</condition>
				<condition>
					<property>/controls/electric/generator-control[1]</property>
				</condition>
				<condition>	
					<property>/controls/electric/generator-control[2]</property>
				</condition>
				<condition>
					<property>/controls/electric/generator-control[3]</property>
				</condition>
			</and>
		</exit>
    </step>

    <step>
		<message>Ensure that the Hydraulic DEMAND pump switches are set to OFF.</message>
    </step>

    <step>
		<message>Turn the ENGINE hydraulic pump selectors ON.</message>
		<exit>
			<and>
				<condition>
					<property>/controls/hydraulic/system/engine-pump</property>
				</condition>
				<condition>	
					<property>/controls/hydraulic/system[1]/engine-pump</property>
				</condition>
				<condition>
					<property>/controls/hydraulic/system[2]/engine-pump</property>
				</condition>
				<condition>
					<property>/controls/hydraulic/system[3]/engine-pump</property>
				</condition>
			</and>
		</exit>
    </step>

    <step>
		<message>Turn on EXT PWR 1 and, if available, EXT PWR 2.</message>
		<marker>
			<x-m>-24.285</x-m>
			<y-m>-0.338</y-m>
			<z-m>4.112</z-m>
			<scale>2.4</scale>
		</marker>
		<exit>
			<condition>
				<equals>
					<property>/systems/electrical/external-power[0]</property>
					<value>2</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn ON UTILITY L and R.</message>
		<exit>
			<condition>       
				<equals>       
					<property>/controls/electric/utility[0]</property>
					<value>1</value>
				</equals>
				<equals>
					<property>/controls/electric/utility[1]</property>
					<value>1</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn on the NAV lights.</message>
		<exit>
			<condition> 
				<equals>   
					<property>/controls/lighting/nav-lights</property> 
					<value>1</value>
				</equals> 
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn on the LOGO lights.</message>
		<exit>
			<condition>
				<equals>
					<property>/controls/lighting/logo-lights</property>            
					<value>1</value>
				</equals>   
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn on the WING lights.</message>
    </step>

    <step>
		<message>ARM the emergency lights.</message>
    </step>

    <step>
		<message>Ensure all control surfaces are properly positioned.</message>
		<exit>
			<condition>    
				<equals>    
					<property>/controls/flight/flaps</property>    
					<value>0</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Set each of the three IRS switches from OFF to NAV to ALIGN.</message>
    </step>

    <step>
		<message>Turn on all fuel XFEED (crossfeed) switches.</message>
		<exit>
			<condition>       
				<equals>       
					<property>/controls/fuel/tank[1]/x-feed</property>
					<value>1</value>
				</equals>
				<equals>
					<property>/controls/fuel/tank[2]/x-feed</property>
					<value>1</value>
				</equals>
				<equals>
					<property>/controls/fuel/tank[3]/x-feed</property>
					<value>1</value>
				</equals>
				<equals>
					<property>/controls/fuel/tank[4]/x-feed</property>
					<value>1</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Ensure all fuel pumps are OFF.</message>
		<exit>
			<condition>    
				<and>
					<equals>       
						<property>/controls/fuel/tank[1]/pump-fwd</property>
						<value>0</value>
					</equals>
					<equals>       
						<property>/controls/fuel/tank[1]/pump-aft</property>
						<value>0</value>
					</equals>
					<equals>       
						<property>/controls/fuel/tank[2]/pump-fwd</property>
						<value>0</value>
					</equals>
					<equals>       
						<property>/controls/fuel/tank[2]/pump-aft</property>
						<value>0</value>
					</equals>       
					<equals>       
						<property>/controls/fuel/tank[3]/pump-fwd</property>
						<value>0</value>
					</equals>
					<equals>       
						<property>/controls/fuel/tank[3]/pump-aft</property>
						<value>0</value>
					</equals>       
					<equals>       
						<property>/controls/fuel/tank[4]/pump-fwd</property>
						<value>0</value>
					</equals>
					<equals>       
						<property>/controls/fuel/tank[4]/pump-aft</property>
						<value>0</value>
					</equals>
					<equals>       
						<property>/controls/fuel/tank[7]/pump</property>
						<value>0</value>
					</equals>
				</and>
			</condition>
		</exit>
    </step>

    <step>
		<message>Disable NACELLE and WING ANTI-ICE.</message>
    </step>

    <step>
		<message>Enable WINDOW HEAT.</message>
    </step>

    <step>
		<message>Turn YAW DAMPERS ON.</message>
    </step>

    <step>
		<message>Rotate the APU switch to START.</message>
		<marker>
			<x-m>-24.240</x-m>
			<y-m>-0.188</y-m>
			<z-m>4.126</z-m>
			<scale>3.0</scale>
		</marker>
		<exit>
			<condition> 
				<equals> 
					<property>/controls/electric/apu</property>
					<value>2</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn ON APU GEN 1 and APU GEN 2.</message>
		<exit>
			<condition> 
				<and>
					<equals> 
						<property>/systems/electrical/apu-generator[0]</property>
						<value>2</value>
					</equals>
					<equals> 
						<property>/systems/electrical/apu-generator[1]</property>
						<value>2</value>
					</equals>
				</and>
			</condition>
		</exit>
    </step>

    <step>
		<message>Ensure that PASS TEMP and FLT DECK temperature controls are set to AUTO.</message>
    </step>

    <step>
		<message>Make sure TRIM AIR is ON.</message>
    </step>

    <step>
		<message>Turn ON UPR and LWR RECIRC.</message>
    </step>

    <step>
		<message>Turn ON the GASPER.</message>
    </step>

    <step>
		<message>Turn all three PACK switches to NORM.</message>
		<exit>
			<condition> 
				<and>
					<equals> 
						<property>/controls/pneumatic/pack-control[0]</property>
						<value>1</value>
					</equals>
					<equals> 
						<property>/controls/pneumatic/pack-control[1]</property>
						<value>1</value>
					</equals>
					<equals> 
						<property>/controls/pneumatic/pack-control[2]</property>
						<value>1</value>
					</equals>
				</and>
			</condition>
		</exit>
    </step>

    <step>
		<message>Ensure the ISLN switches are open.</message>
		<exit>
			<condition> 
				<and>
					<equals> 
						<property>/controls/pneumatic/isolation-valve[0]</property>
						<value>1</value>
					</equals>
					<equals> 
						<property>/controls/pneumatic/isolation-valve[1]</property>
						<value>1</value>
					</equals>
				</and>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn ON APU Bleed.</message>
		<exit>
			<condition>  
				<equals>
					<property>/controls/pneumatic/APU-bleed</property>
					<value>1</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn ENGINE BLEED ON for all four engines.</message>
		<exit>
			<condition>     
				<equals>  
					<property>/controls/pneumatic/engine-bleed[0]</property> 
					<value>1</value>
				</equals>
				<equals>
					<property>/controls/pneumatic/engine-bleed[1]</property>
					<value>1</value>
				</equals>
				<equals> 
					<property>/controls/pneumatic/engine-bleed[2]</property>
					<value>1</value>
				</equals>
				<equals>
					<property>/controls/pneumatic/engine-bleed[3]</property>
					<value>1</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn the F/D (Flight Director) ON.</message>
    </step>
	
	<step>
		<message>Press the INIT REF button on one of the CDUs on the pedestal.</message>
		<exit>
			<condition>  
				<equals>
					<property>/instrumentation/cdu/display</property>
					<value>INIT_REF</value>
				</equals>
			</condition>
		</exit>
    </step>
	
	<step>
		<message>Then click the button next to TAKEOFF.</message>
		<exit>
			<condition>  
				<equals>
					<property>/instrumentation/cdu/display</property>
					<value>TO_REF</value>
				</equals>
			</condition>
		</exit>
    </step>
	
	<step>
		<message>Type the flap setting you will be using on takeoff, making use of the digits pad, then press the button next to the flap setting (upper left side button).</message>
    </step>

    <step>
		<message>Enter V2 speed (as seen on the CDU) into the IAS/MACH indicator.</message>
    </step>

    <step>
		<message>Set HDG to 249.</message>
    </step>

    <step>
		<message>Set ALT to 10000.</message>
		<exit>
			<condition>  
				<equals>
					<property>/autopilot/settings/target-altitude-ft</property>
					<value>10000</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Ensure the autopilot DISENGAGE bar is UP.</message>
    </step>

    <step>
		<message>Ensure that fuel control switches are set at CUTOFF</message>
		<exit>
			<condition> 
				<and>
					<equals>  
						<property>/controls/engines/engine[0]/cutoff</property> 
						<value>1</value>
					</equals>
					<equals>
						<property>/controls/enginesc/engine[1]/cutoff</property>
						<value>1</value>
					</equals>
					<equals> 
						<property>/controls/engines/engine[2]/cutoff</property>
						<value>1</value>
					</equals>
					<equals>
						<property>/controls/engines/engine[3]/cutoff</property>
						<value>1</value>
					</equals>
				</and>
			</condition>
		</exit>
    </step>

    <step>
		<message>Set trim</message>
    </step>

    <step>
		<message>Set AUTOBRAKES to RTO.</message>
		<exit>
			<condition>  
				<equals>
					<property>/autopilot/autobrake/step</property>
					<value>0</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Turn the TCAS switch from XPDR to STBY/TEST.</message>
    </step>

    <step>
		<message>Move the TCAS switch to TA/RA.</message>
    </step>

    <step>
		<message>Set the TCAS biasing mode switch to ABOVE.</message>
    </step>

    <step>
		<message>Ensure that NO SMOKING and SEATBELTS selectors are set to AUTO.</message>
		<exit>
			<condition>  
				<equals>
					<property>/controls/switches/seatbelt-sign</property>
					<value>1</value>
				</equals>
			</condition>
		</exit>
    </step>

    <step>
		<message>Lock the FLT DK DOOR.</message>
    </step>

    <step>
		<message>Press the TFC button on the EFIS (Electronic Flight Information System) Mode Control Panel.</message>
    </step>

    <step>
		<message>Turn ON MAIN and OVRD fuel pumps for each tank that contains fuel.</message>
    </step>

    <end>
		<message>Continue with the Pushback and Start tutorial.</message>
    </end>

</PropertyList>
