Package com.uniforge.origin.command
Class PrintCommand
java.lang.Object
com.uniforge.origin.command.Command
com.uniforge.origin.command.FunctionalCommand
com.uniforge.origin.command.InstantCommand
com.uniforge.origin.command.PrintCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.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 com.uniforge.origin.command.Command
Command.InterruptionBehavior -
Field Summary
Fields inherited from class com.uniforge.origin.command.Command
m_requirements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the given command should run when the robot is disabled.Methods inherited from class com.uniforge.origin.command.FunctionalCommand
end, execute, initialize, isFinishedMethods inherited from class com.uniforge.origin.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, errorDetected, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setErrorDetected, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
PrintCommand
Creates a new a PrintCommand.- Parameters:
message- the message to print
-
-
Method Details
-
runsWhenDisabled
public boolean 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
-