program will make the Claw Striker try to automatically find a target
and then strike it.
Place the Claw Striker
and a target big enough for it to see in the middle of a large open
area on a hard smooth floor (doesn't work as well on carpet).
The target should be no more than about 2 feet (60 cm) away.
ClawStrike program, then
step back so the robot will not see you instead. There are
three warning beeps at the beginning of the program to give you time
to back away.
The Claw Striker will
try to locate and strike the target as follows:
Turn around in a
slow pivot turn looking for the target with the ultrasonic
Sound a beep when
the target is first seen (leading edge)
Keep turning until
the trailing edge of the target is found, then sound another
Turn back half of
the angle between the leading and trailing edges to try to point
straight at the center of the target.
distance to the target with the ultrasonic sensor, then go
forward or back up as necessary to adjust the range to 33 cm,
which is the length of the claw whip.
Strike with the