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

Get Lego Mindstorms NXT-G Programming Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.