Class PrintCommand

  • All Implemented Interfaces:
    Sendable, Command

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

      • PrintCommand

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

      • 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