From 60d3060306a09f301b09201cfaefc9a1f88096c4 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 10 May 2011 19:37:43 +0200 Subject: digital/{ai,io}: add define for backward/forward --- digital/ai/src/twi_master/asserv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'digital/ai/src/twi_master/asserv.h') diff --git a/digital/ai/src/twi_master/asserv.h b/digital/ai/src/twi_master/asserv.h index 0d29ba96..2aa7a6f8 100644 --- a/digital/ai/src/twi_master/asserv.h +++ b/digital/ai/src/twi_master/asserv.h @@ -121,16 +121,16 @@ asserv_get_motor1_position (void); /** * Are we moving forward/backward? * @return - * - 0 we are not moving; - * - 1 we are moving forward; - * - 2 we are moving backward. + * - DIRECTION_NONE we are not moving; + * - DIRECTION_FORWARD we are moving forward; + * - DIRECTION_BACKWARD we are moving backward. */ uint8_t asserv_get_moving_direction (void); /** * Get the last moving direction of the bot. - * @return 1 is forward, 2 is backward. + * @return DIRECTION_FORWARD or DIRECTION_BACKWARD. */ uint8_t asserv_get_last_moving_direction (void); -- cgit v1.2.3