<?xml version="1.0" encoding="UTF-8"?>
<!--
 This file is part of FlightGear, the free flight simulator
 http://www.flightgear.org/

 Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation; either version 2 of the
 License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.
-->
<PropertyList>
  <name>Hot Start</name>
  <description>Use this Tutorial to perform a hot start. The aircraft is ready to go, engines running and all systems ready.</description>
  <interval>0</interval>

  <init>
    <interval>0</interval>
    <set>
      <property>sim/current-view/view-number</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/alternate-air</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/cowl-flaps-norm</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/fuel-pump</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/magnetos</property>
      <value>3</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/mixture</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/throttle</property>
      <value>0.03</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/propeller-pitch</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/alternate-air</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/cowl-flaps-norm</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/fuel-pump</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/magnetos</property>
      <value>3</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/mixture</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/throttle</property>
      <value>0.03</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/propeller-pitch</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/lighting/beacon</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/lighting/landing-lights</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/lighting/nav-lights</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/lighting/panel-norm</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/lighting/strobe</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/lighting/taxi-light</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/gear/brake-parking</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/gear/gear-down</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/fuel/tank[0]/fuel_selector-position</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/fuel/tank[1]/fuel_selector-position</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/flight/flaps</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/electric/battery-switch</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/electric/engine[0]/generator</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/electric/engine[1]/generator</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/deice/prop-deice</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/deice/surface-deice</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/deice/windshield-deice</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/deice/wingice-light</property>
      <value>0</value>
    </set>
    <set>
      <property>instrumentation/kcs55/ka51/slaved</property>
      <value>1</value>
    </set>
    <nasal>
      <script>
        if( props.globals.getNode( "/sim/time/sun-angle-rad" ).getValue() &gt; 1.57 ) {
          props.globals.getNode( "/controls/lighting/instruments-norm" ).setValue( 1.0 );
        }
      </script>
    </nasal>
  </init>
  <step>
    <message>
      Aircraft is ready. 
      Hit and hold 's' for 1 second to start the engines. 
    </message>
    <exit>
      <condition>
        <property>engines/engine[0]/running</property>
        <property>engines/engine[1]/running</property>
      </condition>
    </exit>
  </step>

  <end>
    <message>Have a good flight!</message>
  </end>

</PropertyList>
