27403 Parallax Inc, 27403 Datasheet - Page 234

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
' -----[ Subroutine - Track_Side_Right_Object ]-------------------------------
Track_Side_Right_Object:
' -----[ Subroutine - Search_Pattern ]----------------------------------------
Search_Pattern:
#IF DEBUG_MODE = 1 #THEN state = TSLO #ENDIF
DO UNTIL irRF = 1 OR irLF = 1
LOOP
RETURN
#IF DEBUG_MODE = 1 #THEN state = TSRO #ENDIF
DO UNTIL irRF = 1 OR irLF = 1
LOOP
RETURN
#IF DEBUG_MODE = 1 #THEN state = SP #ENDIF
FOR counter = 1 TO 35
NEXT
Look_About:
#IF DEBUG_MODE = 1 #THEN state = SP #ENDIF
FOR counter = 1 TO 12
NEXT
FOR counter = 1 TO 24
NEXT
FOR counter = 1 TO 12
maneuver = RotateLeft
GOSUB Servos_And_Sensors
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
' Rotate left
' Rotate right
' and watch all sensors
' Forward
' Look right
' Look left
' Re-align to forward

Related parts for 27403