public class PrintCommand extends InstantCommand
PrintCommand is a command which prints out a string when it is initialized, and then
immediately finishes. It is useful if you want a CommandGroup to print out a string when
it reaches a certain point.| Constructor and Description |
|---|
PrintCommand(java.lang.String message)
Instantiates a
PrintCommand which will print the given message when it is run. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize()
The initialize method is called the first time this Command is run after being started.
|
isFinishedcancel, clearRequirements, doesRequire, end, execute, getGroup, getName, getSmartDashboardType, getTable, initTable, interrupted, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabledpublic PrintCommand(java.lang.String message)
PrintCommand which will print the given message when it is run.message - the message to printprotected void initialize()
Commandinitialize in class Command