A class containing static Trigger factories for running callbacks when robot mode changes.
More...
#include <wpi/commands2/button/RobotModeTriggers.hpp>
|
| static Trigger | Autonomous () |
| | Returns a trigger that is true when the robot is enabled in autonomous mode.
|
| static Trigger | Teleop () |
| | Returns a trigger that is true when the robot is enabled in teleop mode.
|
| static Trigger | Disabled () |
| | Returns a trigger that is true when the robot is disabled.
|
| static Trigger | Utility () |
| | Returns a trigger that is true when the robot is enabled in utility mode.
|
A class containing static Trigger factories for running callbacks when robot mode changes.
◆ RobotModeTriggers()
| wpi::cmd::RobotModeTriggers::RobotModeTriggers |
( |
| ) |
|
|
delete |
◆ Autonomous()
| Trigger wpi::cmd::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()
| Trigger wpi::cmd::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()
| Trigger wpi::cmd::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.
◆ Utility()
| Trigger wpi::cmd::RobotModeTriggers::Utility |
( |
| ) |
|
|
static |
Returns a trigger that is true when the robot is enabled in utility mode.
- Returns
- A trigger that is true when the robot is enabled in utility mode.
The documentation for this class was generated from the following file: