Package edu.wpi.first.wpilibj.command
Class WaitCommand
java.lang.Object
edu.wpi.first.wpilibj.command.Command
edu.wpi.first.wpilibj.command.TimedCommand
edu.wpi.first.wpilibj.command.WaitCommand
- All Implemented Interfaces:
Sendable,AutoCloseable
public class WaitCommand extends TimedCommand
A
WaitCommand will wait for a certain amount of time before finishing. It is useful if
you want a CommandGroup to pause for a moment.- See Also:
CommandGroup
-
Constructor Summary
Constructors Constructor Description WaitCommand(double timeout)Instantiates aWaitCommandwith the given timeout.WaitCommand(String name, double timeout)Instantiates aWaitCommandwith the given timeout. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj.command.Command
cancel, clearRequirements, close, doesRequire, end, execute, getGroup, getName, getSubsystem, initialize, initSendable, interrupted, isCanceled, isCompleted, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setName, setRunWhenDisabled, setSubsystem, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled
-
Constructor Details
-
WaitCommand
Instantiates aWaitCommandwith the given timeout.- Parameters:
timeout- the time the command takes to run (seconds)
-
WaitCommand
Instantiates aWaitCommandwith the given timeout.- Parameters:
name- the name of the commandtimeout- the time the command takes to run (seconds)
-