From 49caa98385eacd49a84316e9b5e195843551b61a Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 2 Jun 2011 01:47:19 +0200 Subject: digital/io-hub: harder on green zone blocking --- digital/io-hub/src/robospierre/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/io-hub/src/robospierre/path.c') diff --git a/digital/io-hub/src/robospierre/path.c b/digital/io-hub/src/robospierre/path.c index 049c577f..4f871213 100644 --- a/digital/io-hub/src/robospierre/path.c +++ b/digital/io-hub/src/robospierre/path.c @@ -247,9 +247,9 @@ path_blocking (uint8_t a, uint8_t b, int16_t *dp) && vb.x < PG_WIDTH - BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM) || (va.x < PG_WIDTH - BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM && vb.x > PG_WIDTH - BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM)) - blocking = 1; + return 1; if (a_green && b_green) - blocking = 1; + return 1; if (a_green || b_green) factor = 4; /* Test for a blocking obstacle. */ -- cgit v1.2.3