Chapter 6. Squaring Up

After learning about going straight and turning, you're now able to give your robot just enough information to get seriously lost on the game field. No matter how well your robot navigates in any direction, it won't take long before it loses track of where it is facing. This is just the nature of LEGO robots; they're never going to be consistently accurate without a little help and some realignment.

When your robot starts running a few missions, you'll notice that after just a few navigation changes, such as going straight, turning 90 degrees, going straight again, and then maybe backing up, it will rarely end up in the exact same place again, much less be pointing in the same direction each time. When you plan your robot's ...

Get Winning Design!: LEGO MINDSTORMS NXT Design Patterns for Fun and Competition 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.