O'Reilly logo

Winning Design!: LEGO MINDSTORMS NXT Design Patterns for Fun and Competition by James J. Trobaugh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required