WPILibC++ 2024.3.2
frc::RobotState Class Reference

Robot state utility functions. More...

#include <frc/RobotState.h>

Public Member Functions

 RobotState ()=delete
 

Static Public Member Functions

static bool IsDisabled ()
 Returns true if the robot is disabled. More...
 
static bool IsEnabled ()
 Returns true if the robot is enabled. More...
 
static bool IsEStopped ()
 Returns true if the robot is E-stopped. More...
 
static bool IsTeleop ()
 Returns true if the robot is in teleop mode. More...
 
static bool IsAutonomous ()
 Returns true if the robot is in autonomous mode. More...
 
static bool IsTest ()
 Returns true if the robot is in test mode. More...
 

Detailed Description

Robot state utility functions.

Constructor & Destructor Documentation

◆ RobotState()

frc::RobotState::RobotState ( )
delete

Member Function Documentation

◆ IsAutonomous()

static bool frc::RobotState::IsAutonomous ( )
static

Returns true if the robot is in autonomous mode.

Returns
True if the robot is in autonomous mode.

◆ IsDisabled()

static bool frc::RobotState::IsDisabled ( )
static

Returns true if the robot is disabled.

Returns
True if the robot is disabled.

◆ IsEnabled()

static bool frc::RobotState::IsEnabled ( )
static

Returns true if the robot is enabled.

Returns
True if the robot is enabled.

◆ IsEStopped()

static bool frc::RobotState::IsEStopped ( )
static

Returns true if the robot is E-stopped.

Returns
True if the robot is E-stopped.

◆ IsTeleop()

static bool frc::RobotState::IsTeleop ( )
static

Returns true if the robot is in teleop mode.

Returns
True if the robot is in teleop mode.

◆ IsTest()

static bool frc::RobotState::IsTest ( )
static

Returns true if the robot is in test mode.

Returns
True if the robot is in test mode.

The documentation for this class was generated from the following file: