<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2008 Monterey Bay Aquarium Research Institute (MBARI)
    MBARI Proprietary Information. All Rights Reserved
-->
<Aggregate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns="Tethys"
           xmlns:Units="Tethys/Units"
           xmlns:Guidance="Tethys/Guidance"
           xsi:schemaLocation="Tethys http://okeanids.mbari.org/tethys/Xml/Tethys.xsd
                               Tethys/Units http://okeanids.mbari.org/tethys/Xml/Units.xsd
                               Tethys/Guidance http://okeanids.mbari.org/tethys/Xml/Guidance.xsd"
       Id="AbortDrift">

    <Description>
        Limit drifting period without receiving any acoustic signals.
    </Description>

    <DefineArg Name="AcousticTimeout"><Description>
        Drifting for longer than this period without receiving any acoustic
        signals will trigger the abort.
    </Description><Units:hour/><Value>96</Value></DefineArg>

    <Parallel/>

    <Syslog Severity="Info">Insert acoustic timeout set to <Arg Name="AcousticTimeout"/><Units:hour/>.</Syslog>

    <Guidance:AbortDrift>
        <Sequence/>
        <Setting><Guidance:AbortDrift.acousticTimeout/><Arg Name="AcousticTimeout"/></Setting>
    </Guidance:AbortDrift>

    <Guidance:Execute>
        <Sequence/>
        <Setting><Guidance:Execute.command/><String>stop</String></Setting>
    </Guidance:Execute>

</Aggregate>
