27403 Parallax Inc, 27403 Datasheet - Page 184

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
DummyPin
' -----[ Constants ]----------------------------------------------------------
' SumoBot maneuvers
Forward
Backward
RotateLeft
RotateRight
PivotLeft
PivotRight
CurveLeft
CurveRight
' Servo pulse width rotations
FS_CCW
FS_CW
NO_ROT
LS_CCW
LS_CW
' -----[ Variables ]----------------------------------------------------------
temp
multi
counter
maneuver
sensors
qtiLF
qtiRF
' -----[ EEPROM Data ]--------------------------------------------------------
QtiThresh
' -----[ Initialization ]-----------------------------------------------------
GOSUB Calibrate_Qtis
' -----[ Main Routine ]-------------------------------------------------------
DO
IF qtiLF = 1 THEN
FOR counter = 1 TO 15
PIN
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
DATA
6
0
1
2
3
4
5
6
7
850
650
750
770
730
Word
Word
Byte
Nib
Byte
sensors.BIT5
sensors.BIT4
Word 0
' I/O pin for pulse-decay P6
' Forward
' Backward
' RotateLeft
' RotateRight
' Pivot to the left
' Pivot to the right
' Curve to the left
' Curve to the right
' Full speed counterclockwise
' Full speed clockwise
' No rotation
' Low speed counterclockwise
' Low speed clockwise
' Temporary variable
' Multipurpose variable
' Loop counting variable.
' SumoBot travel maneuver
' Sensor flags byte
' Stores snapshot of QtiSigLeft
' Stores snapshot of QtiSigRight
' Word for QTI threshold time
' Determine b/w threshold
' Left qti sees line?
' State = Avoid tawara left

Related parts for 27403