Chapter 7. the WallFollower program: navigating a maze

In this chapter, I’ll take you through the process of developing a fairly complex program using the parts of the NXT-G language that I’ve already covered. The WallFollower program that you’ll create will allow the TriBot to navigate a simple maze. As you create the WallFollower program, I’ll take you through the typical steps required to write a program, from the initial design to the final testing.

pseudocode

By the end of Chapter 6, the BumperBot program was a little long and complicated, and the WallFollower program will be just as complex. As you work with more complex programs, it becomes difficult to discuss them using English. English and other human languages are great for many types ...

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.