From 344378dbe88fef666e0577cdbf57498f3800172f Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 14 Apr 2008 11:59:50 +0200 Subject: * digital/io/src - manage command retransmission (when not acknowledge by the asserv) ; - integrate retransmission and update of the asserv into the main. --- digital/io/src/asserv.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digital/io/src/asserv.h') diff --git a/digital/io/src/asserv.h b/digital/io/src/asserv.h index 6bb883d2..ab81118a 100644 --- a/digital/io/src/asserv.h +++ b/digital/io/src/asserv.h @@ -68,6 +68,18 @@ asserv_update_status (void); uint8_t asserv_last_cmd_ack (void); +/** + * Re-send command if not acknowledged. + * This function should be called when the command has not been acknowledged + * by the asserv board. It will re send the last command when a certain number + * of cycle has been reached without any acknowledge from the asserv. + * @return + * - 0 if the command was not received. + * - 1 if the command was re-sent. + */ +uint8_t +asserv_retransmit (void); + /** * Status of a move or arm class command. * It is return by status functions. -- cgit v1.2.3