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 15. Apples and Oranges

There's an old saying, "That's like comparing apples to oranges." What it means is that it's sometimes unfair to compare dissimilar objects. I said "sometimes," because at other times it's completely fair. Suppose I hand you one apple and one orange. Which one is heavier? Which one has a larger diameter? These aren't unfair questions, are they?

So sometimes you can compare apples to oranges! And when it comes to your robots, there's a way for your robots to compare things, too—not apples and oranges, but numbers.

Logic

Remember that we discussed the concept of Logic back in Chapter 8? True or False? (If you said False, you need to go back and read Chapter 8 again!)

Well, NXT-G comes with a programming block called the ...

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