PrintCommand

class commands2.PrintCommand(*args, **kwargs)[source]

Bases: InstantCommand

A command that prints a string when initialized.

Creates a new a PrintCommand.

Parameters:

message – the message to print

runsWhenDisabled() bool[source]

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