11 #include <initializer_list>
14 #include <wpi/ArrayRef.h>
33 explicit Button(std::function<
bool()> isPressed);
62 template <
class T,
typename = std::enable_if_t<std::is_base_of_v<
63 Command, std::remove_reference_t<T>>>>
65 WhenActive(std::forward<T>(command), interruptible);
76 std::initializer_list<Subsystem*> requirements);
108 template <
class T,
typename = std::enable_if_t<std::is_base_of_v<
109 Command, std::remove_reference_t<T>>>>
122 std::initializer_list<Subsystem*> requirements);
154 template <
class T,
typename = std::enable_if_t<std::is_base_of_v<
155 Command, std::remove_reference_t<T>>>>
182 template <
class T,
typename = std::enable_if_t<std::is_base_of_v<
183 Command, std::remove_reference_t<T>>>>
196 std::initializer_list<Subsystem*> requirements);
228 template <
class T,
typename = std::enable_if_t<std::is_base_of_v<
229 Command, std::remove_reference_t<T>>>>
A class used to bind command scheduling to events.
Definition: Trigger.h:30
Trigger WhileActiveOnce(Command *command, bool interruptible=true)
Binds a command to be started when the trigger becomes active, and cancelled when it becomes inactive...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:42
A state machine representing a complete action to be performed by the robot.
Definition: Command.h:52
Trigger WhenInactive(Command *command, bool interruptible=true)
Binds a command to start when the trigger becomes inactive.
Trigger WhenActive(Command *command, bool interruptible=true)
Binds a command to start when the trigger becomes active.
Trigger ToggleWhenActive(Command *command, bool interruptible=true)
Binds a command to start when the trigger becomes active, and be cancelled when it again becomes acti...
Trigger WhileActiveContinous(Command *command, bool interruptible=true)
Binds a command to be started repeatedly while the trigger is active, and cancelled when it becomes i...