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 11. Round and Round

At this point in the book, we're almost finished with the blocks in the Common Palette. Throughout the remainder of the book, I'll be introducing you to blocks and concepts that will allow you to build more complex programs that do more than simply tell your bots to move forward, backward, or in a circle.

Now, I'd like to take a short break to introduce you to another concept. I'll make this one fun too, I promise. Then, I'll show you a new NXT-G programming block that you'll really like.

Do It Again and Again and Again ...

Let's go back to our friendly bot, SPOT. Once again, let's just pretend that he's got a pair of ears and can understand verbal commands. I'm going to give him a set of unusual commands:

  • Me: SPOT, I want ...

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