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

<!--
Checklist: Final Approach

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>Approach</title>

  <!-- De-icer Boots - OFF -->

  <!-- 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>

  <!-- Fuel Pumps 1, 2A, 3A, 4 - HIGH -->
  <!-- Carburetor Air - COLD -->
  <!-- Propellors - 2600RPM -->

  <!-- ### Master RPM Control - 2400-2600rpm -->
  <item>
    <name>Master RPM Control</name>
    <value>2600rpm</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>
      <and>
        <less-than>
          <property>controls/engines/engine[0]/propeller-pitch</property>
          <value>0.82</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[0]/propeller-pitch</property>
          <value>0.78</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[1]/propeller-pitch</property>
          <value>0.82</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[1]/propeller-pitch</property>
          <value>0.78</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[2]/propeller-pitch</property>
          <value>0.82</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[2]/propeller-pitch</property>
          <value>0.78</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[3]/propeller-pitch</property>
          <value>0.82</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[3]/propeller-pitch</property>
          <value>0.78</value>
        </greater-than>
      </and>
    </condition>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[0]/propeller-pitch</property>
      <value>0.8</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[1]/propeller-pitch</property>
      <value>0.8</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[2]/propeller-pitch</property>
      <value>0.8</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[3]/propeller-pitch</property>
      <value>0.8</value>
      <rate>0.5</rate>
    </binding>
  </item>

  <!-- Throttle - 65% -->
  <item>
    <name>Throttle</name>
    <value>0.7</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>
      <and>
        <less-than>
          <property>controls/engines/engine[0]/throttle</property>
          <value>0.72</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[0]/throttle</property>
          <value>0.68</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[1]/throttle</property>
          <value>0.72</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[1]/throttle</property>
          <value>0.68</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[2]/throttle</property>
          <value>0.72</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[2]/throttle</property>
          <value>0.68</value>
        </greater-than>
        <less-than>
          <property>controls/engines/engine[3]/throttle</property>
          <value>0.72</value>
        </less-than>
        <greater-than>
          <property>controls/engines/engine[3]/throttle</property>
          <value>0.68</value>
        </greater-than>
      </and>
    </condition>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[0]/throttle</property>
      <value>0.65</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[1]/throttle</property>
      <value>0.65</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[2]/throttle</property>
      <value>0.65</value>
      <rate>0.5</rate>
    </binding>
    <binding>
      <command>property-interpolate</command>
      <property>controls/engines/engine[3]/throttle</property>
      <value>0.65</value>
      <rate>0.5</rate>
    </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 -->

  <!-- Landing Gear - DOWN AND LOCKED -->
  <item>
    <name>Landing Gear</name>
    <value>DOWN AND LOCKED</value>
    <marker>
      <x-m>-15.1942</x-m>
      <y-m>0.0727</y-m>
      <z-m>0.3504</z-m>
      <scale>4.4876</scale>
    </marker>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value>1</value>
      </equals>
    </condition>
    <binding>
      <command>property-assign</command>
      <property>controls/gear/gear-down</property>
      <value>1</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>
