summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/move_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-18 13:03:58 +0200
committerJérémy Dufour2009-05-18 13:03:58 +0200
commitf5a472887d2514647ca5cd0dd8ead0790e480094 (patch)
tree697ba9b688554ccfbf095afed40a5c84bf68daa5 /digital/io/src/move_cb.c
parent8e6335ad1ff9df290693d5f4bbf919c205d846cc (diff)
* digital/io/src:
- rewrite init FSM: - set X, Y, A position when doing the fuck the wall movement (thanks to Fred for the idea and Ni for debugging), - for safety reason, the procedure requires to insert the jack, remove it, insert it again. The bot will wait 2 seconds and set himself to the start position. Then you can remove the jack to make the match begin. - update name of the define for the length of the table.
Diffstat (limited to 'digital/io/src/move_cb.c')
-rw-r--r--digital/io/src/move_cb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/io/src/move_cb.c b/digital/io/src/move_cb.c
index ec5f6715..abf22c74 100644
--- a/digital/io/src/move_cb.c
+++ b/digital/io/src/move_cb.c
@@ -96,7 +96,7 @@ move_obstacle_in_table (move_position_t pos)
{
if ((pos.x <= PG_WIDTH - MOVE_DETECTION_OFFSET)
&& (pos.x > MOVE_DETECTION_OFFSET)
- && (pos.y <= PG_HEIGHT- MOVE_DETECTION_OFFSET)
+ && (pos.y <= PG_LENGTH - MOVE_DETECTION_OFFSET)
&& (pos.y > MOVE_DETECTION_OFFSET))
return 0x1;
else