WPILibC++ 2023.4.3
|
A wrapper around Driver Station control word. More...
#include <frc/DSControlWord.h>
Public Member Functions | |
DSControlWord () | |
DSControlWord constructor. More... | |
bool | IsEnabled () const |
Check if the DS has enabled the robot. More... | |
bool | IsDisabled () const |
Check if the robot is disabled. More... | |
bool | IsEStopped () const |
Check if the robot is e-stopped. More... | |
bool | IsAutonomous () const |
Check if the DS is commanding autonomous mode. More... | |
bool | IsAutonomousEnabled () const |
Check if the DS is commanding autonomous mode and if it has enabled the robot. More... | |
bool | IsTeleop () const |
Check if the DS is commanding teleop mode. More... | |
bool | IsTeleopEnabled () const |
Check if the DS is commanding teleop mode and if it has enabled the robot. More... | |
bool | IsTest () const |
Check if the DS is commanding test mode. More... | |
bool | IsDSAttached () const |
Check if the DS is attached. More... | |
bool | IsFMSAttached () const |
Is the driver station attached to a Field Management System? More... | |
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.