There is a global variable named "disabled_mode" that is set true for a while after autonomous_mode is set to true and your autonomous code will start. What will happen is you will turn on PWM output for the motors but nothing will happen because the robot is disabled. The 15 sec autonomous period does not start until disabled_mode is set to false.
Check out Mark's post on this thread.
http://www.chiefdelphi.com/forums/sh... onomous_mode
"
Re: _mode flag summary??
--------------------------------------------------------------------------------
Last year we reset our autonomous whenever the robot was disabled. The drivers didn't have to remember to reset for the second practice match.
Last year the actual sequence at the SBPLI Regional was:
Disable bit set before the match started
Both disable and autonomous bits set
Then disable was turned off to start the autonomous mode
Finally the autonomous bit went off as the user_mode came on
One team had their autonomous timer ticking off while the robot was disabled at the beginning of the match, so the robot always thought it was partway or completely through the 15 seconds, before they were enabled and allowed to move."