<PropertyList>
  <name>Before Takeoff Checks</name>
  <description>
This tutorial covers the before takeoff checklist. This involves the engine checks that are made in the run-up area just prior to taxiing to the runway and taking off.
    
For more information on the before takeoff checklist, see Section 2-11 of the FAA Airplane Flying Handbook available at http://www.faa.gov/library/manuals/aircraft/airplane_handbook/.
  </description>
  <timeofday>morning</timeofday>
  <presets>
    <airport-id>KLVK</airport-id>
    <on-ground>1</on-ground>
    <runway>12</runway>
    <altitude-ft>-9999</altitude-ft>
    <latitude-deg>37.6946</latitude-deg>
    <longitude-deg>-121.82949</longitude-deg>
    <heading-deg>80.0</heading-deg>
    <airspeed-kt>0</airspeed-kt>
    <glideslope-deg>0</glideslope-deg>
    <offset-azimuth-deg>0</offset-azimuth-deg>
    <offset-distance-nm>0</offset-distance-nm>
  </presets>
  
  <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/engines/engine/magnetos</property>
      <value>3</value>
    </set>
    <set>
      <property>/controls/engines/engine/throttle</property>
      <value>0.07</value>
    </set>
    <set>
      <property>/sim/model/start-idling</property>
      <value>1</value>
    </set>
    <set>
      <property>/controls/engines/engine/starter_cmd</property>
      <value>true</value>
    </set>
    <set>
      <property>/engines/engine/running</property>
      <value>true</value>
    </set>
    <set>
      <property>/instrumentation/adf/frequencies/selected-khz</property>
      <value>340</value>
    </set>
    <set>
      <property>/environment/weather-scenario</property>
      <value>none</value>
    </set>
    <set>
      <property>/controls/flight/elevator-trim</property>
      <value>0.17</value>
    </set>
  </init>
  
  <step>
    <message>In this lesson we'll cover the pre-takeoff checks.</message>
    <set>
      <property>/controls/electric/battery-switch</property>
      <value>true</value>
    </set>
  </step>
  
  <step>
    <set>
      <property>/controls/engines/engine/starter_cmd</property>
      <value>false</value>
    </set>
    <message>You can access the pre-takeoff checklist selecting Help->Aircraft Checklists from the menu.</message>
    <wait>10</wait>
  </step>
  
  <step>
    <message>The parking brakes are already applied, so our first check is that the flight controls are free and correct.
    </message>
  </step>

  <step>
    <message>Check that moving the yoke from left to right moves the aileron in the expected manner.</message>
    <view>
      <heading-offset-deg>115.1</heading-offset-deg>
      <pitch-offset-deg>-14.3</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.3</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.3</z-offset-m>
      <field-of-view>85.0</field-of-view>
    </view>
    <marker>
      <x-m>-0.5816</x-m>
      <y-m>-2.6725</y-m>
      <z-m>-0.0258</z-m>
      <scale>45.0000</scale>
    </marker>
  </step>

  <step>
    <message>Now, check the other aileron. We're checking that the controls aren't jammed by our seatbelts etc.
