From 6fe853aa2498e51142c4e6d799f9951a41c456d3 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sat, 16 May 2009 21:02:59 +0200 Subject: * digital/io/src: - use timeout in init FSM rather than using main and a timer, - use the macro to compute angle and Y position by using the color contact, - use relative rotation rather than absolute, - set position before last rotation, - do some cleaning. --- digital/io/src/init.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'digital/io/src/init.h') diff --git a/digital/io/src/init.h b/digital/io/src/init.h index 6ce25300..99de38f4 100644 --- a/digital/io/src/init.h +++ b/digital/io/src/init.h @@ -25,7 +25,9 @@ * * }}} */ -/* INIT_DIST is the distance the bot move backward during init FSM*/ -#define INIT_DIST 150 +/** + * We want to be at 50mm. + */ +#define INIT_DIST (PG_START_ZONE_LENGTH - BOT_LENGTH - 50) #endif /* init_h */ -- cgit v1.2.3