public class StartCommand extends InstantCommand
StartCommand
will call the start()
method of another command
when it is initialized and will finish immediately.Constructor and Description |
---|
StartCommand(Command commandToStart)
Instantiates a
StartCommand which will start the given command whenever its initialize() is called. |
Modifier and Type | Method and Description |
---|---|
protected void |
initialize()
The initialize method is called the first time this Command is run after being started.
|
isFinished
cancel, clearRequirements, doesRequire, end, execute, getGroup, getName, getSmartDashboardType, getTable, initTable, interrupted, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled
public StartCommand(Command commandToStart)
StartCommand
which will start the given command whenever its initialize()
is called.commandToStart
- the Command
to startprotected void initialize()
Command
initialize
in class Command