
programming
and testing
golf-bot
Programming Golf-Bot to find the target and hit a ball into it
is not particularly difficult, but there is one potential problem
that we must consider. Notice that all of the electronic pieces
rotate with the base except for the motor that powers the
base. The cable running from that motor to the NXT places
a limitation on Golf-Bot: The robot cannot rotate forever
in either direction because the cable would eventually get
tangled up. Therefore, we should start Golf-Bot in the same
position every time so that the robot can operate without
encountering any cable trouble. To make this task easier,
we’ll create a