<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

<!-- 
     ************************************************************************
     Douglas DC-3 C47
     January 2012 modified by PAF team : http://http://equipe-flightgear.forumactif.com
     December 2012 updated  by Helijah : http://helijah.free.fr / http://embaranger.free.fr
     ************************************************************************
-->

  <name>EN-2-startup</name>
  <description>
Before you go flying, you'll need to learn how to start the engines.

  </description>


  <init>
    <set>
      <property>controls/gear/tailwheel-lock</property>
      <value>1</value>
    </set>
    <set>
      <property>controls/gear/brake-parking</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/flight/flaps</property>
      <value>0.0</value>
    </set>
    <set>
      <property>controls/engines/engine/magnetos</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/engines/engine/throttle</property>
      <value>0.0</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/mixture</property>
      <value>0.0</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/mixture</property>
      <value>0.0</value>
    </set>
    <set>
      <property>controls/engines/engine[0]/propeller-pitch</property>
      <value>0.0</value>
    </set>
    <set>
      <property>controls/engines/engine[1]/propeller-pitch</property>
      <value>0.0</value>
    </set>
    <set>
      <property>engines/engine/running</property>
      <value>false</value>
    </set>
    <set>
      <property>environment/weather-scenario</property>
      <value>Fair weather</value>
    </set>
    <set>
      <property>controls/flight/elevator-trim</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/flight/elevator-trim</property>
      <value>0</value>
    </set>
    <set>
      <property>controls/flight/aileron-trim</property>
      <value>0</value>
    </set>

    <set>
      <property>controls/flight/rudder-trim</property>
      <value>0</value>
    </set>

    <set>
      <property>instrumentation/doors/crew/position-norm</property>
      <value>0</value>
    </set>

    <set>
      <property>instrumentation/doors/cargo/position-norm</property>
      <value>0</value>
    </set>
  </init>


  <step>
    <message>welcome aboard the DC-3 ! We can now start the engines !</message>
  </step>
  
   <step>
    <message>First of all, put the parking brake </message>  
      <view>
      <heading-offset-deg>0</heading-offset-deg>
      <pitch-offset-deg>-12</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>-0.05</x-offset-m>
      <y-offset-m>-0.4</y-offset-m>
      <z-offset-m>-8</z-offset-m>
      <field-of-view>53</field-of-view>
    </view>
    <error>
     <message>Click on the red button</message>
      <condition>
        <equals>
          <property>controls/gear/brake-parking</property>
          <value>0</value>
        </equals>
      </condition>
    </error>
    <exit> 
      <condition>
        <equals>
          <property>controls/gear/brake-parking</property>
          <value>1</value>
        </equals>
      </condition>
    </exit>
  </step>

<!-- Sélection réservoir principal gauche-->
  <step>
    <message>select the main Left tank(Main LH)</message>
    <view>
      <heading-offset-deg>-10</heading-offset-deg>
      <pitch-offset-deg>-77</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.3</y-offset-m>
      <z-offset-m>-8.18</z-offset-m>
      <field-of-view>45</field-of-view>
    </view>

	<error>
	<message>Turn the switch on the main LH position</message>
      <condition>
        <less-than>
          <property>controls/fuel/left-valve-pos</property>
          <value>3</value>
        </less-than>
      </condition>
    </error>
    <error>
	  <message>Turn the switch on the main LH position</message>
      <condition>
        <greater-than>
          <property>controls/fuel/left-valve-pos</property>
          <value>3</value>
        </greater-than>
      </condition>
    </error>
    <exit> 
      <condition>
		<equals>
          <property>controls/fuel/left-valve-pos</property>
          <value>3</value>
        </equals>
      </condition>
    </exit>  
  </step>
  
<!-- sélection réservoir principal droit-->
  <step>
    <message>select the main right tank(Main RH)</message>
    <view>
      <heading-offset-deg>0</heading-offset-deg>
      <pitch-offset-deg>-80</pitch-offset-deg>
      <roll-offset-deg>-5</roll-offset-deg>
      <x-offset-m>0.2</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.175</z-offset-m>
      <field-of-view>43</field-of-view>
    </view>
	<error>
	  <message>Turn the switch on the main RH position</message>
      <condition>
        <less-than>
          <property>controls/fuel/right-valve-pos</property>
          <value>2</value>
        </less-than>
      </condition>
    </error>
    <error>
	  <message>Turn the switch on the main RH position</message>
      <condition>
        <greater-than>
          <property>controls/fuel/right-valve-pos</property>
          <value>2</value>
        </greater-than>
      </condition>
    </error>
    <exit>
      <condition>
		<equals>
          <property>controls/fuel/right-valve-pos</property>
          <value>2</value>
        </equals>
      </condition>
    </exit>  
  </step>

  
