27404 Parallax Inc, 27404 Datasheet - Page 182

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
LOOP
Figure 4-12 shows the search pattern. Because your servos may behave differently, it
will probably take some tuning to get your SumoBot to perform this search pattern.
While this search pattern works reasonably well, there's lots of room for improvement.
We'll take a closer look in the Your Turn section.
Example Program: SearchPatternAndAvoidTawara.bs2
ENDIF
FOR counter = 1 TO 12
NEXT
FOR counter = 1 TO 24
NEXT
FOR counter = 1 TO 12
NEXT
Next_State:
maneuver = RotateRight
GOSUB Servos_And_Sensors
IF sensors <> 0 THEN GOTO Next_State
maneuver = RotateLeft
GOSUB Servos_And_Sensors
IF sensors <> 0 THEN GOTO Next_State
maneuver = RotateRight
GOSUB Servos_And_Sensors
IF sensors <> 0 THEN GOTO Next_State
If you are using the SumoBot Robot Competition Ring Poster, make sure that
you have followed the poster setup instructions (starting on page 9).
Enter, save, and run SearchPatternAndAvoidTawara.bs2.
' Look right
' Look left
' Re-align to forward
' Exit point of search pattern
Figure 4-12
Sample SumoBot
Search Pattern

Related parts for 27404