Quote:
Originally Posted by yoyodyne
I don't know for a fact what the competition port sequence is this year but User_Autonomous_Code() gets called from main() if autonomous_mode is set regardless of the independent disabled_mode flag.
|
My testing two years ago shows that the flags are
not independent. When the "disable" pin on the competition port is grounded, the
disabled_mode flag goes active as expected, but the
autonomous_mode flag remains inactive whether or not the "autonomous" pin is grounded. I can state with absolute certainty that
User_Autonomous_Code does not get called until
disabled_mode goes away, indicating that being disabled keeps
autonomous_mode from being true.
Quote:
|
Do you know what the timing is for 2007?
|
The timing of the pins is not particularly important. The "autonomous" pin obviously activates some time before the "disable" pin is released, but your code will see the flags change state simultaneously at the beginning of the match (and at the end of the autonomous period).