27403 Parallax Inc, 27403 Datasheet - Page 241

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
' -----[ Subroutine - Servos_And_Sensors ]------------------------------------
Servos_And_Sensors:
The last conditional compiler directive in the initialization section sends the program to a
label named
#IF DATALOG_MODE = 2 #THEN
#ENDIF
GOSUB Look_About
The
of like an alternate main routine when
loop that takes the
through the loop, the
word at the EEPROM address
.HIGHBYTE
copied to the
those three variables contain the values from a given record, the
subroutine is called, and a new line of values appears in the Debug Terminal before the
FOR...NEXT
' -----[ Main Routine ]-------------------------------------------------------
DO
LOOP
#IF DEBUG_MODE = 1 #THEN
#ENDIF
#IF DATALOG_MODE = 1 #THEN
#ENDIF
GOTO Playback_Round
.
.
.
GOSUB Display_All
temp.HIGHBYTE = sensors
temp.NIB1 = state
temp.NIB0 = maneuver
WRITE LogData + LogIndex, Word temp
logIndex = logIndex + 2
IF logIndex >= (LogData + MaxBytes) THEN END
Playback_Round
.
.
.
Playback_Round
of the
loop does its next iteration.
state
temp
logIndex
variable, and
READ LogData + logIndex, Word temp
label comes after the
variable is then copied to the
if
variable from 0 to
LogData + logIndex
DATALOG_MODE = 2
temp.NIB0
DATALOG_MODE = 2
DO...LOOP
is copied to the
' Call Display_All subroutine
' Copy values to parts of temp
' Store record in EEPROM
' Word values -> index + 2
' Alternate main routine
' Was Goto Look_About
MaxBytes
.
sensors
in the Main Routine. It's kind
into the
. It contains a
maneuver
in steps of 2. Each time
variable.
temp
command copies the
variable. Once
variable. The
Display_All
temp.NIB1
FOR...NEXT
is

Related parts for 27403