
Sensing
Forward Until Dark / Light • 11
©
Carnegie Mellon Robotics Academy / For use with LEGO
®
MINDSTORMS® Education NXT software and base set 9797
As a nal exercise, consider what would happen if you were to turn the lights off (or on) in the
room where the robot is running. Make your prediction, and test it!
End of Section
When the robot sees “dark” (a value below the threshold), the (condition) is no longer satised,
and the program moves on to the stop commands, causing the robot to stop at the dark line.
Forward until Dark Wait for Dark (cont.)
Kommentare zu diesen Handbüchern