|
The STAMP2/SX processor within the robot controller does not have the variable space to retrieve every possible input value for your program to use. Therefore, the block of code you mentioned is required to tell the Master CPU which variables you want sent to your code in the SERIN command. To do this, set the corresponding constant for each value you want to use in the "Define Constants for Initialization" section to 1. Note, as it has been previously mentioned, the order these variables arrive is FIXED(see the comments above serin in the default code), but the constants determine which of the possible variables you will recieve.
General rule for looking at the default code: If it says "do not change", DON'T
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
|