<PropertyList>
    <name>GPS Navigation</name>
    <description>GPS waypoint navigation how-to</description>
    <interval>2</interval>

    <init>
        <set>
            <property>instrumentation/gps/wp/wp[1]/ID</property>
            <value></value>
        </set>
        <set>
            <property>instrumentation/gps/serviceable</property>
            <value>0</value>
        </set>
    </init>


    <step>
        <message>
            Make sure aircraft is running... power on.{|.}
            Press power button on the GPS unit{|.}
        </message>
        <view>
            <heading-offset-deg>322.2</heading-offset-deg>
            <pitch-offset-deg>-22.2</pitch-offset-deg>
            <field-of-view>10</field-of-view>
        </view>
        <error>
            <message>Power up the GPS{|.}
            Nav 1 page will display{|.}
            </message>
            <condition>
                <equals>
                        <property>systems/electrical/outputs/gps</property>
                        <value>0</value>
                </equals>
            </condition>
        </error>
        <exit>
            <condition>
                <greater-than>
                        <property>systems/electrical/outputs/gps</property>
                        <value>0</value>
                </greater-than>
            </condition>
        </exit>
    </step>

    <step>
        <message>
            Open Equipment/GPS Settings.{|.}
            Select a waypoint type , and enter the ID.{|.}
            Close the dialog
        </message>
        <view>
            <heading-offset-deg>322.2</heading-offset-deg>
            <pitch-offset-deg>-22.2</pitch-offset-deg>
            <field-of-view>12</field-of-view>
        </view>
        <error>
            <message>
            Enter waypoint type and ID in the Equipment/GPS dialog.{|.}
            Waypoint ID will appear at the top of the  NAV1 page{|.}
            when active{|.}
            </message>
            <condition>
                <equals>
                        <property>instrumentation/gps/wp/wp[1]/ID</property>
                        <value></value>
                    </equals>
            </condition>
        </error>
        <exit>
            <condition>
                <not-equals>
                        <property>instrumentation/gps/wp/wp[1]/ID</property>
                        <value></value>
                    </not-equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>
            Press the GPS CRS button until GPS displays  on the EHSI{|.}
        </message>
        <view>
            <heading-offset-deg>357.3</heading-offset-deg>
            <pitch-offset-deg>-23.4</pitch-offset-deg>
            <field-of-view>25</field-of-view>
        </view>
        <error>
            <message>
            Press GPS CRS again{|.}
            GPS wil display in the EHSI when GPS mode enabled{|.}
            </message>
            <condition>
                <not>
                    <property>instrumentation/nav/slaved-to-gps</property>
                </not>
            </condition>
        </error>
        <exit>
            <condition>
                <property>instrumentation/nav/slaved-to-gps</property>
            </condition>
        </exit>
    </step>

    <step>
        <message>
            Open Autopilot dialog (F11),and adjust COURSE{|.}
            setting until deflection and course needle line up,{|.}
            and white "TO" arrow appears{|.}
        </message>
        <view>
            <heading-offset-deg>0.45</heading-offset-deg>
            <pitch-offset-deg>-30</pitch-offset-deg>
            <field-of-view>12</field-of-view>
        </view>
        <error>
            <message>
            Adjust Course settings{|.}
            </message>
            <condition>
                <and>
                    <greater-than>
                        <property>instrumentation/flightdirector/hsi/crs-deflection</property>
                        <value>0.1</value>
                    </greater-than>
                    <less-than>
                        <property>instrumentation/flightdirector/hsi/crs-deflection</property>
                        <value>-0.1</value>
                    </less-than>
                    <not>
                        <property>instrumentation/flightdirector/hsi/to-flag</property>
                    </not>
                </and>
            </condition>
        </error>
        <exit>
            <condition>
                <and>
                    <less-than>
                        <property>instrumentation/flightdirector/hsi/crs-deflection</property>
                        <value>0.1</value>
                    </less-than>
                    <greater-than>
                        <property>instrumentation/flightdirector/hsi/crs-deflection</property>
                        <value>-0.1</value>
                    </greater-than>
                    <property>instrumentation/flightdirector/hsi/to-flag</property>
                </and>
            </condition>
        </exit>
    </step>

    <step>
        <message>
            Set your desired cruise altitude{|.}
            For this tutorial , set to 15000 ft{|.}
        </message>
        <view>
            <heading-offset-deg>334</heading-offset-deg>
            <pitch-offset-deg>-24</pitch-offset-deg>
            <field-of-view>7</field-of-view>
        </view>
        <error>
            <message>
            Change altitude by clicking on knob{|.}
            Set to 15000 ft{|.}
            </message>
            <condition>
                <not-equals>
                    <property>instrumentation/flightdirector/Asel</property>
                    <value>15000</value>
                </not-equals>
            </condition>
        </error>
        <exit>
            <condition>
                <equals>
                    <property>instrumentation/flightdirector/Asel</property>
                    <value>15000</value>
                </equals>
            </condition>
        </exit>
    </step>

    <step>
        <message>
            Press the "NAV " and "ALTS" buttons on the{|.}
            FlightDirector controller{|.}
        </message>
        <view>
            <heading-offset-deg>0</heading-offset-deg>
            <pitch-offset-deg>-18</pitch-offset-deg>
            <field-of-view>15</field-of-view>
        </view>
        <error>
            <message>Press HDG and ALTS buttons.Pink command{|.}
            bars will appear on the EADI when modes are armed/{|.}
            </message>
            <condition>
                <and>
                    <not-equals>
                        <property>autopilot/locks/heading</property>
                        <value>NAV</value>
                    </not-equals>
                    <not-equals>
                        <property>autopilot/locks/altitude</property>
                        <value>ASEL</value>
                    </not-equals>
                </and>
            </condition>
        </error>
        <exit>
            <condition>
                <and>
                    <equals>
                        <property>autopilot/locks/heading</property>
                        <value>HDG</value>
                    </equals>
                    <equals>
                        <property>autopilot/locks/altitude</property>
                        <value>ASEL</value>
                    </equals>
                </and>
            </condition>
        </exit>
    </step>

    <end>
        <message>
        Once airborn , gear and flaps up,{|.}
        press the Autopilot "Engage" button on the controller{|.}
        on the pedestal ...(between the seats){|.}
        NOTE: Press the GPS CRS button to return to NAV mode{|.}
        for ILS / VOR navigation{|.}
        </message>
        <view>
            <heading-offset-deg>0</heading-offset-deg>
            <pitch-offset-deg>-15</pitch-offset-deg>
            <field-of-view>60</field-of-view>
        </view>
    </end>
</PropertyList>
