WPILibC++ 2024.3.2
|
A command that does nothing but takes a specified amount of time to finish. More...
#include <frc2/command/WaitCommand.h>
Public Member Functions | |
WaitCommand (units::second_t duration) | |
Creates a new WaitCommand. More... | |
WaitCommand (WaitCommand &&other)=default | |
WaitCommand (const WaitCommand &other)=default | |
void | Initialize () override |
void | End (bool interrupted) override |
bool | IsFinished () override |
bool | RunsWhenDisabled () const override |
void | InitSendable (wpi::SendableBuilder &builder) override |
Public Member Functions inherited from frc2::CommandHelper< Command, WaitCommand > | |
CommandHelper ()=default | |
CommandPtr | ToPtr () &&override |
Protected Attributes | |
frc::Timer | m_timer |
The timer used for waiting. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from frc2::CommandHelper< Command, WaitCommand > | |
std::unique_ptr< Command > | TransferOwnership () &&override |
A command that does nothing but takes a specified amount of time to finish.
This class is provided by the NewCommands VendorDep
|
explicit |
Creates a new WaitCommand.
This command will do nothing, and end after the specified duration.
duration | the time to wait |
|
default |
|
default |
|
override |
|
override |
|
override |
|
override |
|
override |
|
protected |
The timer used for waiting.