27404 Parallax Inc, 27404 Datasheet - Page 204

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:
READ QtiThresh, Word temp
INPUT qtiSigLeft
INPUT qtiSigRight
PULSOUT DummyPin, temp
qtiLF
qtiRF = ~qtiSigRight
LOW qtiPwrLeft
LOW qtiPwrRight
RETURN
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
RETURN
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
RETURN
maneuver = Forward
GOSUB Servos_And_Sensors
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
' Get threshold time
' Start the decays
' Wait threshold time
' Snapshot of QTI signal states
' Turn off QTIS
' Back up
' Turn right
' Back up
' Turn left
' 1 forward pulse

Related parts for 27404