<!-- battery master-->
  <step>
    <message>Switch on the master battery</message>
    <view>
      <heading-offset-deg>54</heading-offset-deg>
      <pitch-offset-deg>20</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>-0.30</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8</z-offset-m>
      <field-of-view>55.0</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/electric/battery-switch-pos</property>
          <value>1</value>
        </equals>
      </condition>
    </exit>  
  </step>

<!-- boost pump-->
  <step>
    <message>Switch on the Right Booster pump</message>
    <view>
      <heading-offset-deg>-30</heading-offset-deg>
      <pitch-offset-deg>15</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>0.1</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.13</z-offset-m>
      <field-of-view>50</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/fuel/tank[1]/boost-pump-pos</property>
          <value>1</value>
        </equals>
      </condition>
    </exit>
  </step>

 <!-- Mixture-->
  <step>
    <message>Mixture on Auto Rich</message>
    <view>
      <heading-offset-deg>0</heading-offset-deg>
      <pitch-offset-deg>-65</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>0.15</x-offset-m>
      <y-offset-m>0.3</y-offset-m>
      <z-offset-m>-7.85</z-offset-m>
      <field-of-view>55.0</field-of-view>
    </view>
    <error>
      <message>Place the mouse on the red handle and move it with the clic or the wheel or</message>
      <message>increase the mixture</message>
      <condition>
        <less-than>
          <property>controls/engines/engine[1]/mixture</property>
          <value>0.55</value>
        </less-than>
      </condition>
    </error>
    <error>
      <message>It's too much</message>
      <condition>
        <greater-than>
          <property>controls/engines/engine[1]/mixture</property>
          <value>0.75</value>
        </greater-than>
      </condition>
    </error>
    <exit>
      <condition>
        <and>
          <greater-than>
            <property>controls/engines/engine[1]/mixture</property>
            <value>0.55</value>
          </greater-than>
          <less-than>
            <property>controls/engines/engine[1]/mixture</property>
            <value>0.75</value>
          </less-than>
        </and>
      </condition>
    </exit>
  </step>

<!-- Gaz -->
  <step>
    <message>Open the throttle slightly (10%)</message>
    <view>
      <heading-offset-deg>-10</heading-offset-deg>
      <pitch-offset-deg>-85</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>0.05</x-offset-m>
      <y-offset-m>0.29</y-offset-m>
      <z-offset-m>-8.08</z-offset-m>
      <field-of-view>60.0</field-of-view>
    </view>
    <error>
      <message>Use your joystick throttle control, or PgUp to increase throttle to about 10%.</message>
      <condition>
        <less-than>
          <property>controls/engines/engine[0]/throttle</property>
          <value>0.02</value>
        </less-than>
      </condition>
    </error>
    <error>
      <message>That's a bit too much.</message>
      <condition>
        <greater-than>
          <property>controls/engines/engine[0]/throttle</property>
          <value>0.2</value>
        </greater-than>
      </condition>
    </error>
    <exit>
      <condition>
        <and>
          <greater-than>
            <property>controls/engines/engine[0]/throttle</property>
            <value>0.05</value>
          </greater-than>
          <less-than>
            <property>controls/engines/engine[0]/throttle</property>
            <value>0.15</value>
          </less-than>
        </and>
      </condition>
    </exit>
  </step>

<!-- RPM -->
  <step>
    <message>Propeller pitch between 70% and 100%</message>
    <view>
      <heading-offset-deg>-10</heading-offset-deg>
      <pitch-offset-deg>-85</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>-0.1</x-offset-m>
      <y-offset-m>0.29</y-offset-m>
      <z-offset-m>-8.08</z-offset-m>
      <field-of-view>60.0</field-of-view>
    </view>

    <error>
      <message>Increase pitch</message>
      <condition>
        <less-than>
          <property>controls/engines/engine[0]/propeller-pitch</property>
          <value>0.7</value>
        </less-than>
      </condition>
    </error>
    <exit>
      <condition>
        <and>
          <greater-than>
            <property>controls/engines/engine[0]/propeller-pitch</property>
            <value>0.70</value>
          </greater-than>
          <less-than>
            <property>controls/engines/engine[0]/propeller-pitch</property>
            <value>1.1</value>
          </less-than>
        </and>
      </condition>
    </exit>
  </step>

 <!-- Magneto droit sur both-->
  <step>
    <message>We need to switch on the right magnetos, so the switch is set to BOTH</message>
    <view>
      <heading-offset-deg>0</heading-offset-deg>
      <pitch-offset-deg>0</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>0</x-offset-m>
      <y-offset-m>0.55</y-offset-m>
      <z-offset-m>-8.1</z-offset-m>
      <field-of-view>55.0</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/engines/engine[1]/magnetos-pos</property>
          <value>3</value>
        </equals>
      </condition>
    </exit>
  </step>

  <step>
    <message>Now, we'll check no-one is about to walk into our propeller</message>
    <view>
      <heading-offset-deg>-100</heading-offset-deg>
      <pitch-offset-deg>-30</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>0.65</x-offset-m>
      <y-offset-m>0.48</y-offset-m>
      <z-offset-m>-7.95</z-offset-m>
      <field-of-view>65.0</field-of-view>
    </view>
  </step>

