PIDFController
The base constructor for the PIDF controller
Parameters
kp
The value of kP for the coefficients.
ki
The value of kI for the coefficients.
kd
The value of kD for the coefficients.
kf
The value of kF for the coefficients.
This is the full constructor for the PIDF controller. Our PIDF controller includes a feed-forward value which is useful for fighting friction and gravity. Our errorVal represents the return of e(t) and prevErrorVal is the previous error.
Parameters
kp
The value of kP for the coefficients.
ki
The value of kI for the coefficients.
kd
The value of kD for the coefficients.
kf
The value of kF for the coefficients.
sp
The setpoint of the pid control loop.
pv
The measured value of the pid control loop. We want sp = pv, or to the degree such that sp - pv, or e(t) is less than the tolerance.