summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/move_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-05-01 02:35:40 +0200
committerJérémy Dufour2008-05-01 02:35:40 +0200
commit3c39fcfa75ee61b2c823f96d57ecb0891062d5d0 (patch)
tree0e04bce64af245864b159cfa96268fe080082ad5 /digital/io/src/move_cb.c
parent27b286afcc596fee6c45f90190a2f67997732f3b (diff)
* digital/io/src
- add flag for homologation to stop the bot when it finds an obstacle rather than trying to avoid it.
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 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;