8#include <initializer_list>
36 std::initializer_list<Subsystem*> requirements);
47 std::span<Subsystem* const> requirements = {});
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:25
A command that runs a given runnable when it is initialized, and another runnable when it ends.
Definition: StartEndCommand.h:25
StartEndCommand(std::function< void()> onInit, std::function< void()> onEnd, std::span< Subsystem *const > requirements={})
Creates a new StartEndCommand.
StartEndCommand(StartEndCommand &&other)=default
StartEndCommand(const StartEndCommand &other)=default
StartEndCommand(std::function< void()> onInit, std::function< void()> onEnd, std::initializer_list< Subsystem * > requirements)
Creates a new StartEndCommand.
Definition: ProfiledPIDCommand.h:18