From 03aefdc54f188a60151e0fd4e182c6f0c1263d46 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 15 May 2010 08:08:53 +0200 Subject: digital/io/src: use fast speed for unloading --- digital/io/src/top.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'digital/io/src') 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; } -- cgit v1.2.3