Class ConfigurablePhoenixMotorPIDController

java.lang.Object
me.nabdev.oxconfig.sampleClasses.ConfigurablePhoenixMotorPIDController
All Implemented Interfaces:
ConfigurableClass

public class ConfigurablePhoenixMotorPIDController extends Object implements ConfigurableClass
A configurable Talon SRX or Victor SPX PID controller. This class is an example of how to use the ConfigurableClass interface, but is safe for competition use.
  • Constructor Details

    • ConfigurablePhoenixMotorPIDController

      public ConfigurablePhoenixMotorPIDController(com.ctre.phoenix.motorcontrol.can.BaseMotorController controller, String key)
      Sets up a Talon SRX PID controller to be autoconfigured.
      Parameters:
      controller - The Talon SRX motor controller to be configured
      key - The json key for the controller to be stored in
    • ConfigurablePhoenixMotorPIDController

      public ConfigurablePhoenixMotorPIDController(com.ctre.phoenix.motorcontrol.can.BaseMotorController controller, String key, String prettyName)
      Sets up a Talon SRX PID controller to be autoconfigured.
      Parameters:
      controller - The Talon SRX motor controller to be configured
      key - The json key for the controller to be stored in
      prettyName - The display name of this controller
  • Method Details