Testing commands

Commands represent robot behaviors such as moving an elevator to a position, collecting balls, shooting, or other tasks. It is desirable to test commands on the robot as they are written before combining them into more complex commands or incorporating them into other parts of the robot program. With a single line of code you can display commands on the SmartDashboard that appear as buttons that run the commands when pressed. This makes robot debugging a much simpler process than before.

Robot project with a number of commands that need testing

Robot project with a number of commands that need testing

Adding command instances to the SmartDashboard

Adding command instances to the SmartDashboard

Commands in the SmartDashboard

Commands in the SmartDashboard