View Single Post
  #3   Spotlight this post!  
Unread 14-02-2008, 13:59
Peter H Peter H is offline
Registered User
FRC #1606 (Dragons)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Oyster Bay NY
Posts: 21
Peter H is an unknown quantity at this point
Re: Autonomous and Operator Control modes

Do not use a while loop.

There is much documentation covering the robot and operator interface. The "Full-Size RC Reference Guide", section 1, discusses the 2 microcontrollers in the Robot Controller - Master Processor and User Processor. Section 13 discusses autonomous mode. Also see "2004 Programming Reference Guide", sections 1.1 and 6.4.

The User Processor calls user_routines_fast / User_Autonomous_Code every 26.2 millisec in autonomous mode. It calls user_routines / Process_Data_From_Master_uP every 26.2 millisec in user mode.

To test autonomous mode, best is to build a Competition Port Adapter, discussed in "Operator Interface Reference Guide", section 6. Include the disable switch!