O'Reilly logo

Lego Mindstorms NXT-G Programming Guide, Second Edition by James Floyd Kelly

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

Throughout this book, I've used the MOVE block for control of the motors. I use it in just about every robot I've ever designed, but if you've been paying attention to the NXT-G software as you've worked through the book's exercises, you may have noticed a block that I've yet to cover—the MOTOR block. You'll also look at the RESET MOTOR block, which you might find handy for diagnosing and correcting movement problems.

The MOTOR Block

Figure 24-1 shows the MOTOR block. It works almost exactly like the MOVE block, with but a few exceptions. First, the MOTOR block can only be used to control a single motor; you cannot use it to control two or more motors, so you'll have to drop in two (or more) MOTOR blocks if you wish to have ...

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