Package yams.motorcontrollers
Class SmartMotorControllerCommandRegistry
java.lang.Object
yams.motorcontrollers.SmartMotorControllerCommandRegistry
Registry for SmartMotorController commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCommand(String cmdName, Subsystem subsystem, Runnable callback) Add a command to the registry.static booleancommandExists(String cmdName, Subsystem subsystem) Check if a command exists.
-
Constructor Details
-
SmartMotorControllerCommandRegistry
public SmartMotorControllerCommandRegistry()
-
-
Method Details
-
addCommand
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
Check if a command exists.- Parameters:
cmdName- Command name.subsystem- Subsystem.- Returns:
- True if command exists.
-