<?xml version="1.0" encoding="UTF-8"?>
<Aggregate xmlns="Tethys"
       xmlns:Control="Tethys/Control"
       xmlns:Guidance="Tethys/Guidance" 
       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/Units http://okeanids.mbari.org/tethys/Xml/Units.xsd
                           Tethys/Universal http://okeanids.mbari.org/tethys/Xml/Universal.xsd"
       Id="AcousticModemComms">

    <Description>
        Triggers periodic acoustic comms.
    </Description>

    <DefineArg Name="Timeout"><Units:minute/><Value>10</Value></DefineArg>

    <DefineArg Name="CommsInterval"><Description>
        The timing is based on the variable Universal:platform_communications
    </Description><Units:minute/><Value>5</Value></DefineArg>

    <While>
        <Elapsed><Universal:platform_communications/></Elapsed>
        <Gt><Arg Name="CommsInterval"/></Gt>
    </While>

    <Aggregate Id="CheckIn">

        <Sequence/>

        <ReadDatum>
            <Timeout Duration="Timeout"/>
            <Universal:platform_communications/>
        </ReadDatum>

    </Aggregate>

</Aggregate>
