27404 Parallax Inc, 27404 Datasheet - Page 224

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
#ENDIF
Example Program: SumoWrestlerWithDebugMode.bs2
With this program, you can examine what the SumoBot sees and how its program
responds.
demonstrated how to read the bits in the
sensors
In this case, there is an object directly in front of the SumoBot because both the left and
right IR object detectors (irLF and irRF) store 1s. The IR object detectors on the left and
RETURN
ENDSELECT
DEBUG CRSRX, 20
SELECT maneuver
ENDSELECT
DEBUG CR
PAUSE 200
CASE Forward
CASE Backward
CASE RotateLeft
CASE RotateRight
CASE CurveLeft
CASE CurveRight
DEBUG "Fwd"
DEBUG "Bkwd"
DEBUG "RotLft"
DEBUG "RotRt"
DEBUG "CrvLft"
DEBUG "CrvRt"
variable storing an example value.
Before going into how it works, recall that Chapter 3, Activity #7
sensors
' Cursor to column 20
' Display maneuver
' Carriage return for next line
' Pause 0.2 seconds for reading.
variable. Figure 5-1 shows the
Figure 5-1
Sensors Variable
Six of the eight bits
each correspond to a
different SumoBot
sensor. Two bits are
unused.

Related parts for 27404