Quote:
Originally Posted by NotInControl
There is no difference between AutoDisabled and TeleopDisabled from the programming perspective. There are the same state.
While that is the text that is displayed in the driversation, in the codebase they are represented by the same two functions.
|
Just to be
really clear

, from a programming perspective they are two different states.
Even though the WPI framework calls the same disabledInit() and disabledPeriodic() functions irrespective of whether you're in Auto/Teleop/Test, in your code you can use the isAutonomous(), isOperatorControl(), and isTest() functions to distinguish what state you're in if you really need to.