Chapter 7: Navigating with Infrared Headlights · Page 263
Exercises
1. Modify a line of code in IrInterferenceSniffer.bs2 so that it only monitors one of
the IR LED/detector pairs.
2. Explain the function of
pulseCount in AvoidTableEdge.bs2. How does this
relate to your answer to Exercise 3?
Projects
1. Design a Boe-Bot application that sits still until you wave your and in front of it,
then it starts roaming.
2. Design a Boe-Bot application that slowly rotates in place until it detects an
object. As soon as it detects an object, it locks onto and chases the object. This
is a classic SumoBot behavior.
3. Design a Boe-Bot application that roams, but if it detects infrared interference, it
sounds the alarm briefly, then continues roaming. This alarm should be different
from the low battery alarm.