View Single Post
  #5   Spotlight this post!  
Unread 06-02-2008, 12:22
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,815
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Rookie Team - Autonomous Mode Question

If you're using one of the standard code bases out there (either the one from last year on ifi's website or Kevin's from the thread at the top of this forum or easy C), then yup. You just have to fill in your parts. The init functions in both of those bases are called once, then the other portion is called repeatedly every 26.2ms until the state switches. You don't have to worry about the logic to switch between autonomous and user control.

The only thing you got wrong was "And then before the competition the staff attaches a piece of hardware to the Competition port on the Operator Interface board"... They have the cable there in every player station, but you're the one that has to attach it to your OI!