2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
trigger_composition.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc2/command/button/Trigger.h>
8
9#include <vector>
10
11namespace argos_lib {
12 namespace triggers {
19 frc2::Trigger OneOf(std::vector<frc2::Trigger> triggers);
20
27 frc2::Trigger NoneOf(std::vector<frc2::Trigger> triggers);
28
35 frc2::Trigger AnyOf(std::vector<frc2::Trigger> triggers);
36
43 frc2::Trigger AllOf(std::vector<frc2::Trigger> triggers);
44 } // namespace triggers
45} // namespace argos_lib
frc2::Trigger AnyOf(std::vector< frc2::Trigger > triggers)
Generates composite trigger that is true when any of the triggers is true.
Definition trigger_composition.cpp:59
frc2::Trigger NoneOf(std::vector< frc2::Trigger > triggers)
Generates composite trigger that is true when none of the triggers is true.
Definition trigger_composition.cpp:55
frc2::Trigger AllOf(std::vector< frc2::Trigger > triggers)
Generates composite trigger that is true when all of the triggers are true.
Definition trigger_composition.cpp:63
frc2::Trigger OneOf(std::vector< frc2::Trigger > triggers)
Generates composite trigger that is true when exactly one of the triggers is true.
Definition trigger_composition.cpp:35
Definition swap_controllers_command.h:12