27404 Parallax Inc, 27404 Datasheet - Page 194

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
LOOP
' -----[ Subroutine - Reset ]-------------------------------------------------
Reset:
' -----[ Subroutine - Start_Delay ]-------------------------------------------
Start_Delay:
ENDIF
READ RunStatus, temp
temp = temp + 1
WRITE RunStatus, temp
IF (temp.BIT0 = 1) THEN
ELSE
ENDIF
RETURN
FOR counter = 1 TO 5
NEXT
RETURN
NEXT
Look_About:
FOR counter = 1 TO 12
NEXT
FOR counter = 1 TO 24
NEXT
FOR counter = 1 TO 12
NEXT
Next_State:
DEBUG CLS, "Press/release Reset", CR,
END
DEBUG CR, "Program running..."
PAUSE 900
FREQOUT LedSpeaker, 100, 3000
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
"button..."
' Starting point label
' Look right
' Look left
' Re-align to forward
' Exit point of search pattern
' Byte @RunStatus -> temp
' Increment temp
' Store new value for next time
' Examine temp.BIT0
' 1 -> end, 0 -> keep going
' 5 beeps, 1/second

Related parts for 27404