From 3c39fcfa75ee61b2c823f96d57ecb0891062d5d0 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Thu, 1 May 2008 02:35:40 +0200 Subject: * digital/io/src - add flag for homologation to stop the bot when it finds an obstacle rather than trying to avoid it. --- 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 6490ba7c..de7ce204 100644 --- a/digital/io/src/move_cb.c +++ b/digital/io/src/move_cb.c @@ -101,7 +101,7 @@ move_get_next_position (move_position_t *dst) path_update (); /* Retrieve next path coordinate */ - if (!path_get_next (&dst->x, &dst->y)) + if (main_always_stop_for_obstacle || !path_get_next (&dst->x, &dst->y)) { DPRINTF ("Could not compute any path to avoid obstacle!\n"); return 0; -- cgit v1.2.3