A command that does nothing but ends after a specified match time or condition.
More...
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
| frc2::WaitUntilCommand::WaitUntilCommand |
( |
units::second_t | time | ) |
|
|
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.
The match time counts down when connected to FMS or the DS is in practice mode for the current mode. When the DS is not connected to FMS or in practice mode, the command will not wait.
- Parameters
-
| time | the match time after which to end, in seconds |
- See also
- frc::DriverStation::GetMatchTime()