Thread: disabledInit()
View Single Post
  #2   Spotlight this post!  
Unread 14-03-2014, 17:43
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: disabledInit()

Quote:
Originally Posted by NotInControl View Post
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.