summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2011-06-02 01:47:19 +0200
committerNicolas Schodet2011-06-02 01:47:19 +0200
commit49caa98385eacd49a84316e9b5e195843551b61a (patch)
treead439a4903c0959719992cc4c6931f7fdf6fd588
parent00e7e806c78324e687aa5b2f2ca167ebbcbe91be (diff)
digital/io-hub: harder on green zone blocking
-rw-r--r--digital/io-hub/src/robospierre/path.c4
1 files changed, 2 insertions, 2 deletions
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. */