![]() |
WPILibC++ 2025.3.2
|
A wrapper around Driver Station control word. More...
#include <frc/DSControlWord.h>
Public Member Functions | |
| DSControlWord () | |
| DSControlWord constructor. | |
| bool | IsEnabled () const |
| Check if the DS has enabled the robot. | |
| bool | IsDisabled () const |
| Check if the robot is disabled. | |
| bool | IsEStopped () const |
| Check if the robot is e-stopped. | |
| bool | IsAutonomous () const |
| Check if the DS is commanding autonomous mode. | |
| bool | IsAutonomousEnabled () const |
| Check if the DS is commanding autonomous mode and if it has enabled the robot. | |
| bool | IsTeleop () const |
| Check if the DS is commanding teleop mode. | |
| bool | IsTeleopEnabled () const |
| Check if the DS is commanding teleop mode and if it has enabled the robot. | |
| bool | IsTest () const |
| Check if the DS is commanding test mode. | |
| bool | IsDSAttached () const |
| Check if the DS is attached. | |
| bool | IsFMSAttached () const |
| Is the driver station attached to a Field Management System? | |
A wrapper around Driver Station control word.
| frc::DSControlWord::DSControlWord | ( | ) |
DSControlWord constructor.
Upon construction, the current Driver Station control word is read and stored internally.
| bool frc::DSControlWord::IsAutonomous | ( | ) | const |
Check if the DS is commanding autonomous mode.
| bool frc::DSControlWord::IsAutonomousEnabled | ( | ) | const |
Check if the DS is commanding autonomous mode and if it has enabled the robot.
| bool frc::DSControlWord::IsDisabled | ( | ) | const |
Check if the robot is disabled.
| bool frc::DSControlWord::IsDSAttached | ( | ) | const |
Check if the DS is attached.
| bool frc::DSControlWord::IsEnabled | ( | ) | const |
Check if the DS has enabled the robot.
| bool frc::DSControlWord::IsEStopped | ( | ) | const |
Check if the robot is e-stopped.
| bool frc::DSControlWord::IsFMSAttached | ( | ) | const |
Is the driver station attached to a Field Management System?
| bool frc::DSControlWord::IsTeleop | ( | ) | const |
Check if the DS is commanding teleop mode.
| bool frc::DSControlWord::IsTeleopEnabled | ( | ) | const |
Check if the DS is commanding teleop mode and if it has enabled the robot.
| bool frc::DSControlWord::IsTest | ( | ) | const |
Check if the DS is commanding test mode.