27404 Parallax Inc, 27404 Datasheet - Page 73

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
Your Turn
ACTIVITY #6: INTEGRATING PROGRAMS
PBASIC application programs typically contain the following sections:
There are several reasons for all these sections. First, it helps prevent larger programs
from getting out of hand by keeping them well organized. Second, it makes the program
more readable. Third, it helps keep the elements in each program modular.
Modular program components are really important. Why? Because it makes it possible
to re-use components from a previous project in new projects. For example, let's say you
move on from SumoBots to a complex maze solving contest. If you developed lots of
valuable techniques with your SumoBot, you may want to copy selected subroutines into
the maze solving robot's program. If your code follows conventions to keep it modular,
you'll be able to do this with minimal hassle.
NEXT
RETURN
NEXT
PAUSE 1000
IF pbSense = 0 THEN
ENDIF
WRITE ModeSelect, temp
EXIT
Try modifying PushbuttonMode.bs2 so that you can choose different forward
distances to make the SumoBot travel in case you have to repeat plow
adjustments or other tests.
Title or heading information
Compiler definitions
I/O Definitions
Constant declarations
Variable declarations
EEPROM Data
Initialization
Main Routine
Subroutines
' 1 second between beeps
' Button released?
' Record mode to EEPROM
' Exit FOR...NEXT loop

Related parts for 27404