Class MotorSubsystem.MotorSubsystemConfiguration

java.lang.Object
com.team2813.lib2813.subsystems.MotorSubsystem.MotorSubsystemConfiguration
Enclosing class:
MotorSubsystem<T extends Supplier<Angle>>

public static class MotorSubsystem.MotorSubsystemConfiguration extends Object
A configuration for a MotorSubsystem
  • Field Details

    • DEFAULT_ERROR

      public static final double DEFAULT_ERROR
      The default acceptable position error.
      See Also:
    • DEFAULT_STARTING_POSITION

      public static final double DEFAULT_STARTING_POSITION
      The default starting position if one is not provided.
      See Also:
  • Constructor Details

    • MotorSubsystemConfiguration

      public MotorSubsystemConfiguration(Motor motor, Encoder encoder)
      Creates a new configuration for a MotorSubsystems. The default acceptable error is 5.0, the PID constants are set to 0, and the starting position is 0.0
      Parameters:
      motor - the motor to control
      encoder - the encoder providing feedback
    • MotorSubsystemConfiguration

      public MotorSubsystemConfiguration(PIDMotor motor)
      Creates a new config for MotorSubsystems using a motor that has a built-in encoder. The default acceptable error is 5.0, the PID constants are set to 0, and the starting position is 0.0
      Parameters:
      motor - the integrated motor controller
  • Method Details