Paul's Tutorials - logo4-2Disabled Routines



This lesson is all about the Disabled routines. Disabled mode runs when the robot is not enabled (when the 'disabled' button is highlighted on the driver station).

Restrictions

Disabled mode is the most restricted mode. In Disabled, robots cannot actuate anything on the robot. This means that victors, jaguars, talons, and even spikes cannot be changed in this mode (even if you have a spike attached to a light and not a motor).

However, you can read from sensors, read from the controller inputs, and print information to the driver station or SmartDashboard.

Programming in Disabled

Remember that, when you are programming in Disabled, you are still programming in a periodic routine (outside of initialization). As such, you should take all considerations regarding CPU looping into account when you program in Disabled.

Uses

Disabled is largely used to perform setup on the robot (choose autonomous strategy and adjusting an offset for PID subsystems), but can be used for any other setup related task (self-checks, etc) before the start of a match.

If you are using Disabled to set up the robot for Autonomous, it should generally do the following:

You should be aware that, if your code is deployed to run on the robot when the drivers are driving it, it is possible they may hit a button on the controller without knowing, causing the robot to perform an unwanted autonomous strategy.

Activity

Redo the activity from lesson 2-1 in Disabled mode.

Additionally, have the robot show you all of its sensor values in Disabled mode.


← 4-1 Initialization Routines 4-2 Disabled Routines 4-3 Autonomous Routines →