|
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!
|