135 std::string_view group, std::string_view description,
139 mode,
name, group, description, textColor, backgroundColor);
155 std::string_view group = {},
156 std::string_view description = {}) {
@ name
Definition base.h:690
static bool IsOpMode(int64_t id)
Check to see if the selected operating mode is a particular value.
Definition RobotState.hpp:223
static bool IsAutonomousEnabled()
Check if the DS is commanding autonomous mode and if it has enabled the robot.
Definition RobotState.hpp:78
static bool IsEnabled()
Check if the DS has enabled the robot.
Definition RobotState.hpp:29
static int64_t AddOpMode(RobotMode mode, std::string_view name, std::string_view group, std::string_view description, const wpi::util::Color &textColor, const wpi::util::Color &backgroundColor)
Adds an operating mode option.
Definition RobotState.hpp:134
static int64_t RemoveOpMode(RobotMode mode, std::string_view name)
Removes an operating mode option.
Definition RobotState.hpp:169
static void PublishOpModes()
Publishes the operating mode options to the driver station.
Definition RobotState.hpp:176
static bool IsTeleop()
Check if the DS is commanding teleop mode.
Definition RobotState.hpp:87
static bool IsUtilityEnabled()
Check if the DS is commanding Utility mode and if it has enabled the robot.
Definition RobotState.hpp:116
static bool IsDSAttached()
Check if the DS is attached.
Definition RobotState.hpp:243
static int64_t GetOpModeId()
Gets the operating mode selected on the driver station.
Definition RobotState.hpp:198
static bool IsEStopped()
Check if the robot is e-stopped.
Definition RobotState.hpp:47
static bool IsFMSAttached()
Is the driver station attached to a Field Management System?
Definition RobotState.hpp:253
static bool IsTeleopEnabled()
Check if the DS is commanding teleop mode and if it has enabled the robot.
Definition RobotState.hpp:97
static bool IsOpMode(std::string_view mode)
Check to see if the selected operating mode is a particular value.
Definition RobotState.hpp:234
static void ClearOpModes()
Clears all operating mode options and publishes an empty list to the driver station.
Definition RobotState.hpp:184
static int64_t AddOpMode(RobotMode mode, std::string_view name, std::string_view group={}, std::string_view description={})
Adds an operating mode option.
Definition RobotState.hpp:154
static bool IsDisabled()
Check if the robot is disabled.
Definition RobotState.hpp:38
static RobotMode GetRobotMode()
Gets the current robot mode.
Definition RobotState.hpp:58
static std::string GetOpMode()
Gets the operating mode selected on the driver station.
Definition RobotState.hpp:212
static bool IsAutonomous()
Check if the DS is commanding autonomous mode.
Definition RobotState.hpp:67
static bool IsUtility()
Check if the DS is commanding utility mode.
Definition RobotState.hpp:106
static bool IsDisabled()
Check if the robot is disabled.
Definition DriverStationBackend.hpp:253
static RobotMode GetRobotMode()
Gets the current robot mode.
Definition DriverStationBackend.hpp:270
static bool IsEStopped()
Check if the robot is e-stopped.
Definition DriverStationBackend.hpp:260
static bool IsAutonomous()
Check if the DS is commanding autonomous mode.
Definition DriverStationBackend.hpp:277
static bool IsTeleop()
Check if the DS is commanding teleop mode.
Definition DriverStationBackend.hpp:295
static int64_t AddOpMode(RobotMode mode, std::string_view name, std::string_view group, std::string_view description, const wpi::util::Color &textColor, const wpi::util::Color &backgroundColor)
Adds an operating mode option.
static bool IsUtility()
Check if the DS is commanding utility mode.
Definition DriverStationBackend.hpp:310
static bool IsTeleopEnabled()
Check if the DS is commanding teleop mode and if it has enabled the robot.
Definition DriverStationBackend.hpp:303
static bool IsEnabled()
Check if the DS has enabled the robot.
Definition DriverStationBackend.hpp:243
static int64_t GetOpModeId()
Gets the operating mode selected on the driver station.
static int64_t RemoveOpMode(RobotMode mode, std::string_view name)
Removes an operating mode option.
static bool IsUtilityEnabled()
Check if the DS is commanding Utility mode and if it has enabled the robot.
Definition DriverStationBackend.hpp:318
static std::string GetOpMode()
Gets the operating mode selected on the driver station.
static void ClearOpModes()
Clears all operating mode options and publishes an empty list to the driver station.
static bool IsOpMode(int64_t id)
Check to see if the selected operating mode is a particular value.
Definition DriverStationBackend.hpp:421
static bool IsFMSAttached()
Is the driver station attached to a Field Management System?
Definition DriverStationBackend.hpp:445
static bool IsAutonomousEnabled()
Check if the DS is commanding autonomous mode and if it has enabled the robot.
Definition DriverStationBackend.hpp:286
static void PublishOpModes()
Publishes the operating mode options to the driver station.
static bool IsDSAttached()
Check if the DS is attached.
Definition DriverStationBackend.hpp:437
Represents colors that can be used with Addressable LEDs.
Definition Color.hpp:42
RobotMode
The overall robot mode (not including enabled state).
Definition DriverStationTypes.hpp:15
Definition CvSource.hpp:15