|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: Timer Question
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." |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timer questions | Rick TYler | Programming | 3 | 12-02-2006 19:24 |
| Quick Timer Question | et1337 | Programming | 3 | 02-02-2006 15:19 |
| Accelerometer Timer Question | psquared | Programming | 3 | 12-02-2005 01:34 |
| timer | omega | Programming | 3 | 30-03-2004 18:52 |
| Timer Preview | Nate Smith | General Forum | 2 | 05-03-2003 12:25 |