RobotState

class wpilib.RobotState

Bases: pybind11_object

Robot state utility functions.

static isAutonomous() → bool

Returns true if the robot is in autonomous mode.

Returns:

True if the robot is in autonomous mode.

static isDisabled() → bool

Returns true if the robot is disabled.

Returns:

True if the robot is disabled.

static isEStopped() → bool

Returns true if the robot is E-stopped.

Returns:

True if the robot is E-stopped.

static isEnabled() → bool

Returns true if the robot is enabled.

Returns:

True if the robot is enabled.

static isTeleop() → bool

Returns true if the robot is in teleop mode.

Returns:

True if the robot is in teleop mode.

static isTest() → bool

Returns true if the robot is in test mode.

Returns:

True if the robot is in test mode.