public class WaitUntilCommand extends Command
| Constructor and Description |
|---|
WaitUntilCommand(double time) |
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Called when the command ended peacefully.
|
void |
execute()
The execute method is called repeatedly until this Command either finishes
or is canceled.
|
void |
initialize()
The initialize method is called the first time this Command is run after
being started.
|
void |
interrupted()
Called when the command ends because somebody called
cancel()
or another command shared the same requirements as this one, and booted
it out. |
boolean |
isFinished()
Check if we've reached the actual finish time.
|
cancel, doesRequire, getGroup, getName, getSmartDashboardType, getTable, initTable, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabledpublic void initialize()
Commandinitialize in class Commandpublic void execute()
Commandpublic boolean isFinished()
isFinished in class CommandisTimedOut()public void end()
Commandpublic void interrupted()
Commandcancel()
or another command shared the same requirements as this one, and booted
it out.
This is where you may want to wrap up loose ends, like shutting off a motor that was being used in the command.
Generally, it is useful to simply call the end() method
within this method
interrupted in class CommandCopyright © 2015. All rights reserved.