public class TimedCommand extends Command
TimedCommand will wait for a timeout before finishing.
 TimedCommand is used to execute a command for a given amount of time.| Constructor and Description | 
|---|
| TimedCommand(double timeout) | 
| TimedCommand(java.lang.String name,
            double timeout) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | isFinished()Returns whether this command is finished. | 
cancel, clearRequirements, doesRequire, end, execute, getGroup, getName, getSmartDashboardType, getTable, initialize, initTable, interrupted, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabledpublic TimedCommand(java.lang.String name, double timeout)
public TimedCommand(double timeout)
protected boolean isFinished()
Commandend() will be called.
 It may be useful for a team to reference the isTimedOut()
 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 InstantCommand
 for this.
isFinished in class CommandisTimedOut()