View Single Post
  #5   Spotlight this post!  
Unread 24-01-2002, 09:13
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
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...