27403 Parallax Inc, 27403 Datasheet - Page 190

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
ACTIVITY #6: FULLY FUNCTIONAL SUMO EXAMPLE PROGRAMS
This activity features two fully functional SumoBot example programs. While they both
do the same things; they are organized a little differently.
combination of the example programs, mainly from this chapter. The second has the
code for each state moved to subroutines.
First Sumo Program - Navigation Code in Main Routine
This first example program followed the same steps used in Chapter 2, Activity #6 for
integrating programs. The three programs that were combined were:
Example Program: TestSumoWrestler.bs2
SearchPatternAndAvoidTawara.bs2 from Activity #6 in this chapter.
FrontAndSideIrNavigation.bs2 from Activity #3 in this chapter.
TestResetButton.bs2 from Chapter 2, Activity #2.
Pick a sumo start card from Activity #3, Figure 4-7.
Download TestSumoWrestler.bs2 to one SumoBot A and place it in the practice
ring in position A.
Save TestSumoWrestler.bs2 as MySumoWrestler.bs2.
Incorporate your search pattern into the Main Routine.
Download that program to SumoBot B.
Place it in the practice ring in position B.
Press/release both SumoBots' Reset buttons simultaneously.
Fine tune the MySumoWrestler.bs2 program for victory.
After enough tests to determine the probability of victory, make sure to repeat
the test with the programs swapped. SumoBot A gets SumoBot B's program and
vice versa.
Did you skip ahead to get here? If you skipped any thing in Chapter 3 or 4, go back
and do it now.
The programs that follow are dependent upon the sensor circuits built, tested and calibrated
in the previous activities in Chapter 3 and 4.
The first is simply a

Related parts for 27403