WPILibC++ 2024.3.2
|
A command that does nothing but ends after a specified match time or condition. More...
#include <frc2/command/WaitUntilCommand.h>
Public Member Functions | |
WaitUntilCommand (std::function< bool()> condition) | |
Creates a new WaitUntilCommand that ends after a given condition becomes true. More... | |
WaitUntilCommand (units::second_t time) | |
Creates a new WaitUntilCommand that ends after a given match time. More... | |
WaitUntilCommand (WaitUntilCommand &&other)=default | |
WaitUntilCommand (const WaitUntilCommand &other)=default | |
bool | IsFinished () override |
bool | RunsWhenDisabled () const override |
Public Member Functions inherited from frc2::CommandHelper< Command, WaitUntilCommand > | |
CommandHelper ()=default | |
CommandPtr | ToPtr () &&override |
Additional Inherited Members | |
Protected Member Functions inherited from frc2::CommandHelper< Command, WaitUntilCommand > | |
std::unique_ptr< Command > | TransferOwnership () &&override |
A command that does nothing but ends after a specified match time or condition.
Useful for CommandGroups.
This class is provided by the NewCommands VendorDep
|
explicit |
Creates a new WaitUntilCommand that ends after a given condition becomes true.
condition | the condition to determine when to end |
|
explicit |
Creates a new WaitUntilCommand that ends after a given match time.
NOTE: The match timer used for this command is UNOFFICIAL. Using this command does NOT guarantee that the time at which the action is performed will be judged to be legal by the referees. When in doubt, add a safety factor or time the action manually.
time | the match time after which to end, in seconds |
|
default |
|
default |
|
override |
|
override |