and that the aircraft has been rigged correctly.</message>
    <view>
      <heading-offset-deg>252.9</heading-offset-deg>
      <pitch-offset-deg>-14.2</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.1</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.5</z-offset-m>
      <field-of-view>85.0</field-of-view>
    </view>
    <marker>
      <x-m>-0.4283</x-m>
      <y-m>3.3275</y-m>
      <z-m>-0.1142</z-m>
      <scale>52.9167</scale>
    </marker>
  </step>

  <step>
    <message>Check the trim is in position</message>
    <view>
      <heading-offset-deg>339.2</heading-offset-deg>
      <pitch-offset-deg>-44.9</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.8717</x-m>
      <y-m>-0.0217</y-m>
      <z-m>-0.0483</z-m>
      <scale>3.5500</scale>
    </marker>
  </step>

  <step>
    <message>Now check that the mixture is set to rich - fully in.</message>
    <view>
      <heading-offset-deg>342.6</heading-offset-deg>
      <pitch-offset-deg>-40.2</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>37.2</field-of-view>
    </view>
    <marker>
      <x-m>-1.8617</x-m>
      <y-m>0.0083</y-m>
      <z-m>-0.0000</z-m>
      <scale>2.5833</scale>
    </marker>
    <error>
      <message>The mixture isn't completely in. Press m to richen the mixture to fully rich.</message>
      <condition>
        <less-than>
          <property>/controls/engines/engine/mixture</property>
          <value>0.99</value>
        </less-than>
      </condition>
    </error>
  </step>
  
  <step>
    <message>Set the throttle to 1700 rpm for the engine checks.</message>
    <view>
      <heading-offset-deg>24.4</heading-offset-deg>
      <pitch-offset-deg>-28.1</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>67.4</field-of-view>
    </view>
    <marker>
      <x-m>-1.7942</x-m>
      <y-m>-0.4617</y-m>
      <z-m>0.2200</z-m>
      <scale>2.5833</scale>
    </marker>
    <error>
      <message>That's a bit high. Reduce throttle to 1700 rpm with PgDn, or your joystick throttle control.</message>
      <condition>
        <greater-than>
          <property>/engines/engine/rpm</property>
          <value>1800.0</value>
        </greater-than>
      </condition>
    </error>
    <error>
      <message>That's too low. Increase throttle to 1700 rpm with PgUp, or your joystick throttle control.</message>
      <condition>
        <less-than>
          <property>/engines/engine/rpm</property>
          <value>1600.0</value>
        </less-than>
      </condition>
    </error>
    <exit>
      <condition>
        <and>
          <greater-than>
            <property>/engines/engine/rpm</property>
            <value>1650</value>
          </greater-than>
          <less-than>
            <property>/engines/engine/rpm</property>
            <value>1750</value>
          </less-than>
        </and>
      </condition>
    </exit>
  </step>
  
  <step>
    <message>Check that the engine instruments are in the green.</message>
    <view>
      <heading-offset-deg>358.9</heading-offset-deg>
      <pitch-offset-deg>-28.7</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>45.4</field-of-view>
    </view>
    <marker>
      <x-m>-1.9275</x-m>
      <y-m>-0.1983</y-m>
      <z-m>0.1533</z-m>
      <scale>4.9167</scale>
    </marker>
  </step>

  <step>
    <message>Check that the electrical system is also fine.</message>
    <view>
      <heading-offset-deg>1.3</heading-offset-deg>
      <pitch-offset-deg>-33.9</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.9125</x-m>
      <y-m>-0.2316</y-m>
      <z-m>0.0633</z-m>
      <scale>2.7500</scale>
    </marker>
  </step>

  <step>
    <message>Now we need to check that the magnetos are working correctly.</message>
    <view>
      <heading-offset-deg>8.6</heading-offset-deg>
      <pitch-offset-deg>-34.6</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.9175</x-m>
      <y-m>-0.2975</y-m>
      <z-m>0.0567</z-m>
      <scale>1.9167</scale>
    </marker>
  </step>

  <step>
    <message>Drag the key to the left twice, to switch to the right magneto.
      There should be a small drop in the tachometer.</message>
    <view>
      <heading-offset-deg>7.9</heading-offset-deg>
      <pitch-offset-deg>-34.8</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.9159</x-m>
      <y-m>-0.1041</y-m>
      <z-m>0.1467</z-m>
      <scale>3.9167</scale>
    </marker>

    <error>
      <message>Drag the key to the left twice so the key is set to RIGHT.</message>
      <condition>
        <not-equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>1</value>
        </not-equals>
      </condition>
    </error>
    <exit>
      <condition>
        <equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>1</value>
        </equals>
      </condition>
    </exit>
  </step>

  <step>
    <message>Drag the key to the right twice, to switch back to both magnetos.
      The tachometer should recover back to 1700rpm.</message>
    <view>
      <heading-offset-deg>7.9</heading-offset-deg>
      <pitch-offset-deg>-34.8</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.9159</x-m>
      <y-m>-0.1041</y-m>
      <z-m>0.1467</z-m>
      <scale>3.9167</scale>
    </marker>

    <error>
      <message>Click the left hotspot twice, so the key is set to BOTH.</message>
      <condition>
        <not-equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>3</value>
        </not-equals>
      </condition>
    </error>
    <exit>
      <condition>
        <equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>3</value>
        </equals>
      </condition>
    </exit>
  </step>

  <step>
    <message>Now we'll check the left magneto. Drag the key to the left once, to switch to the left magneto.
      Again, there should be a small drop in the tachometer.</message>
    <view>
      <heading-offset-deg>7.9</heading-offset-deg>
      <pitch-offset-deg>-34.8</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.9159</x-m>
      <y-m>-0.1041</y-m>
      <z-m>0.1467</z-m>
      <scale>3.9167</scale>
    </marker>
    
    <error>
      <message>Drag the key to the left once so the key is set to LEFT.</message>
      <condition>
        <not-equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>2</value>
        </not-equals>
      </condition>
    </error>
    <exit>
      <condition>
        <equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>2</value>
        </equals>
      </condition>
    </exit>
  </step>
  
  <step>
    <message>Drag the key to the right twice, to switch back to both magnetos.
      The tachometer should recover back to 1700rpm.</message>
    <view>
      <heading-offset-deg>7.9</heading-offset-deg>
      <pitch-offset-deg>-34.8</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>43.9</field-of-view>
    </view>
    <marker>
      <x-m>-1.9159</x-m>
      <y-m>-0.1041</y-m>
      <z-m>0.1467</z-m>
      <scale>3.9167</scale>
    </marker>

    <error>
      <message>Click the left hotspot twice, so the key is set to BOTH.</message>
      <condition>
        <not-equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>3</value>
        </not-equals>
      </condition>
    </error>
    <exit>
      <condition>
        <equals>
          <property>/controls/engines/engine/magnetos</property>
          <value>3</value>
        </equals>
      </condition>
    </exit>
  </step>

