![]() |
WPILibC++ 2027.0.0-alpha-4
|
A command that does nothing but takes a specified amount of time to finish. More...
#include <wpi/commands2/WaitCommand.hpp>
Public Member Functions | |
| WaitCommand (wpi::units::second_t duration) | |
| Creates a new WaitCommand. | |
| 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::util::SendableBuilder &builder) override |
| Public Member Functions inherited from wpi::cmd::CommandHelper< Command, WaitCommand > | |
| CommandHelper ()=default | |
| CommandPtr | ToPtr () &&override |
Protected Attributes | |
| wpi::Timer | m_timer |
| The timer used for waiting. | |
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.