A class containing static Trigger factories for running callbacks when robot mode changes.
More...
#include <frc2/command/button/RobotModeTriggers.h>
A class containing static Trigger factories for running callbacks when robot mode changes.
◆ RobotModeTriggers()
frc2::RobotModeTriggers::RobotModeTriggers |
( |
| ) |
|
|
delete |
◆ Autonomous()
static Trigger frc2::RobotModeTriggers::Autonomous |
( |
| ) |
|
|
static |
Returns a trigger that is true when the robot is enabled in autonomous mode.
- Returns
- A trigger that is true when the robot is enabled in autonomous mode.
◆ Disabled()
static Trigger frc2::RobotModeTriggers::Disabled |
( |
| ) |
|
|
static |
Returns a trigger that is true when the robot is disabled.
- Returns
- A trigger that is true when the robot is disabled.
◆ Teleop()
static Trigger frc2::RobotModeTriggers::Teleop |
( |
| ) |
|
|
static |
Returns a trigger that is true when the robot is enabled in teleop mode.
- Returns
- A trigger that is true when the robot is enabled in teleop mode.
◆ Test()
static Trigger frc2::RobotModeTriggers::Test |
( |
| ) |
|
|
static |
Returns a trigger that is true when the robot is enabled in test mode.
- Returns
- A trigger that is true when the robot is enabled in test mode.
The documentation for this class was generated from the following file: