11 #include <initializer_list>
13 #include <wpi/ArrayRef.h>
15 #include "frc2/command/CommandBase.h"
16 #include "frc2/command/CommandHelper.h"
34 std::initializer_list<Subsystem*> requirements);
61 std::function<void()> m_toRun;
bool IsFinished() final
Whether the command has finished.
A Command that runs instantly; it will initialize, execute once, and end on the same iteration of the...
Definition: InstantCommand.h:24
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:42
void Initialize() override
The initial subroutine of a command.
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:26
InstantCommand()
Creates a new InstantCommand with a Runnable that does nothing.