Package edu.wpi.first.wpilibj.command
Class WaitUntilCommand
java.lang.Object
edu.wpi.first.wpilibj.command.Command
edu.wpi.first.wpilibj.command.WaitUntilCommand
- All Implemented Interfaces:
Sendable
,AutoCloseable
public class WaitUntilCommand extends Command
WaitUntilCommand - waits until an absolute game time. This will wait until the game clock reaches
some value, then continue to the next command.
-
Constructor Summary
Constructors Constructor Description WaitUntilCommand(double time)
-
Method Summary
Modifier and Type Method Description boolean
isFinished()
Check if we've reached the actual finish time.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
-
Method Details
-
isFinished
Check if we've reached the actual finish time.- Specified by:
isFinished
in classCommand
- Returns:
- whether this command is finished.
- See Also:
isTimedOut()
-