27404 Parallax Inc, 27404 Datasheet - Page 206

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
Track_Side_Right_Object:
' -----[ Subroutine - Search_Pattern ]----------------------------------------
Search_Pattern:
DO UNTIL irRF = 1 OR irLF = 1
LOOP
RETURN
FOR counter = 1 TO 35
NEXT
Look_About:
FOR counter = 1 TO 12
NEXT
FOR counter = 1 TO 24
NEXT
FOR counter = 1 TO 12
NEXT
Next_State:
RETURN
maneuver = RotateRight
GOSUB Servos_And_Sensors
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
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
' Rotate right
' and watch all sensors
' Forward
' Look right
' Look left
' Re-align to forward
' Exit point of search pattern

Related parts for 27404