27403 Parallax Inc, 27403 Datasheet - Page 248

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
#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 27403