<!-- We should now check for carb heat, but we don't have that modeled yet -->

  <step>
    <message>Set the throttle back to between 800 and 1000 rpm.</message>
    <view>
      <heading-offset-deg>25.1</heading-offset-deg>
      <pitch-offset-deg>-25.7</pitch-offset-deg>
      <roll-offset-deg>0.0</roll-offset-deg>
      <x-offset-m>-0.2</x-offset-m>
      <y-offset-m>0.6</y-offset-m>
      <z-offset-m>-1.2</z-offset-m>
      <field-of-view>69.7</field-of-view>
    </view>
    <marker>
      <x-m>-1.8459</x-m>
      <y-m>-0.4491</y-m>
      <z-m>0.2100</z-m>
      <scale>3.9500</scale>
    </marker>

    <error>
      <message>That's a bit high. Reduce throttle slightly with PgDn, or your joystick throttle control.</message>
      <condition>
        <greater-than>
          <property>/engines/engine/rpm</property>
          <value>1000.0</value>
        </greater-than>
      </condition>
    </error>
    <error>
      <message>That's too low. Increase throttle slightly with PgUp, or your joystick throttle control.</message>
      <condition>
        <less-than>
          <property>/engines/engine/rpm</property>
          <value>800.0</value>
        </less-than>
      </condition>
    </error>
    <exit>
      <condition>
        <and>
          <greater-than>
            <property>/engines/engine/rpm</property>
            <value>800</value>
          </greater-than>
          <less-than>
            <property>/engines/engine/rpm</property>
            <value>1000</value>
          </less-than>
        </and>
      </condition>
    </exit>
  </step>
  <end>
    <message>Our pre-takeoff checks are now complete. We're ready to fly.</message>
  </end>
</PropertyList>
