Beacon check

Before the robot starts to move, it needs to check to see that a beacon is present. We are going to start programming inside of our master loop, and the first part of the program inside of the loop will be a switch that checks to see if there is a nearby beacon. That way, the robot will not try to find and follow a beacon if none are present.

Get Building Smart LEGO MINDSTORMS EV3 Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.