
上QQ阅读APP看书,第一时间看更新
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.