<!-- start droite-->
  <step>
    <message>We can start the engine, switch on the right starter</message>
    <view>
     <heading-offset-deg>-30</heading-offset-deg>
      <pitch-offset-deg>15</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>0.1</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.13</z-offset-m>
      <field-of-view>55</field-of-view>
    </view>
    <exit>
      <condition>
	    <equals>
	      <property>engines/engine[1]/running</property>
          <value>1</value>
	    </equals>
      </condition>
    </exit>
  </step>

  <step>
    <message>The right engine is running !</message>
    <view>
      <heading-offset-deg>-100</heading-offset-deg>
      <pitch-offset-deg>-30</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>0.65</x-offset-m>
      <y-offset-m>0.48</y-offset-m>
      <z-offset-m>-7.9</z-offset-m>
      <field-of-view>65.0</field-of-view>
    </view>
    <exit>
      <condition>
	    <equals>
	      <property>engines/engine[1]/running</property>
          <value>1</value>
	    </equals>
      </condition>
    </exit>
  </step>


<!-- Arrêt boost pump-->
  <step>
    <message>You can switch off the right booster pump</message>
    <view>
     <heading-offset-deg>-30</heading-offset-deg>
      <pitch-offset-deg>15</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>0.1</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.13</z-offset-m>
      <field-of-view>50</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/fuel/tank[1]/boost-pump-pos</property>
          <value>0</value>
        </equals>
      </condition>
    </exit>
  </step>
  

<!-- Moteur Gauche -->

<!-- boost pump-->
  <step>
    <message>Switch on the left Booster pump</message>
    <view>
     <heading-offset-deg>-30</heading-offset-deg>
      <pitch-offset-deg>15</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>0.1</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.13</z-offset-m>
      <field-of-view>50</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/fuel/tank[0]/boost-pump-pos</property>
          <value>1</value>
        </equals>
      </condition>
    </exit>
  </step>

 <!-- Magneto droit sur both-->
  <step>
    <message>switch on the left magnetos</message>
    <view>
      <heading-offset-deg>0</heading-offset-deg>
      <pitch-offset-deg>0</pitch-offset-deg>
      <roll-offset-deg>0</roll-offset-deg>
      <x-offset-m>0</x-offset-m>
      <y-offset-m>0.55</y-offset-m>
      <z-offset-m>-8.1</z-offset-m>
      <field-of-view>55.0</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/engines/engine[0]/magnetos-pos</property>
          <value>3</value>
        </equals>
      </condition>
    </exit>
  </step>

  <!-- Vérifications-->
  <step>
    <message>Check the propeller area</message>
    <view>
      <heading-offset-deg>95</heading-offset-deg>
      <pitch-offset-deg>-45</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.75</x-offset-m>
      <y-offset-m>0.4</y-offset-m>
      <z-offset-m>-7.9</z-offset-m>
      <field-of-view>67.0</field-of-view>
    </view>
  </step>
 
<!-- start gauche -->
  <step>
    <message>We can start the left engine, so switch on the starter</message>
    <view>
     <heading-offset-deg>-30</heading-offset-deg>
      <pitch-offset-deg>15</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>0.1</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.13</z-offset-m>
      <field-of-view>50</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>engines/engine[0]/running</property>
          <value>1</value>
        </equals>
      </condition>
    </exit>
  </step>

  <step>
    <message>The Left engine is running !</message>
    <view>
      <heading-offset-deg>95</heading-offset-deg>
      <pitch-offset-deg>-45</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.75</x-offset-m>
      <y-offset-m>0.4</y-offset-m>
      <z-offset-m>-7.9</z-offset-m>
      <field-of-view>67.0</field-of-view>
    </view>
    <exit>
      <condition>
	    <equals>
	      <property>engines/engine[0]/running</property>
          <value>1</value>
	    </equals>
      </condition>
    </exit>
  </step>
  
 <!-- Arrêt boost pump-->
  <step>
    <message>You can switch off the left booster pump</message>
    <view>
     <heading-offset-deg>-30</heading-offset-deg>
      <pitch-offset-deg>15</pitch-offset-deg>
      <roll-offset-deg>5</roll-offset-deg>
      <x-offset-m>0.1</x-offset-m>
      <y-offset-m>0.5</y-offset-m>
      <z-offset-m>-8.13</z-offset-m>
      <field-of-view>50</field-of-view>
    </view>
    <exit>
      <condition>
		<equals>
          <property>controls/fuel/tank[0]/boost-pump-pos</property>
          <value>0</value>
        </equals>
      </condition>
    </exit>
  </step>

  <end>
    <message>Great. We're now ready to taxi to the runway</message>
  </end>
</PropertyList>
