View Single Post
  #1   Spotlight this post!  
Unread 14-02-2008, 13:09
mjbshaw mjbshaw is offline
Registered User
FRC #2484
 
Join Date: Feb 2008
Location: Bountiful, UT
Posts: 1
mjbshaw is an unknown quantity at this point
Arrow Autonomous and Operator Control modes

This is my first post on this site, so forgive me if I posted in the wrong forum.

My question is about Operator Control mode (teleoperated) and Autonomous mode. My team is #2484, and we are using easyC for the coding. I have read somewhere that there will be a main computer at the competition controlled by FIRST, and that main computer will control what mode your program is in, and that the computer calls the functions every 26.2 milliseconds.

Assuming I've correctly understood what I've read, does this mean that the main computer will call the autonomous() function every 26.2 milliseconds for the first 15 seconds of the competition, and then start calling the operatorcontrol() function every 26.2 milliseconds for teleoperated mode? We've been using a while loop to make our program run continuously, so would we have to change it for the actual competition? Do we not use a while loop at the competition?

Thanks in advance