FIRST Robotics Competition Documents

Showing results for 
Search instead for 
Did you mean: 

[FRC2016] FRC Robot Modes / States Explained

by Active Participant StephenB on ‎03-03-2009 01:32 PM

The robot state is governed by a variety of inputs. Knowing how these are used in programming and displayed on the driver station are critical to using and debugging the roboRIO.

A robot can:

  • Be enabled or disabled
  • Be in autonomous or teleoperated mode
  • Maintain or lose network communication
  • Have code installed on the roboRIO or not

Please note!

All information here about what the Field Management System (FMS) does is what I learned in discussions with FIRST's engineers and my own personal experience at a regional. National Instruments did not make the FMS and does not support it. While we will do everything we can to help, NI should not be considered the expert on such matters.

Enabled/Disabled

This state is displayed by the toggle in the lower left-hand of the driver station. Both teleoperated and autonomous states will need to be enabled. When the station is plugged into the FMS, the FMS controls this.

DriverStationGood.png

Figure 1: Enabled Driver Station

Autonomous/Teleoperated

This state is changed depending on whether the teleoperated or autonomous window is selected and subsequently enabled. A messaged will display on the driver station indicating which mode is enabled. When the station is plugged into the FMS, the FMS controls this.

EnabledTeleop.png

Figure 2: Enabled Teleoperated Mode

Network Communication States

This state is displayed with the battery voltage indicator and the ‘Communications’ light on the driver station. If communication is maintained, the voltage of the battery will be continuously updated, and the indicator will be green. The COMM LED on the roboRIO will also be green.  If there is no communication, the battery voltage will be blank, and the battery indicator and the ‘Communications’ Indicator will be red.

AutoEnabled.png                                                                         NoComms.png

           Figure 3: Communications Enabled                                                                          Figure 4: No Robot Communication   

Robot Code State

This state is displayed with the ‘Robot Code’ indicator. If code has been deployed successfully to the roboRIO, this indicator will be green. If there is no code running on the roboRIO, this indicator will be red. Note that you may need to restart your roboRIO after deploying code to make sure the program begins running.

AutoEnabled.png                                                                       NoCode.png

Figure 5: Robot Code successfully deployed                                                                      Figure 6: No Robot Code deployed     

                         

When programming, there are four main states that should govern the way your program works.

  1. Autonomous Disabled—the state the robot is in when it is powered on
  2. Autonomous Enabled—the state of the robot for the first 15 seconds of the match
  3. Teleoperated Disabled—the state of the robot after the 15-second autonomous portion has finished
  4. Teleoperated Enabled—the state of the robot for the remainder of the match.

You can monitor these states with the robot mode VIs and functions in LabVIEW. Good luck!