Class SpeedPidController
java.lang.Object
org.wildstang.framework.pid.controller.PidController
org.wildstang.framework.pid.controller.SpeedPidController
Represents a PID controller for motor speed control.
-
Constructor Summary
ConstructorsConstructorDescriptionSpeedPidController(IPidInput source, IPidOutput output, String pidControllerName) Passes all parameters on to PidController(). -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleCalculates the derivative term D based off errors.Methods inherited from class org.wildstang.framework.pid.controller.PidController
calcPid, disable, enable, getCurrentOutput, getD, getDifferentiatorBandLimit, getEpsilon, getError, getI, getIntegralErrorThresh, getName, getP, getPreviousError, getSetPoint, getState, getStaticEpsilon, isEnabled, isOnTarget, isStabilized, notifyConfigChange, reset, resetErrorSum, setConstants, setDifferentiatorBandLimit, setErrorEpsilon, setErrorIncrementPercentage, setIntegralErrorThresh, setMaxIntegral, setMinMaxInput, setMinMaxOutput, setMinStabilizationTime, setOutputEnabled, setSetPoint, setStaticEpsilon, toString
-
Constructor Details
-
SpeedPidController
Passes all parameters on to PidController().- Parameters:
source- IPidInput for PID control.output- IPidOutput for PID control.pidControllerName- Name of the controller.
-
-
Method Details
-
calcDerivativeTerm
protected double calcDerivativeTerm()Calculates the derivative term D based off errors. Assumes target velocity == 0.- Overrides:
calcDerivativeTermin classPidController- Returns:
- Estimated derivative term D.
-