From 32a21a69bb7adb44c4fc91d025ad8f0ccdaf45a1 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 31 May 2011 15:07:25 +0200 Subject: digital/io-hub: remove special case for green elements --- digital/io-hub/src/robospierre/bot.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'digital/io-hub/src/robospierre/bot.h') diff --git a/digital/io-hub/src/robospierre/bot.h b/digital/io-hub/src/robospierre/bot.h index 8e32a317..de32ebb2 100644 --- a/digital/io-hub/src/robospierre/bot.h +++ b/digital/io-hub/src/robospierre/bot.h @@ -58,10 +58,9 @@ /** Distance from border to position in front of a green element. */ #define BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM 600 -/** Distance to go to capture a green element. */ -#define BOT_GREEN_ELEMENT_MOVE_DISTANCE_MM \ - (BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM - BOT_ELEMENT_RADIUS \ - - BOT_SIZE_FRONT - 20) +/** Distance from border to go to capture a green element. */ +#define BOT_GREEN_ELEMENT_DISTANCE_MM \ + (BOT_ELEMENT_RADIUS + BOT_SIZE_FRONT + 20) /** Speed used for initialisation. */ #ifdef HOST -- cgit v1.2.3