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

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.