Setting the default autonomous command

Since a command is simply one or more actions (behaviors) that the robot performs, it makes sense to describe the autonomous operation of a robot as a command. While it could be a single command, it is more likely going to be a command group (a group of commands that happen together).

To designate a command that runs when the robot starts during the autonomous period of a competition:

  1. Select the robot in the robot program description
  2. Fill in the Autonomous command field with the command that should run when the robot is placed in autonomous mode. This is a drop-down field and will give you the option to select any command that has been defined.
  3. Set the parameters the command takes, if any

When the robot is put into autonomous mode, the defined Autonomous command will be scheduled.

See: Creating a command and Setting the default command for a subsystem.

0 Report Errors

Use this form to report any errors with the documentation. For help with WPILib, please use the FIRST Forums at For reporting WPILib bugs, please submit an issue on GitHub at