Thread: disabledInit()
View Single Post
  #4   Spotlight this post!  
Unread 14-03-2014, 16:20
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: disabledInit()

Quote:
Originally Posted by Cecil View Post
The robot will be disabled during the transition from auto to teleop. The sequence will go like this:

Auto Disabled > Auto Enabled > Auto Disabled > Teleop Disabled > Teleop Enabled > Teleop Disabled
Just a clarification.

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. DisabledInit() and DisabledPeriodic().

The Robot will go into disable mode when going from autonomous to teleop or anytime the robot is disabled.

Each time this happens, disabledInit() will run once, and then DisabledPeriodic() will run 50 times a second.

For further information. When the robot is first turned on it will first run RobotInit(), then DisabledInit(), then disabledPerioid().

Each time auto or teleop mode is entered, their corresponding init and periodic functions are called in the same manner as the disabled ones.

Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 14-03-2014 at 16:31.