27403 Parallax Inc, 27403 Datasheet - Page 188

GUIDE APP ROBOTCS W/SUMOBOT V1.0

27403

Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 27403

Accessory Type
Manual
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
There are a couple of different ways to get the SumoBot to do this maneuver. The first is
to write a custom Initialization routine that performs this maneuver before moving on to
the Main Routine. Here's another way.
ELSE
ENDIF
FOR counter = 1 TO 35
NEXT
Look_About:
FOR counter = 1 TO 12
NEXT
maneuver = Forward
GOSUB Servos_And_Sensors
IF sensors <> 0 THEN GOTO Next_State
maneuver = RotateRight
GOSUB Servos_And_Sensors
IF sensors <> 0 THEN GOTO Next_State
.
.
.
Save SearchPatternAndAvoidTawara.bs2 as a new file with YourTurn.bs2
appended to the name
Add the
' <--- Add Starting point
Look_About:
label to the search pattern code. It's commented with
in the search pattern routine below.
' No objects detected?
' State = search pattern
' <--- Add Starting point label
' Look right
' Forward
Figure 4-13
Sample SumoBot
Search Pattern
This one is different
because the
SumoBot looks
around before it
starts going forward.

Related parts for 27403