View Single Post
  #2   Spotlight this post!  
Unread 24-01-2002, 09:08
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 order of arguments for the Serin and Serout commands in the Robot Controller's User CPU are determined by the internal structure of the RC, and the requested data from the Master CPU in your "DEFINE CONSTANTS FOR INITIALIZATION" section. Whatever constants you define as 1 in that section will be returned to you in your SERIN command IN THE ORDER THEY ARE LISTED IN THE CONSTANTS FOR INITIALIZATION SECTION OF THE DEFAULT CODE. (VERY IMPORTANT!) The SEROUT order is FIXED, and the comment above the command in the default code shows the order that the Output CPU is expecting the data. ANY change from this order will have unexpected results.

Take a look at the default code, that will show you the necessary order.
__________________
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...