Class SmartMotorControllerCommandRegistry

java.lang.Object
yams.motorcontrollers.SmartMotorControllerCommandRegistry

public class SmartMotorControllerCommandRegistry extends Object
Registry for SmartMotorController commands.
  • Constructor Details

    • SmartMotorControllerCommandRegistry

      public SmartMotorControllerCommandRegistry()
  • Method Details

    • addCommand

      public static void addCommand(String cmdName, Subsystem subsystem, Runnable callback)
      Add a command to the registry.
      Parameters:
      cmdName - Command name to publish to NetworkTables.
      subsystem - Subsystem to create the command for.
      callback - Runnable to be added to the shared command.
    • commandExists

      public static boolean commandExists(String cmdName, Subsystem subsystem)
      Check if a command exists.
      Parameters:
      cmdName - Command name.
      subsystem - Subsystem.
      Returns:
      True if command exists.