
222 CHAPTER 16
hand that holds a ball and places the ball on the ground. The
robot then turns around and hits the ball using a club-like
structure on its other side. If the ball lands inside the target,
you bump (i.e., press and release) a touch sensor on the
robot to confirm the successful shot. If the ball lands too far
to the right or left of the target, you can use the Left and
Right buttons on the NXT to tell Golf-Bot how to adjust its
shot. When you drop the ball back into its hand, a sound
sensor detects the noise made by the falling ball, and the
robot proceeds to place and then hit the ball again. Golf-Bot
repeats this process with y ...