From f5a472887d2514647ca5cd0dd8ead0790e480094 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 18 May 2009 13:03:58 +0200 Subject: * 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. --- digital/io/src/move_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital/io/src/move_cb.c') 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 -- cgit v1.2.3