Hi Jill,When I ran your code, the robot didn't actually touch the last line in each forward movement (it broke the plane, but the wheels didn't touch). The green highlight shows which line the robot should touch next and will disappear once this has been accomplished. The problem is that the light sensor is placed in front of the wheels. The easiest fix was to add a 500 millisecond delay to the end of your forward function, so that the robot will continue forward for another half second, which was enough to make the robot actually touch the lines with its wheels.

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum