WPILibC++ 2024.3.2
frc2::RobotModeTriggers Class Reference

A class containing static Trigger factories for running callbacks when robot mode changes. More...

#include <frc2/command/button/RobotModeTriggers.h>

Public Member Functions

 RobotModeTriggers ()=delete
 

Static Public Member Functions

static Trigger Autonomous ()
 Returns a trigger that is true when the robot is enabled in autonomous mode. More...
 
static Trigger Teleop ()
 Returns a trigger that is true when the robot is enabled in teleop mode. More...
 
static Trigger Disabled ()
 Returns a trigger that is true when the robot is disabled. More...
 
static Trigger Test ()
 Returns a trigger that is true when the robot is enabled in test mode. More...
 

Detailed Description

A class containing static Trigger factories for running callbacks when robot mode changes.

Constructor & Destructor Documentation

◆ RobotModeTriggers()

frc2::RobotModeTriggers::RobotModeTriggers ( )
delete

Member Function Documentation

◆ 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: