summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas Schodet2010-04-23 00:33:35 +0200
committerNicolas Schodet2010-04-23 00:33:35 +0200
commit71d99ef2521c11addf8dbdce89d195a9de083f74 (patch)
tree42c626fe2fe84fb026cdae3b47d8f56d006fb794
parent8ca615ddaeb74c8cf24c04c070141b46fcbbe51a (diff)
digital/io/src: move move FSM defines
-rw-r--r--digital/io/src/ai_move_cb.c19
-rw-r--r--digital/io/src/move.h13
2 files changed, 13 insertions, 19 deletions
diff --git a/digital/io/src/ai_move_cb.c b/digital/io/src/ai_move_cb.c
index 1d96e94e..3d19ef63 100644
--- a/digital/io/src/ai_move_cb.c
+++ b/digital/io/src/ai_move_cb.c
@@ -45,25 +45,6 @@
#include "debug.host.h"
/**
- * The real radius of the obstacle.
- */
-#define MOVE_REAL_OBSTACLE_RADIUS 150
-
-/**
- * The radius of the obstacle for the path module.
- * It corresponds to the real radius of the obstacle plus the distance you
- * want to add to avoid it.
- */
-#define MOVE_OBSTACLE_RADIUS (MOVE_REAL_OBSTACLE_RADIUS \
- + RADAR_CLEARANCE_MM \
- + BOT_SIZE_SIDE)
-
-/**
- * The generic validity time (in term of number of cycles).
- */
-#define MOVE_OBSTACLE_VALIDITY (6 * 225)
-
-/**
* Easier function to get the next intermediate position from the path module.
* @return
* - 0 if no path could be found ;
diff --git a/digital/io/src/move.h b/digital/io/src/move.h
index a208997f..64100a14 100644
--- a/digital/io/src/move.h
+++ b/digital/io/src/move.h
@@ -27,6 +27,19 @@
#include "defs.h"
+/** Real radius of an obstacle. */
+#define MOVE_REAL_OBSTACLE_RADIUS 150
+
+/** Obstacle radius for the path module.
+ * It corresponds to the real radius of the obstacle plus the distance you
+ * want to add to avoid it. */
+#define MOVE_OBSTACLE_RADIUS (MOVE_REAL_OBSTACLE_RADIUS \
+ + RADAR_CLEARANCE_MM \
+ + BOT_SIZE_SIDE)
+
+/** Obstacle validity time (in term of number of cycles). */
+#define MOVE_OBSTACLE_VALIDITY (6 * 225)
+
/**
* Move FSM associated data.
*/