summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/init.h
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-16 21:02:59 +0200
committerJérémy Dufour2009-05-16 21:02:59 +0200
commit6fe853aa2498e51142c4e6d799f9951a41c456d3 (patch)
tree1728e8ece583a4f6d2c4e9092617208b85f9d481 /digital/io/src/init.h
parent3860bdf2741dd36ce395c80f4ea28c0257814e83 (diff)
* 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.
Diffstat (limited to 'digital/io/src/init.h')
-rw-r--r--digital/io/src/init.h6
1 files changed, 4 insertions, 2 deletions
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 */