|Constructor and Description|
Creates a new
|Modifier and Type||Method and Description|
Returns whether this command is finished.
cancel, clearRequirements, doesRequire, end, execute, getGroup, initialize, initSendable, interrupted, isCanceled, isCompleted, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public InstantCommand(java.lang.String name)
InstantCommandwith the given name.
name- the name for this command
protected boolean isFinished()
end()will be called.
It may be useful for a team to reference the
method for time-sensitive commands.
Returning false will result in the command never ending automatically. It may still be
cancelled manually or interrupted by another command. Returning true will result in the
command executing once and finishing immediately. We recommend using