27403 Parallax Inc, 27403 Datasheet - Page 121

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
Your Turn - Active High vs. Active Low
At present, the alert for the SumoBot encountering the white tawara line is when either
qtiStateLeft
change this so that the
ACTIVITY #5: ADDING AND TESTING SENSORS AND INDICATORS
Figure 3-16 shows the SumoBot with IR object detectors added to the breadboard that
will detect opponents on the side. The next activity adds and tests these sensors.
Use the invert bits operator, the tilde ~, to invert the states of the
names before storing them in the
to
Update the
being equal to zero. They need to check for the
to 1.
Save, run and test your modified program.
qtiStateLeft
qtiStateRight = qtiSigRight
qtiStateLeft
qtiStateRight = ~ qtiSigRight
or
qtiStateRight
IF...THEN
qtiState
= qtiSigLeft
= ~ qtiSigLeft
variables store 1 when they see they see white.
statements that are checking for
store 0. You can use the invert bits operator (~) to
qtiState
variables. In other words, change:
qtiState
variables being equal
qtiState
qtiSig PIN
variables

Related parts for 27403