Chapter 8. True or False?
What is the difference between the following two questions?
What color is the sky?
Is the sky blue?
Well, there are a lot of differences: the first question has five words and the second one has four words, for example. My real point in asking these two questions is to point out that the first question is open-ended; the sky could be blue, or gray, or any number of answers. The second question, however, has only two possible answers: Yes or No.
When it comes to programming your robots, you need to understand that many times your robots can only provide you with those two answers: Yes or No. At other times, your robots can understand only a Yes or No answer. Understanding how to take a Yes/No answer and use it to properly ...
Get Lego Mindstorms NXT-G Programming Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.