Class SpeedPidController


  • public class SpeedPidController
    extends PidController
    Represents a PID controller for motor speed control.
    • Constructor Detail

      • SpeedPidController

        public SpeedPidController​(IPidInput source,
                                  IPidOutput output,
                                  java.lang.String pidControllerName)
        Passes all parameters on to PidController().
        Parameters:
        source - IPidInput for PID control.
        output - IPidOutput for PID control.
        pidControllerName - Name of the controller.
    • Method Detail

      • calcDerivativeTerm

        protected double calcDerivativeTerm()
        Calculates the derivative term D based off errors. Assumes target velocity == 0.
        Overrides:
        calcDerivativeTerm in class PidController
        Returns:
        Estimated derivative term D.