final test

Once you have the TriBot moving through an opening correctly, it’s time to test the entire program. The requirements for this program (as listed in program requirements in solving a maze) state that the TriBot should be able to follow a straight wall and negotiate a corner or opening. If the TriBot can do these things, then it should be able to navigate a simple maze. Try a variety of test mazes to see whether the program correctly handles several turns and corners in a row.

In addition to making sure the program works as designed, it’s interesting to see what else it can do and what will make it will fail. For example, try increasing the speed of the Move blocks to see how fast the robot can move before it starts to have problems, or ...

Get The Art of LEGO MINDSTORMS NXT-G Programming 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.