summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
Diffstat (limited to 'digital')
-rw-r--r--digital/io/src/top.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/digital/io/src/top.c b/digital/io/src/top.c
index 250c9f30..2bdbf333 100644
--- a/digital/io/src/top.c
+++ b/digital/io/src/top.c
@@ -65,14 +65,17 @@ top_collect (uint8_t force)
if (loader_elements
&& UTILS_ABS (food_v.x - robot_position.v.x) > 1000)
{
+ asserv_set_speed (BOT_MOVE_FAST);
move_start_noangle (PG_VECT (2625, 253), 0, 0);
return 0;
}
+ asserv_set_speed (BOT_MOVE_SLOW);
move_start_noangle (food_v, 0, food_shorten (top_food));
return 1;
}
else
{
+ asserv_set_speed (BOT_MOVE_FAST);
move_start_noangle (PG_VECT (2625, 253), 0, 0);
return 0;
}