27404 Parallax Inc, 27404 Datasheet - Page 248

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
#ENDIF
' -----[ Subroutine - Reset ]-------------------------------------------------
Reset:
' -----[ Subroutine - Start_Delay ]-------------------------------------------
Start_Delay:
' -----[ Subroutine - Calibrate_Qtis ]----------------------------------------
Calibrate_Qtis:
READ RunStatus, temp
temp = temp + 1
WRITE RunStatus, temp
IF (temp.BIT0 = 1) THEN
ELSE
ENDIF
RETURN
FOR counter = 1 TO 5
NEXT
RETURN
HIGH qtiPwrLeft
HIGH qtiSigLeft
PAUSE 1
RCTIME qtiSigLeft, 1, temp
LOW qtiPwrLeft
NEXT
END
DEBUG CLS, "Press/release Reset", CR,
END
DEBUG CR, "Program running..."
PAUSE 900
FREQOUT LedSpeaker, 100, 3000
sensors = temp.HIGHBYTE
state = temp.NIB1
maneuver = temp.NIB0
GOSUB Display_All
"button..."
'
' Byte @RunStatus -> temp
' Increment temp
' Store new value for next time
' Examine temp.BIT0
' 1 -> end, 0 -> keep going
' 5 beeps, 1/second
' Turn left QTI on
' Discharge capacitor
' Measure charge time
' Turn left QTI off

Related parts for 27404