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

<!-- 
Checklist: Before Take-off

Adapted from Lockheed Super Constallation Crew Operating Manual, 1952, p96
@see http://www.avialogs.com/viewer/avialogs-documentviewer.php?id=3447

Checklist items copied from the Lake of Constance Hangar, M. Kraus.

Some items from the original checklist have been omitted because they are
not included in the current Flightgear model. These may be added as the
cockpit and flight engineer's station develops. Comments have been included
at the relevant places in the checklist.

Some additional items have been added to guide the Flightgear pilot. These
are indicated in the comments by an asterisk.
-->

<PropertyList>

  <title>Before Take-off</title>

  <!-- Run up (propellors, blowers and magnetos) - COMPLETED -->

  <!-- Trim tabs - CHECKED -->
  <item>
    <name>Trim Tabs</name>
    <value>CHECKED</value>
    <marker>
      <x-m>-15.3519</x-m>
      <y-m>-0.1384</y-m>
      <z-m>0.7793</z-m>
      <scale>12.0</scale>
    </marker>
    <condition>
      <and>
        <equals>
          <property>controls/flight/elevator-trim</property>
          <value>0</value>
        </equals>
        <equals>
          <property>controls/flight/rudder-trim</property>
          <value>0</value>
        </equals>
        <equals>
          <property>controls/flight/aileron-trim</property>
          <value>0</value>
        </equals>
      </and>
    </condition>
    <binding>
      <command>nasal</command>
      <script><![CDATA[
        Lockheed1049h.applyTrimWheels(0, 0);
        Lockheed1049h.applyTrimWheels(0, 1);
        Lockheed1049h.applyTrimWheels(0, 2);
      ]]></script>
    </binding>
  </item>

  <!-- Flaps - TAKE-OFF -->
  <item>
    <name>Flaps</name>
    <value>TAKE-OFF</value>
    <marker>
      <x-m>-15.5719</x-m>
      <y-m>0.1116</y-m>
      <z-m>0.8793</z-m>
      <scale>4.4876</scale>
    </marker>
    <condition>
      <greater-than-equals>
        <property>surface-positions/flap-pos-norm</property>
        <value>0.25</value>
      </greater-than-equals>
    </condition>
    <binding>
      <command>nasal</command>
      <script>controls.flapsDown(1);</script>
    </binding>
  </item>

  <!-- Aux Boosters - ON -->

  <!-- Propellor Controls - TAKE-OFF -->
  <item>
    <name>Master RPM Control</name>
    <value>FULL RPM</value>
    <marker>
      <x-m>-14.4818</x-m>
      <y-m>0.9818</y-m>
      <z-m>0.7793</z-m>
      <scale>4.6529</scale>
    </marker>
    <condition>
      <equals>
        <property>controls/engines/engine[0]/propeller-pitch</property>
        <value>1</value>
      </equals>
      <equals>
        <property>controls/engines/engine[1]/propeller-pitch</property>
        <value>1</value>
      </equals>
      <equals>
        <property>controls/engines/engine[2]/propeller-pitch</property>
        <value>1</value>
      </equals>
      <equals>
        <property>controls/engines/engine[3]/propeller-pitch</property>
        <value>1</value>
      </equals>
    </condition>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[0]/propeller-pitch</property>
      <value>1.0</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[1]/propeller-pitch</property>
      <value>1.0</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[2]/propeller-pitch</property>
      <value>1.0</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[3]/propeller-pitch</property>
      <value>1.0</value>
      <rate>0.5</rate>
    </binding>
  </item>

  <!-- Mixtures - AUTO RICH -->
  <!-- Auto leaning is not implemented, so set to full rich -->
  <item>
    <name>Mixtures</name>
    <value>FULL RICH</value>
    <marker>
      <x-m>-14.1140</x-m>
      <y-m>0.8570</y-m>
      <z-m>0.7752</z-m>
      <scale>4.6529</scale>
    </marker>
    <condition>
      <equals>
        <property>controls/engines/engine[0]/mixture</property>
        <value>1</value>
      </equals>
      <equals>
        <property>controls/engines/engine[1]/mixture</property>
        <value>1</value>
      </equals>
      <equals>
        <property>controls/engines/engine[2]/mixture</property>
        <value>1</value>
      </equals>
      <equals>
        <property>controls/engines/engine[3]/mixture</property>
        <value>1</value>
      </equals>
    </condition>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[0]/mixture</property>
      <value>1</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[1]/mixture</property>
      <value>1</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[2]/mixture</property>
      <value>1</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[3]/mixture</property>
      <value>1</value>
      <rate>0.5</rate>
    </binding>
  </item>

  <!-- Air conditioning - PANEL SET -->
  <!-- Fuel Pumps 1, 2A, 3A, 4 - HIGH -->
  <!-- Oil Cooler Flaps - 50% -->

  <!-- Cowl Flaps - 20% -->
  <item>
    <name>Cowl Flaps</name>
    <value>20%</value>
    <marker>
      <x-m>-14.4818</x-m>
      <y-m>0.8190</y-m>
      <z-m>0.6198</z-m>
      <scale>4.6529</scale>
    </marker>
    <condition>
      <and>
        <greater-than>
          <property>controls/engines/engine[0]/cowl-flaps-norm</property>
          <value>0.19</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[0]/cowl-flaps-norm</property>
          <value>0.21</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[1]/cowl-flaps-norm</property>
          <value>0.19</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[1]/cowl-flaps-norm</property>
          <value>0.21</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[2]/cowl-flaps-norm</property>
          <value>0.19</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[2]/cowl-flaps-norm</property>
          <value>0.21</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[3]/cowl-flaps-norm</property>
          <value>0.19</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[3]/cowl-flaps-norm</property>
          <value>0.21</value>
        </less-than>
      </and>
    </condition>
    <binding>
      <command>property-assign</command>
      <property>controls/engines/engine[0]/cowl-flaps-norm</property>
      <value>0.2</value>
    </binding>
    <binding>
      <command>property-assign</command>
      <property>controls/engines/engine[1]/cowl-flaps-norm</property>
      <value>0.2</value>
    </binding>
    <binding>
      <command>property-assign</command>
      <property>controls/engines/engine[2]/cowl-flaps-norm</property>
      <value>0.2</value>
    </binding>
    <binding>
      <command>property-assign</command>
      <property>controls/engines/engine[3]/cowl-flaps-norm</property>
      <value>0.2</value>
    </binding>
  </item>

  <!-- Controls - FREE -->
  <item>
    <name>Controls (Elevator, Aileron, Rudder)</name>
    <value>FREE</value>
  </item>

  <!-- Landing Lights* - EXTEND AND ON -->
  <item>
    <name>Landing Lights</name>
    <value>EXTEND AND ON</value>
    <marker>
      <x-m>-14.8900</x-m>
      <y-m>-0.1000</y-m>
      <z-m>1.6100</z-m>
      <scale>3.8000</scale>
    </marker>
    <condition>
      <and>
        <equals>
          <property>controls/lighting/landing-extend-left</property>
          <value>1</value>
        </equals>
        <equals>
          <property>controls/lighting/landing-extend-right</property>
          <value>1</value>
        </equals>
        <equals>
          <property>controls/lighting/landing-left</property>
          <value>1</value>
        </equals>
        <equals>
          <property>controls/lighting/landing-right</property>
          <value>1</value>
        </equals>
      </and>
    </condition>
    <binding>
      <command>property-assign</command>
      <property>controls/lighting/landing-extend-left</property>
      <value>1</value>
    </binding>
    <binding>
      <command>property-assign</command>
      <property>controls/lighting/landing-extend-right</property>
      <value>1</value>
    </binding>
    <binding>
      <command>property-assign</command>
      <property>controls/lighting/landing-left</property>
      <value>1</value>
    </binding>
    <binding>
      <command>property-assign</command>
      <property>controls/lighting/landing-right</property>
      <value>1</value>
    </binding>
  </item>

  <!-- Taxi Light* - OFF -->
  <item>
    <name>Taxi Light</name>
    <value>OFF</value>
    <marker>
      <x-m>-15.2000</x-m>
      <y-m>-0.8600</y-m>
      <z-m>0.8500</z-m>
      <scale>1.0000</scale>
    </marker>
    <condition>
      <equals>
        <property>controls/lighting/taxi</property>
        <value>0</value>
      </equals>
    </condition>
    <binding>
      <command>property-assign</command>
      <property>controls/lighting/taxi</property>
      <value>0</value>
    </binding>
  </item>

  <!-- Reverser Lock* - UNLOCKED -->
  <item>
    <name>Reverser Lock</name>
    <value>UNLOCKED</value>
    <marker>
      <x-m>-15.5900</x-m>
      <y-m>0.0100</y-m>
      <z-m>0.8800</z-m>
      <scale>3.0000</scale>
    </marker>
    <condition>
      <equals>
        <property>controls/engines/reverser_allow</property>
        <value>1</value>
      </equals>
    </condition>
    <binding>
      <command>property-assign</command>
      <property>controls/engines/reverser_allow</property>
      <value>1</value>
    </binding>
  </item>

</PropertyList>

