27404 Parallax Inc, 27404 Datasheet - Page 233

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
' -----[ Subroutine - Track_Front_Left_Object ]-------------------------------
Track_Front_Left_Object:
' -----[ Subroutine - Track_Front_Right_Object ]------------------------------
Track_Front_Right_Object:
' -----[ Subroutine - Track_Side_Left_Object ]--------------------------------
Track_Side_Left_Object:
#IF DEBUG_MODE = 1 #THEN state = GF #ENDIF
maneuver = Forward
GOSUB Servos_And_Sensors
RETURN
#IF DEBUG_MODE = 1 #THEN state = TFLO #ENDIF
counter = 0
DO UNTIL (irLF = 1 AND irRF = 1) OR counter > 15
LOOP
DO UNTIL (irLF = 1 AND irRF = 1) OR counter > 30
LOOP
RETURN
#IF DEBUG_MODE = 1 #THEN state = TFRO #ENDIF
counter = 0
DO UNTIL (irLF = 1 AND irRF = 1) OR counter > 15
LOOP
DO UNTIL (irLF = 1 AND irRF = 1) OR counter > 30
LOOP
RETURN
maneuver = CurveLeft
GOSUB Servos_And_Sensors
counter = counter + 1
maneuver = RotateLeft
GOSUB Servos_And_Sensors
counter = counter + 1
maneuver = CurveRight
GOSUB Servos_And_Sensors
counter = counter + 1
maneuver = RotateRight
GOSUB Servos_And_Sensors
counter = counter + 1
' 1 forward pulse
' Curve left 15
' Rotate left 30
' Curve right 15
' Rotate right 30

Related parts for 27404