2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
argos_lib::triggers Namespace Reference

Functions

frc2::Trigger OneOf (std::vector< frc2::Trigger > triggers)
 Generates composite trigger that is true when exactly one of the triggers is true.
 
frc2::Trigger NoneOf (std::vector< frc2::Trigger > triggers)
 Generates composite trigger that is true when none of the triggers is true.
 
frc2::Trigger AnyOf (std::vector< frc2::Trigger > triggers)
 Generates composite trigger that is true when any of the triggers is true.
 
frc2::Trigger AllOf (std::vector< frc2::Trigger > triggers)
 Generates composite trigger that is true when all of the triggers are true.
 

Function Documentation

◆ AllOf()

frc2::Trigger argos_lib::triggers::AllOf ( std::vector< frc2::Trigger >  triggers)

Generates composite trigger that is true when all of the triggers are true.

Parameters
triggersTriggers to check
Returns
frc2::Trigger Composite trigger

◆ AnyOf()

frc2::Trigger argos_lib::triggers::AnyOf ( std::vector< frc2::Trigger >  triggers)

Generates composite trigger that is true when any of the triggers is true.

Parameters
triggersTriggers to check
Returns
frc2::Trigger Composite trigger

◆ NoneOf()

frc2::Trigger argos_lib::triggers::NoneOf ( std::vector< frc2::Trigger >  triggers)

Generates composite trigger that is true when none of the triggers is true.

Parameters
triggersTriggers to check
Returns
frc2::Trigger Composite trigger

◆ OneOf()

frc2::Trigger argos_lib::triggers::OneOf ( std::vector< frc2::Trigger >  triggers)

Generates composite trigger that is true when exactly one of the triggers is true.

Parameters
triggersTriggers to check
Returns
frc2::Trigger Composite trigger