27404 Parallax Inc, 27404 Datasheet - Page 232

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 - Avoid_Tawara_Left ]-------------------------------------
Avoid_Tawara_Left:
' -----[ Subroutine - Avoid_Tawara_Right ]------------------------------------
Avoid_Tawara_Right:
' -----[ Subroutine - Go_Forward ]--------------------------------------------
Go_Forward:
INPUT qtiSigLeft
INPUT qtiSigRight
PULSOUT DummyPin, temp
qtiLF
qtiRF = ~qtiSigRight
LOW qtiPwrLeft
LOW qtiPwrRight
RETURN
#IF DEBUG_MODE = 1 #THEN state = ATL #ENDIF
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
RETURN
#IF DEBUG_MODE = 1 #THEN state = ATR #ENDIF
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
RETURN
maneuver = Backward
GOSUB Servos_And_Sensors
maneuver = RotateRight
GOSUB Servos_And_Sensors
maneuver = Backward
GOSUB Servos_And_Sensors
maneuver = RotateLeft
GOSUB Servos_And_Sensors
= ~qtiSigLeft
' Start the decays
' Wait threshold time
' Snapshot of QTI signal states
' Turn off QTIS
' Back up
' Turn right
' Back up
' Turn left

Related parts for 27404