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

<PropertyList>

    <name>Preflight</name>

    <description>
Before the flight you have to assure that your aircraft is in a good condition

This tutorial will guide you through the Preflight inspection
    </description>
	
    <nasal>
        <script>
            c172p.repair_damage();
            electrical.reset_battery_and_circuit_breakers();
            c172p.click("engine-repair", 6.0);
            c172p.dialog_battery_reload();
            setprop("/engines/active-engine/oil-level", sim/model/c172p/engine_flag_0 ? 7 : 8);
            setprop("/engines/active-engine/carb_ice", 0.0);
            setprop("/fdm/jsbsim/engine/damage-level", 0.0);
        </script>
    </nasal>

    <audio-dir>Tutorials/preflight</audio-dir>
    <timeofday>morning</timeofday>
    <presets>
        <airport-id></airport-id>
        <on-ground>1</on-ground>
        <altitude-ft>-9999</altitude-ft>
        <latitude-deg>19.71731272</latitude-deg>
        <longitude-deg>-155.0597483</longitude-deg>
        <heading-deg>125</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>
        <airport-requested>true</airport-requested>
        <runway-requested>false</runway-requested>
        <parking-requested>false</parking-requested>
    </presets>

    <step>
        <set>
            <property>/engines/active-engine/complex-engine-procedures</property>
            <value>true</value>
        </set>
        <set>
            <property>/engines/active-engine/running</property>
            <value>false</value>
        </set>
        <set>
            <property>/instrumentation/adf/frequencies/selected-khz</property>
            <value>332</value> <!-- PAHOA NDB -->
        </set>
        <set>
            <property>/environment/weather-scenario</property>
            <value>Fair weather</value>
        </set>
        <set>
            <property>/controls/flight/elevator-trim</property>
            <value>0.17</value>
        </set>
        <set>
            <property>/controls/engines/engine/primer</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/engines/engine/primer-lever</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/switches/master-alt</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/switches/master-bat</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/switches/magnetos</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/switches/master-avionics</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/lighting/taxi-light</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/lighting/landing-lights</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/anti-ice/pitot-heat</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/lighting/nav-lights</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/lighting/beacon</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/lighting/strobe</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/anti-ice/engine/carb-heat</property>
            <value>false</value>
        </set>
        <set>
            <property>/controls/lighting/instruments-norm</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/engines/engine/throttle</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/engines/current-engine/throttle</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/engines/engine/mixture</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/flight/flaps</property>
            <value>0</value>
        </set>
        <set>
            <property>/fdm/jsbsim/fuel/tank</property>
            <value>0</value>
        </set>
        <set>
            <property>/consumables/fuel/tank[0]/selected</property>
            <value>true</value>
        </set>
        <set>
            <property>/consumables/fuel/tank[1]/selected</property>
            <value>true</value>
        </set>
        <set>
            <property>/controls/gear/brake-parking</property>
            <value>1</value>
        </set>
        <set>
            <property>/sim/model/hide-yoke</property>
            <value>false</value>
        </set>
        <set>
            <property>/sim/model/door-positions/baggageDoor/position-norm</property>
            <value>0</value>
        </set>
        <set>
            <property>/sim/model/door-positions/leftDoor/position-norm</property>
            <value>0</value>
        </set>
        <set>
            <property>/sim/model/door-positions/rightDoor/position-norm</property>
            <value>0</value>
        </set>
        <set>
            <property>/sim/model/c172p/securing/chock</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/securing/tiedownL-visible</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/securing/tiedownR-visible</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/securing/tiedownT-visible</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/securing/pitot-cover-visible</property>
            <value>true</value>
        </set>
        <set>
            <property>sim/model/c172p/engine_flag_0</property>
            <value>1</value>
        </set>
        <set>
            <property>sim/model/c172p/engine_flag_1</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/engines/active-engine</property>
            <value>0</value>
        </set>
        <set>
            <property>sim/model/c172p/bushkit_flag_0</property>
            <value>1</value>
        </set>
        <set>
            <property>sim/model/c172p/bushkit_flag_1</property>
            <value>0</value>
        </set>
        <set>
            <property>sim/model/c172p/bushkit_flag_2</property>
            <value>0</value>
        </set>
        <set>
            <property>sim/model/c172p/bushkit_flag_3</property>
            <value>0</value>
        </set>
        <set>
            <property>sim/model/c172p/bushkit_flag_4</property>
            <value>0</value>
        </set>
        <set>
            <property>fdm/jsbsim/bushkit</property>
            <value>0</value>
        </set>
        <set>
            <property>/controls/engines/current-engine/throttle</property>
            <value>0</value>
        </set>
        <set>
            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/cockpit/control-lock-visible</property>
            <value>true</value>
        </set>
        <set>
            <property>/sim/model/c172p/control-surfaces/elevator-checked</property>
            <value>false</value>
        </set>
        <set>
            <property>/sim/model/c172p/control-surfaces/left-aileron-checked</property>
            <value>false</value>
        </set>
        <set>
            <property>/sim/model/c172p/control-surfaces/right-aileron-checked</property>
            <value>false</value>
        </set>
        <set>
            <property>/sim/model/c172p/control-surfaces/rudder-checked</property>
            <value>false</value>
        </set>
        <message>Welcome to Hilo Airport. In this lesson we'll check the condition of our aircraft.</message>
        <view>
            <heading-offset-deg>0.0</heading-offset-deg>
            <pitch-offset-deg>-12</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.21</x-offset-m>
            <y-offset-m>0.19</y-offset-m>
            <field-of-view>73.6</field-of-view>
        </view>
        <wait>10</wait>
    </step>

    <step>
        <message>First we'll check the cockpit and after that we will walk around the aircraft.</message>
        <wait>10</wait>
    </step>

    <step>
        <message>Verify that the Pilot Operating Handbook is available in the cockpit.</message>
        <view>
            <heading-offset-deg>8.5</heading-offset-deg>
            <pitch-offset-deg>-43.3</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.2</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>0.4</z-offset-m>
            <field-of-view>82.2</field-of-view>
        </view>
        <marker>
            <x-m>-0.3066</x-m>
            <y-m>-0.4207</y-m>
            <z-m>-0.4769</z-m>
            <scale>9.0000</scale>
        </marker>
        <wait>7</wait>
    </step>

    <step>
        <message>Remove the control lock if it is present.</message>
        <view>
            <heading-offset-deg>36.4</heading-offset-deg>
            <pitch-offset-deg>-44.2</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.0</x-offset-m>
            <y-offset-m>0.3</y-offset-m>
            <z-offset-m>0.1</z-offset-m>
            <field-of-view>49.2</field-of-view>
        </view>
        <marker>
            <x-m>-0.2140</x-m>
            <y-m>-0.2240</y-m>
            <z-m>0.0000</z-m>
            <scale>3.0000</scale>
        </marker>
        <error>
            <message>If there is a control lock you need to remove it so that you can move the yoke!</message>
            <condition>
                <and>
                    <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                    <property>/sim/model/c172p/cockpit/control-lock-visible</property>
                </and>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                    <property>/sim/model/c172p/cockpit/control-lock-visible</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>The Parking brake has to be set (lever points down).</message>
        <view>
            <heading-offset-deg>1.3</heading-offset-deg>
            <pitch-offset-deg>-41.9</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.2</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>0.4</z-offset-m>
            <field-of-view>50.1</field-of-view>
        </view>
        <marker>
            <x-m>-0.3092</x-m>
            <y-m>-0.1992</y-m>
            <z-m>-0.3284</z-m>
            <scale>3.4667</scale>
        </marker>
        <error>
            <message>Set the parking brake.</message>
            <condition>
                <not>
                    <property>sim/model/c172p/brake-parking</property>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <property>sim/model/c172p/brake-parking</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>The magneto switch (ignition) must be off.</message>
        <view>
            <heading-offset-deg>9.8</heading-offset-deg>
            <pitch-offset-deg>-28.4</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.3</x-offset-m>
            <y-offset-m>-0.1</y-offset-m>
            <z-offset-m>0.2</z-offset-m>
            <field-of-view>48.4</field-of-view>
        </view>
        <marker>
            <x-m>-0.2000</x-m>
            <y-m>-0.3471</y-m>
            <z-m>-0.1926</z-m>
            <scale>1.0992</scale>
        </marker>
        <error>
            <message>Switch off the ignition.</message>
            <condition>
                <greater-than>
                    <property>/controls/switches/magnetos</property>
                    <value>0</value>
                </greater-than>
            </condition>
        </error>
        <exit>
            <condition>
                <equals>
                    <property>/controls/switches/magnetos</property>
                    <value>0</value>
                </equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>The Avionics power switch must be off, too.</message>
        <view>
            <heading-offset-deg>4.9</heading-offset-deg>
            <pitch-offset-deg>-28.1</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.3</x-offset-m>
            <y-offset-m>-0.1</y-offset-m>
            <z-offset-m>0.2</z-offset-m>
            <field-of-view>48.4</field-of-view>
        </view>
        <marker>
            <x-m>-0.3000</x-m>
            <y-m>-0.3231</y-m>
            <z-m>-0.2198</z-m>
            <scale>1.0000</scale>
        </marker>
        <error>
            <message>To prevent the avionics from getting damaged during startup, switch off the avionics.</message>
            <condition>
                <property>/controls/switches/master-avionics</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>/controls/switches/master-avionics</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Switch the battery on.</message>
        <view>
            <heading-offset-deg>9.2</heading-offset-deg>
            <pitch-offset-deg>-24.3</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.4</x-offset-m>
            <y-offset-m>-0.1</y-offset-m>
            <z-offset-m>0.2</z-offset-m>
            <field-of-view>48.4</field-of-view>
        </view>

        <marker>
            <x-m>-0.3124</x-m>
            <y-m>-0.4083</y-m>
            <z-m>-0.1917</z-m>
            <scale>2.0909</scale>
        </marker>
        <error>
            <message>We now want to check the fuel level, so you have to switch the battery on.</message>
            <condition>
                <not>
                    <property>/controls/switches/master-bat</property>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <property>/controls/switches/master-bat</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>Check the fuel level, to see whether there is enough fuel available for your planned flight.</message>
        <view>
            <heading-offset-deg>8.8</heading-offset-deg>
            <pitch-offset-deg>-8.3</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.3</x-offset-m>
            <y-offset-m>0.0</y-offset-m>
            <z-offset-m>0.2</z-offset-m>
            <field-of-view>48.4</field-of-view>
        </view>

        <marker>
            <x-m>-0.3008</x-m>
            <y-m>-0.3934</y-m>
            <z-m>0.0190</z-m>
            <scale>2.7355</scale>
        </marker>
        <wait>10</wait>
    </step>

    <step>
        <message>Switch the battery off again.</message>
        <view>
            <heading-offset-deg>9.2</heading-offset-deg>
            <pitch-offset-deg>-24.3</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.4</x-offset-m>
            <y-offset-m>-0.1</y-offset-m>
            <z-offset-m>0.2</z-offset-m>
            <field-of-view>48.4</field-of-view>
        </view>

        <marker>
            <x-m>-0.3124</x-m>
            <y-m>-0.4083</y-m>
            <z-m>-0.1917</z-m>
            <scale>2.0909</scale>
        </marker>
        <error>
            <message>To save energy, switch off the battery.</message>
            <condition>
                <property>/controls/switches/master-bat</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>/controls/switches/master-bat</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>The Fuel Selector Valve has to be set to both.</message>
        <view>
            <heading-offset-deg>325.1</heading-offset-deg>
            <pitch-offset-deg>-63.9</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.2</x-offset-m>
            <y-offset-m>-0.0</y-offset-m>
            <z-offset-m>0.1</z-offset-m>
            <field-of-view>48.4</field-of-view>
        </view>
        <marker>
            <x-m>-0.2383</x-m>
            <y-m>-0.0017</y-m>
            <z-m>-0.6467</z-m>
            <scale>7.4667</scale>
        </marker>
        <error>
            <message>Select both fuel tanks (forward position).</message>
            <condition>
                <not>
                    <and>
                        <property>/consumables/fuel/tank[0]/selected</property>
                        <property>/consumables/fuel/tank[1]/selected</property>
                    </and>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <and>
                    <property>/consumables/fuel/tank[0]/selected</property>
                    <property>/consumables/fuel/tank[1]/selected</property>
                </and>
            </condition>
        </exit>
    </step>

    <step>
        <message>We're finished with checking the cockpit. Now let's step out and inspect the exterior.</message>
        <view>
            <heading-offset-deg>335.6</heading-offset-deg>
            <pitch-offset-deg>-21.1</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.3</x-offset-m>
            <y-offset-m>0.3</y-offset-m>
            <z-offset-m>0.4</z-offset-m>
            <field-of-view>105.1</field-of-view>
        </view>
        <wait>7</wait>
    </step>

    <step>
        <message>Open the door.</message>
        <view>
            <heading-offset-deg>59.4</heading-offset-deg>
            <pitch-offset-deg>-49.2</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.1</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>0.2</z-offset-m>
            <field-of-view>67.4</field-of-view>
        </view>
        <marker>
            <x-m>-0.0201</x-m>
            <y-m>-0.4496</y-m>
            <z-m>-0.2327</z-m>
            <scale>2.3427</scale>
        </marker>
        <error>
            <message>Open the door!</message>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.8</value>
                </less-than>
            </condition>
        </error>
        <exit>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.8</value>
                </greater-than>
            </condition>
        </exit>
    </step>

    <step>
        <message>Close the door.</message>
        <view>
            <heading-offset-deg>328.8</heading-offset-deg>
            <pitch-offset-deg>-20.9</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-1.3</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>1.1</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <marker>
            <x-m>0.11517</x-m>
            <y-m>-0.82538</y-m>
            <z-m>-0.11231</z-m>
            <scale>5.3427</scale>
        </marker>
        <error>
            <message>Close the door!</message>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.4</value>
                </greater-than>
            </condition>
        </error>
        <exit>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.4</value>
                </less-than>
            </condition>
        </exit>
    </step>

    <step>
        <message>Baggage door: Closed and locked.</message>
        <view>
            <heading-offset-deg>283.9</heading-offset-deg>
            <pitch-offset-deg>-13.4</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-2.2</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>2.3</z-offset-m>
            <field-of-view>72.0</field-of-view>
        </view>
        <error>
            <message>Close the baggage door!</message>
            <condition>
                <not-equals>
                    <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                    <value>0.0</value>
                </not-equals>
            </condition>
        </error>
        <exit>
            <condition>
                <equals>
                    <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                    <value>0.0</value>
                </equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>Empennage: Not damaged. Beacon light ok. Check elevator for freedom of movement by clicking on it.</message>
        <view>
            <heading-offset-deg>325.1</heading-offset-deg>
            <pitch-offset-deg>-0.7</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-2.4</x-offset-m>
            <y-offset-m>0.4</y-offset-m>
            <z-offset-m>8.4</z-offset-m>
            <field-of-view>61.0</field-of-view>
        </view>
        <error>
            <message>Check the elevator by clicking on it!</message>
            <condition>
                <not>
                    <property>/sim/model/c172p/control-surfaces/elevator-checked</property>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <property>/sim/model/c172p/control-surfaces/elevator-checked</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>Rudder: check for freedom of movement by clicking on it.</message>
        <view>
            <heading-offset-deg>325.1</heading-offset-deg>
            <pitch-offset-deg>-0.7</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-2.4</x-offset-m>
            <y-offset-m>0.4</y-offset-m>
            <z-offset-m>8.4</z-offset-m>
            <field-of-view>61.0</field-of-view>
        </view>
        <exit>
            <condition>
                <property>/sim/model/c172p/control-surfaces/rudder-checked</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>Remove the rear tie-down.</message>
        <view>
            <heading-offset-deg>323.3</heading-offset-deg>
            <pitch-offset-deg>0.5</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-1.0</x-offset-m>
            <y-offset-m>-0.6</y-offset-m>
            <z-offset-m>6.0</z-offset-m>
            <field-of-view>53.5</field-of-view>
        </view>
        <marker>
            <x-m>4.9132</x-m>
            <y-m>-0.1835</y-m>
            <z-m>-0.7075</z-m>
            <scale>3.0000</scale>
        </marker>
        <error>
            <message>You have to remove the tie-down, or you can't fly away!</message>
            <condition>
                <property>sim/model/c172p/securing/tiedownT-visible</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>sim/model/c172p/securing/tiedownT-visible</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Right aileron: check for freedom of movement by clicking on it.</message>
        <view>
            <heading-offset-deg>80.0</heading-offset-deg>
            <pitch-offset-deg>11.4</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>5.9</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>1.1</z-offset-m>
            <field-of-view>55.3</field-of-view>
        </view>
        <exit>
            <condition>
                <property>/sim/model/c172p/control-surfaces/right-aileron-checked</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>Right wing: Not damaged. Strobe and red nav light ok. Wingtip ok.</message>
        <view>
            <heading-offset-deg>126.3</heading-offset-deg>
            <pitch-offset-deg>-5.9</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>6.9</x-offset-m>
            <y-offset-m>0.9</y-offset-m>
            <z-offset-m>-1.2</z-offset-m>
            <field-of-view>55.3</field-of-view>
        </view>
        <wait>7</wait>
    </step>

     <step>
        <message>Remove the right tie-down.</message>
        <view>
            <heading-offset-deg>220.0</heading-offset-deg>
            <pitch-offset-deg>-13.2</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>1.7</x-offset-m>
            <y-offset-m>0.4</y-offset-m>
            <z-offset-m>-0.8</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <marker>
            <x-m>0.0000</x-m>
            <y-m>2.1893</y-m>
            <z-m>0.3661</z-m>
            <scale>2.1405</scale>
        </marker>
        <error>
            <message>You have to remove the tie-down, or you can't fly away!</message>
            <condition>
                <property>sim/model/c172p/securing/tiedownR-visible</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>sim/model/c172p/securing/tiedownR-visible</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Right main wheel: Tire pressure ok. No leaking brake fluid.</message>
        <view>
            <heading-offset-deg>43.8</heading-offset-deg>
            <pitch-offset-deg>-37.8</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>2.2</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>1.6</z-offset-m>
            <field-of-view>72.0</field-of-view>
        </view>
        <wait>7</wait>
    </step>

    <step>
        <message>You have to check if the fuel is contaminated with water. Take a fuel sample.</message>
        <view>
            <heading-offset-deg>0.0</heading-offset-deg>
            <pitch-offset-deg>45.0</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>0.77</x-offset-m>
            <y-offset-m>-0.09</y-offset-m>
            <z-offset-m>0.94</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <nasal>
            <script>fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-right-fuel-sample-dialog"}));</script>
        </nasal>
        <error>
            <message>To prevent the engine from failing the fuel must not contain any water. You have to take a sample of the fuel.</message>
            <condition>
                <not>
                    <property>/consumables/fuel/tank[1]/fuel-sample-taken</property>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <property>/consumables/fuel/tank[1]/fuel-sample-taken</property>
            </condition>
        </exit>
    </step>

     <step>
        <message>If the sample is light blue, the fuel isn't contaminated and you can return it to the tank. If it's transparent, it's contaminated: You have to discard it.</message>
        <wait>10</wait>
        <error>
            <message>There's still water in the fuel. Discard the sample and take a new one.</message>
            <condition>
                <greater-than>
                    <property>/consumables/fuel/tank[1]/water-contamination</property>
                    <value>0.0</value>
                </greater-than>
            </condition>
        </error>
        <exit>
            <condition>
                <equals>
                    <property>/consumables/fuel/tank[1]/water-contamination</property>
                    <value>0.0</value>
                </equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>The fuel is light blue. You can return the sample to the tank.</message>
        <error>
            <message>Return the sample to the tank!</message>
            <condition>
                <property>/consumables/fuel/tank[1]/fuel-sample-taken</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>/consumables/fuel/tank[1]/fuel-sample-taken</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Check the oil level.</message>
        <marker>
            <x-m>-0.87</x-m>
            <y-m>0.31</y-m>
            <z-m>0.155</z-m>
            <scale>4.9421</scale>
        </marker>
        <view>
            <heading-offset-deg>110.7</heading-offset-deg>
            <pitch-offset-deg>-19.6</pitch-offset-deg>
            <roll-offset-deg>0.1</roll-offset-deg>
            <x-offset-m>1.4</x-offset-m>
            <y-offset-m>0.5</y-offset-m>
            <z-offset-m>-1.2</z-offset-m>
            <field-of-view>79.6</field-of-view>
        </view>
        <nasal>
            <script>fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-right-fuel-sample-dialog"}));</script>
        </nasal>
        <error>
            <message>The oil level is too low. Refill some oil, or you will risk an engine damage!</message>
            <condition>
                <less-than-equals>
                    <property>/engines/active-engine/oil-level</property>
                    <value>6.0</value>
                </less-than-equals>
            </condition>
        </error>
        <exit>
            <condition>
                <equals>
                    <property>sim/model/door-positions/oilDoor/position-norm</property>
                    <value>1.0</value>
                </equals>
                <equals>
                    <property>sim/model/show-dip-stick</property>
                    <value>1.0</value>
                </equals>
                <greater-than>
                    <property>/engines/active-engine/oil-level</property>
                    <value>6.0</value>
                </greater-than>
            </condition>
        </exit>
    </step>

    <step>
        <message>The oil level is good. Close the oil door.</message>
        <marker>
            <x-m>-0.87</x-m>
            <y-m>0.31</y-m>
            <z-m>0.155</z-m>
            <scale>4.9421</scale>
        </marker>
        <exit>
            <condition>
                <equals>
                    <property>sim/model/door-positions/oilDoor/position-norm</property>
                    <value>0.0</value>
                </equals>
                <equals>
                    <property>sim/model/show-dip-stick</property>
                    <value>0.0</value>
                </equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>Remove the cowl plugs.</message>
        <view>
            <heading-offset-deg>220.0</heading-offset-deg>
            <pitch-offset-deg>-21.5</pitch-offset-deg>
            <roll-offset-deg>0.1</roll-offset-deg>
            <x-offset-m>-1.3</x-offset-m>
            <y-offset-m>0.3</y-offset-m>
            <z-offset-m>-3.0</z-offset-m>
            <field-of-view>77.0</field-of-view>
        </view>
        <marker>
            <x-m>-1.7</x-m>
            <y-m>0.0</y-m>
            <z-m>-0.0519</z-m>
            <scale>30.0</scale>
        </marker>
        <error>
            <message>You must remove the cowl plugs.</message>
            <condition>
                <property>sim/model/c172p/securing/cowl-plugs-visible</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>sim/model/c172p/securing/cowl-plugs-visible</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Propeller/Spinner: Not damaged, securely mounted. Air intake free.</message>
        <view>
            <heading-offset-deg>220.0</heading-offset-deg>
            <pitch-offset-deg>-21.5</pitch-offset-deg>
            <roll-offset-deg>0.1</roll-offset-deg>
            <x-offset-m>-1.3</x-offset-m>
            <y-offset-m>0.3</y-offset-m>
            <z-offset-m>-3.0</z-offset-m>
            <field-of-view>77.0</field-of-view>
        </view>
        <nasal>
            <script>fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-oil-dialog-160"}));</script>
        </nasal>
        <wait>10</wait>
    </step>

    <step>
        <message>Nose wheel: Tire pressure ok. Shock absorber alright. Strut not damaged.</message>
        <view>
            <heading-offset-deg>229.8</heading-offset-deg>
            <pitch-offset-deg>-15.4</pitch-offset-deg>
            <roll-offset-deg>0.1</roll-offset-deg>
            <x-offset-m>-1.3</x-offset-m>
            <y-offset-m>-0.5</y-offset-m>
            <z-offset-m>-2.1</z-offset-m>
            <field-of-view>77.0</field-of-view>
        </view>
        <wait>10</wait>
    </step>

    <step>
        <message>Remove the wheel chocks.</message>
        <view>
            <heading-offset-deg>248.6</heading-offset-deg>
            <pitch-offset-deg>-25.1</pitch-offset-deg>
            <roll-offset-deg>0.1</roll-offset-deg>
            <x-offset-m>-1.3</x-offset-m>
            <y-offset-m>-0.5</y-offset-m>
            <z-offset-m>-1.5</z-offset-m>
            <field-of-view>77.0</field-of-view>
        </view>
        <marker>
            <x-m>-1.3199</x-m>
            <y-m>-0.3240</y-m>
            <z-m>-1.0273</z-m>
            <scale>5.3471</scale>
        </marker>
        <error>
            <message>You must remove the wheel chocks before the flight!</message>
            <condition>
                <property>sim/model/c172p/securing/chock</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>sim/model/c172p/securing/chock</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>You have to check if the fuel is contaminated with water. Take a fuel sample.</message>
        <view>
            <heading-offset-deg>0.0</heading-offset-deg>
            <pitch-offset-deg>45.0</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.77</x-offset-m>
            <y-offset-m>-0.09</y-offset-m>
            <z-offset-m>0.94</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <nasal>
            <script>fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-left-fuel-sample-dialog"}));</script>
        </nasal>
        <error>
            <message>To prevent the engine from failing the fuel must not contain any water. You have to take a sample of the fuel.</message>
            <condition>
                <not>
                    <property>/consumables/fuel/tank[0]/fuel-sample-taken</property>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <property>/consumables/fuel/tank[0]/fuel-sample-taken</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>If the sample is light blue, the fuel isn't contaminated and you can return it to the tank. If it's transparent, it's contaminated: You have to discard it.</message>
        <wait>10</wait>
        <error>
            <message>There's still water in the fuel. Discard the sample and take a new one.</message>
            <condition>
                <greater-than>
                    <property>/consumables/fuel/tank[0]/water-contamination</property>
                    <value>0.0</value>
                </greater-than>
            </condition>
        </error>
        <exit>
            <condition>
                <equals>
                    <property>/consumables/fuel/tank[0]/water-contamination</property>
                    <value>0.0</value>
                </equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>The fuel is light blue. You can return the sample to the tank.</message>
        <error>
            <message>Return the sample to the tank!</message>
            <condition>
                <property>/consumables/fuel/tank[0]/fuel-sample-taken</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>/consumables/fuel/tank[0]/fuel-sample-taken</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Left main wheel: Tire pressure ok. No leaking brake fluid.</message>
        <view>
            <heading-offset-deg>316.2</heading-offset-deg>
            <pitch-offset-deg>-37.8</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-2.2</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>1.6</z-offset-m>
            <field-of-view>72.0</field-of-view>
        </view>
        <wait>7</wait>
    </step>

    <step>
        <message>Remove the pitot tube cover.</message>
        <view>
            <heading-offset-deg>140.0</heading-offset-deg>
            <pitch-offset-deg>3.9</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-1.0</x-offset-m>
            <y-offset-m>0.4</y-offset-m>
            <z-offset-m>-1.0</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <marker>
            <x-m>-0.2000</x-m>
            <y-m>-1.5190</y-m>
            <z-m>0.3900</z-m>
            <scale>3.1983</scale>
        </marker>
        <error>
            <message>To enable the Airspeed Indicator to show something, you have to remove the pitot tube cover.</message>
            <condition>
                <property>sim/model/c172p/securing/pitot-cover-visible</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>sim/model/c172p/securing/pitot-cover-visible</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Remove the left tie-down.</message>
        <view>
            <heading-offset-deg>140.0</heading-offset-deg>
            <pitch-offset-deg>-13.2</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-1.7</x-offset-m>
            <y-offset-m>0.4</y-offset-m>
            <z-offset-m>-0.8</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <marker>
            <x-m>0.0000</x-m>
            <y-m>-2.2000</y-m>
            <z-m>0.3504</z-m>
            <scale>4.2066</scale>
        </marker>
        <nasal>
            <script>fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-left-fuel-sample-dialog"}));</script>
        </nasal>
        <error>
            <message>You have to remove the tie-down, or you can't fly away!</message>
            <condition>
                <property>sim/model/c172p/securing/tiedownL-visible</property>
            </condition>
        </error>
        <exit>
            <condition>
                <not>
                    <property>sim/model/c172p/securing/tiedownL-visible</property>
                </not>
            </condition>
        </exit>
    </step>

    <step>
        <message>Landing lights are ok.</message>
        <view>
            <heading-offset-deg>140.0</heading-offset-deg>
            <pitch-offset-deg>-13.2</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-2.4</x-offset-m>
            <y-offset-m>0.4</y-offset-m>
            <z-offset-m>-0.8</z-offset-m>
            <field-of-view>85.0</field-of-view>
        </view>
        <wait>5</wait>
    </step>

    <step>
        <message>Left wing: Not damaged. Strobe and red nav light ok. Wingtip ok.</message>
        <view>
            <heading-offset-deg>233.7</heading-offset-deg>
            <pitch-offset-deg>-5.9</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-6.9</x-offset-m>
            <y-offset-m>0.9</y-offset-m>
            <z-offset-m>-1.2</z-offset-m>
            <field-of-view>55.3</field-of-view>
        </view>
        <wait>7</wait>
    </step>

    <step>
        <message>Left aileron: check for freedom of movement by clicking on it.</message>
        <view>
            <heading-offset-deg>280.0</heading-offset-deg>
            <pitch-offset-deg>11.4</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-5.9</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>1.1</z-offset-m>
            <field-of-view>55.3</field-of-view>
        </view>
        <exit>
            <condition>
                <property>/sim/model/c172p/control-surfaces/left-aileron-checked</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>We've finished our inspection round. Open the door.</message>
        <view>
            <heading-offset-deg>306.1</heading-offset-deg>
            <pitch-offset-deg>-16.6</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-1.8</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>1.3</z-offset-m>
            <field-of-view>59.1</field-of-view>
        </view>
        <marker>
            <x-m>0.7468</x-m>
            <y-m>-0.5579</y-m>
            <z-m>-0.1633</z-m>
            <scale>3.0204</scale>
        </marker>
        <error>
            <message>Open the door!</message>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.8</value>
                </less-than>
            </condition>
        </error>
        <exit>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.8</value>
                </greater-than>
            </condition>
        </exit>
    </step>

    <step>
        <message>Close the door.</message>
        <view>
            <heading-offset-deg>51.7</heading-offset-deg>
            <pitch-offset-deg>-30.1</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.2</x-offset-m>
            <y-offset-m>0.2</y-offset-m>
            <z-offset-m>0.4</z-offset-m>
            <field-of-view>75.0</field-of-view>
        </view>
        <marker>
            <x-m>0.11517</x-m>
            <y-m>-0.82538</y-m>
            <z-m>-0.11231</z-m>
            <scale>5.3427</scale>
        </marker>
        <error>
            <message>Close the door!</message>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.4</value>
                </greater-than>
            </condition>
        </error>
        <exit>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.4</value>
                </less-than>
            </condition>
        </exit>
    </step>

    <step>
        <set>
            <property>/nasal/tutorial/loaded</property>
            <value>false</value>
        </set>
        <message>Perfect, you're finished. The aircraft is in a good condition, and you're ready to start the engine.</message>
        <view>
            <heading-offset-deg>0.0</heading-offset-deg>
            <pitch-offset-deg>-12</pitch-offset-deg>
            <roll-offset-deg>0.0</roll-offset-deg>
            <x-offset-m>-0.21</x-offset-m>
            <y-offset-m>0.19</y-offset-m>
            <field-of-view>73.6</field-of-view>
        </view>
    </step>

</PropertyList>