35 void End(
bool interrupted)
override;
47 units::second_t m_duration;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:26
A command that does nothing but takes a specified amount of time to finish.
Definition: WaitCommand.h:19
WaitCommand(WaitCommand &&other)=default
WaitCommand(units::second_t duration)
Creates a new WaitCommand.
bool IsFinished() override
Whether the command has finished.
WaitCommand(const WaitCommand &other)=default
frc::Timer m_timer
Definition: WaitCommand.h:44
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
void End(bool interrupted) override
The action to take when the command ends.
bool RunsWhenDisabled() const override
Whether the given command should run when the robot is disabled.
void Initialize() override
The initial subroutine of a command.
A timer class.
Definition: Timer.h:36
Definition: SendableBuilder.h:18
Definition: InstantCommand.h:14