RobotCore
Robot Core Documentation
|
Public Member Functions | |
PrintCommand (String message) | |
boolean | runsWhenDisabled () |
Public Member Functions inherited from edu.wpi.first.wpilibj2.command.InstantCommand | |
InstantCommand (Runnable toRun, Subsystem... requirements) | |
InstantCommand () | |
void | initialize () |
final boolean | isFinished () |
Public Member Functions inherited from edu.wpi.first.wpilibj2.command.CommandBase | |
final void | addRequirements (Subsystem... requirements) |
Set< Subsystem > | getRequirements () |
Public Member Functions inherited from edu.wpi.first.wpilibj2.command.Command | |
default void | execute () |
default void | end (boolean interrupted) |
default ParallelRaceGroup | withTimeout (double seconds) |
default ParallelRaceGroup | withInterrupt (BooleanSupplier condition) |
default SequentialCommandGroup | beforeStarting (Runnable toRun, Subsystem... requirements) |
default SequentialCommandGroup | andThen (Runnable toRun, Subsystem... requirements) |
default SequentialCommandGroup | andThen (Command... next) |
default ParallelDeadlineGroup | deadlineWith (Command... parallel) |
default ParallelCommandGroup | alongWith (Command... parallel) |
default ParallelRaceGroup | raceWith (Command... parallel) |
default PerpetualCommand | perpetually () |
default ProxyScheduleCommand | asProxy () |
default void | schedule (boolean interruptible) |
default void | schedule () |
default void | cancel () |
default boolean | isScheduled () |
default boolean | hasRequirement (Subsystem requirement) |
default String | getName () |
Additional Inherited Members | |
Protected Attributes inherited from edu.wpi.first.wpilibj2.command.CommandBase | |
Set< Subsystem > | m_requirements = new HashSet<>() |
A command that prints a string when initialized.
edu.wpi.first.wpilibj2.command.PrintCommand.PrintCommand | ( | String | message | ) |
Creates a new a PrintCommand.
message | the message to print |
boolean edu.wpi.first.wpilibj2.command.PrintCommand.runsWhenDisabled | ( | ) |
Whether the given command should run when the robot is disabled. Override to return true if the command should run when disabled.
Implements edu.wpi.first.wpilibj2.command.Command.