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 18. Title = Anything You Like

That's a strange title, isn't it? You can pick anything you like and make it the title. But that doesn't mean the material covered in this chapter will change. Nope, this chapter covers two special types of block called the VARIABLE block and the CONSTANT block. You'll find these blocks useful when you need to store a piece of information for later use. This is a lengthy chapter, so there won't be any exercises. But the information here is very valuable for giving your robots the ability to save information and use it later, so take it slow and really try to understand how and when to use both new block types. So let's take a look.

The VARIABLE Block

Let's imagine for just a moment that you want to give SPOT ...

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