Datasheet
Page 164ยท Applied Robotics with the SumoBot
GOSUB Servos_And_Sensors
counter = counter + 1
LOOP
ELSE ' No objects detected?
GOSUB Read_Object_Detectors ' State = search pattern
ENDIF
LOOP
ACTIVITY #3: USING PERIPHERAL VISION
When autonomous robots start a sumo match facing each other, the match tends to be
more a battle of brawn than brains. When a match starts with the SumoBot robots
sideways to each other, things get a little more interesting. Is the opponent on the
SumoBot's left or right, and for that matter, which direction is the opponent facing?
Sumo cards like the ones shown in Figure 4-7 can help keep this random. Between each
round in a match, a new card should be drawn to determine the placement of the
SumoBots for the start of the next round.
Figure 4-7 Random Cards to Draw for Start Positions
As shown in Figure 4-8, peripheral vision with the help of side mounted IR object
detectors can give your SumoBot an advantage, both at the start of the match, and in
detecting attacks from the side. This activity introduces a coding technique you can use
to make effective use of the SumoBot's peripheral vision afforded by those side-mounted
IR object detectors.