<?xml version="1.0" encoding="UTF-8"?>
<Mission xmlns="Tethys"
       xmlns:Control="Tethys/Control"
       xmlns:Guidance="Tethys/Guidance" 
       xmlns:Sensor="Tethys/Sensor" 
       xmlns:Units="Tethys/Units"
       xmlns:Universal="Tethys/Universal"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="Tethys http://okeanids.mbari.org/tethys/Xml/Tethys.xsd
                           Tethys/Control http://okeanids.mbari.org/tethys/Xml/Control.xsd
                           Tethys/Guidance http://okeanids.mbari.org/tethys/Xml/Guidance.xsd
                           Tethys/Sensor http://okeanids.mbari.org/tethys/Xml/Sensor.xsd
                           Tethys/Units http://okeanids.mbari.org/tethys/Xml/Units.xsd
                           Tethys/Universal http://okeanids.mbari.org/tethys/Xml/Universal.xsd"
       Id="ReadSensorStrategy">

<!-- <Insert Filename="RegressionTests/InsertHighPriority.xml"/>  -->

    <Insert Filename="RegressionTests/InsertSurfaceOps.xml"/>

    <Guidance:DepthEnvelope>
        <Parallel/>
        <Setting><Guidance:DepthEnvelope.minDepth/><Units:meter/><Value>5</Value></Setting>
        <Setting><Guidance:DepthEnvelope.maxDepth/><Units:meter/><Value>30</Value></Setting>
    </Guidance:DepthEnvelope>

    <Guidance:YoYo>
        <Parallel/>
    </Guidance:YoYo>

    <Guidance:SetSpeed>
        <Parallel/>
        <Setting><Guidance:SetSpeed.speed/><Units:meter_per_second/><Value>1</Value></Setting>
    </Guidance:SetSpeed>

    <Aggregate Id="SampleLowPowerHeading">

        <Sequence/>

        <Timeout Duration="P30S"/>

    </Aggregate>

    <Aggregate Id="SampleLowErrorHeading">

        <Sequence/>

        <Timeout Duration="P30S"/>

        <ReadData Strategy="MinError">
            <Universal:platform_orientation/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleHeadingViaSensorDVL">

        <Sequence/>

        <Timeout Duration="P30S"/>

        <ReadData>
            <Sensor:DVL_micro/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleLowErrorHeadingViaPitchRate">

        <Sequence/>

        <Timeout Duration="P30S"/>

        <ReadData>
            <Universal:platform_pitch_rate/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleHeadingViaPlatformSpeedWrtGround">

        <Sequence/>

        <Timeout Duration="P30S"/>

        <ReadData>
            <Universal:platform_speed_wrt_ground/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleAllHeading">

        <Sequence/>

        <Timeout Duration="P30S"/>

        <ReadData Strategy="AllDevices">
            <Universal:platform_orientation/>
        </ReadData>

    </Aggregate>

    <Guidance:Waypoint Id="Waypoint">
        <Progression/>
        <Timeout Duration="P220S"/>
        <Setting><Guidance:Waypoint.latitudeDelta/><Units:degree/><Value>0.02</Value></Setting>
        <Setting><Guidance:Waypoint.longitudeDelta/><Units:degree/><Value>-0.00</Value></Setting>
    </Guidance:Waypoint>

</Mission>
