Class PrintCommand

java.lang.Object
All Implemented Interfaces:
Command

public class PrintCommand
extends InstantCommand
A command that prints a string when initialized.
  • Constructor Details

    • PrintCommand

      public PrintCommand​(java.lang.String message)
      Creates a new a PrintCommand.
      Parameters:
      message - the message to print
  • Method Details

    • runsWhenDisabled

      public boolean runsWhenDisabled()
      Description copied from interface: Command
      Whether the given command should run when the robot is disabled. Override to return true if the command should run when disabled.
      Returns:
      whether the command should run when the robot is disabled