Class PrintCommand
java.lang.Object
org.wpilib.command2.Command
org.wpilib.command2.FunctionalCommand
org.wpilib.command2.InstantCommand
org.wpilib.command2.PrintCommand
- All Implemented Interfaces:
Sendable
A command that prints a string when initialized.
This class is provided by the NewCommands VendorDep
-
Nested Class Summary
Nested classes/interfaces inherited from class Command
Command.InterruptionBehavior -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the given command should run when the robot is disabled.Methods inherited from class FunctionalCommand
end, execute, initialize, isFinishedMethods inherited from class Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
PrintCommand
Creates a new a PrintCommand.- Parameters:
message- the message to print
-
-
Method Details
-
runsWhenDisabled
Description copied from class:CommandWhether the given command should run when the robot is disabled. Override to return true if the command should run when disabled.- Overrides:
runsWhenDisabledin classCommand- Returns:
- whether the command should run when the robot is disabled
-