Revision 7.10
2/28/2012
</action>
</transition>
</transitions>
</initialState>
<! This state verifies that the "s" command was received. Once verified, it transitions
to wait for the file transfer to complete.
>
<state name="verifyzModem">
<transitions>
<! If a surface dialog is seen, continue to watch for echo of command in order
to verify it was received.
>
<transition matchExpression="Hit ControlR to RESUME" toState="verifyzModem">
</transition>
<! If the "s" command verify timer on the dock server times out, then transition
to resend the command.
>
<transition matchExpression="xxx command verify fail xxx" toState="sendzModem">
</transition>
<! If the "s" command's echo is seen from the glider, then the command is verified.
Transition to wait for the zmodem file transfer to complete.
>
<transition matchExpression="s \*.sbd" toState="waitForTransfer">
</transition>
</transitions>
</state>
<! Wait for the file transfer to complete either successfully or not.
>
<state name="waitForTransfer">
<transitions>
<! If a surface dialog is seen, then the glider has not started a file transfer
even though it echoed the "s" command. Resend the "s" command and transition to
verify it.
>
<transition matchExpression="Hit ControlR to RESUME" toState="verifyzModem">
<action type="glider" command="s *.sbd">
</action>
</transition>
<! If the transfer is successful, then transition to send the mission resume command.
>
<transition matchExpression="SUCCESS" toState="sendResume">
</transition>
<! If their were no files to transfer, then transition to resume the mission.
Page 202 of 228