10 #include <units/units.h>
12 #include "frc2/Timer.h"
13 #include "frc2/command/CommandBase.h"
14 #include "frc2/command/CommandHelper.h"
38 void End(
bool interrupted)
override;
48 units::second_t m_duration;
WaitCommand(units::second_t duration)
Creates a new WaitCommand.
void End(bool interrupted) override
The action to take when the command ends.
A wrapper for the frc::Timer class that returns unit-typed values.
Definition: Timer.h:40
bool RunsWhenDisabled() const override
Whether the given command should run when the robot is disabled.
void Initialize() override
The initial subroutine of a command.
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:22
bool IsFinished() override
Whether the command has finished.