From 53d723e0945c1d9b0b64fd925ef61657e12b78b3 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 18 May 2012 11:58:58 +0200 Subject: digital/io-hub/src/guybrush: always allow coin detection in demo mode --- digital/io-hub/src/guybrush/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'digital/io-hub') diff --git a/digital/io-hub/src/guybrush/main.c b/digital/io-hub/src/guybrush/main.c index ac561ec6..7a44d142 100644 --- a/digital/io-hub/src/guybrush/main.c +++ b/digital/io-hub/src/guybrush/main.c @@ -212,6 +212,8 @@ main_coin_detected_ok (void) int16_t limit = robot_pos.v.y < PG_LENGTH - PG_CAPTAIN_ROOM_LENGTH_MM ? PG_HOLD_NORTH_X + BOT_SIZE_FRONT : PG_CAPTAIN_ROOM_LENGTH_MM + BOT_SIZE_FRONT; + if (main_demo) + return 1; if (robot_pos.v.x < limit || robot_pos.v.x > PG_MIRROR_X (limit)) return 0; if (robot_pos.v.y > PG_COIN_QUARTET_Y - 100 -- cgit v1.2.3