public class WaitCommand extends TimedCommand
WaitCommand
will wait for a certain amount of time before finishing. It is useful if
you want a CommandGroup
to pause for a moment.CommandGroup
Constructor and Description |
---|
WaitCommand(double timeout)
Instantiates a
WaitCommand with the given timeout. |
WaitCommand(java.lang.String name,
double timeout)
Instantiates a
WaitCommand with the given timeout. |
isFinished
cancel, clearRequirements, doesRequire, end, execute, getGroup, getName, getSmartDashboardType, getTable, initialize, initTable, interrupted, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled
public WaitCommand(double timeout)
WaitCommand
with the given timeout.timeout
- the time the command takes to runpublic WaitCommand(java.lang.String name, double timeout)
WaitCommand
with the given timeout.name
- the name of the commandtimeout
- the time the command takes to run