8#include <initializer_list>
32 std::initializer_list<Subsystem*> requirements);
42 std::span<Subsystem* const> requirements = {});
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:25
A Command that runs instantly; it will initialize, execute once, and end on the same iteration of the...
Definition: InstantCommand.h:22
InstantCommand(std::function< void()> toRun, std::initializer_list< Subsystem * > requirements)
Creates a new InstantCommand that runs the given Runnable with the given requirements.
InstantCommand(InstantCommand &&other)=default
InstantCommand()
Creates a new InstantCommand with a Runnable that does nothing.
InstantCommand(std::function< void()> toRun, std::span< Subsystem *const > requirements={})
Creates a new InstantCommand that runs the given Runnable with the given requirements.
InstantCommand(const InstantCommand &other)=default
Definition: ProfiledPIDCommand.h:18