PIDController

constructor(coefficients: PIDCoefficients, resetIntegralOnZeroCrossover: Boolean = true)(source)

Parameters

coefficients

the PIDCoefficients that contains the PID gains

resetIntegralOnZeroCrossover

whether to reset the integral term when the error crosses


constructor(kP: Double, kI: Double = 0.0, kD: Double = 0.0, resetIntegralOnZeroCrossover: Boolean = true)(source)

Creates a PIDController with the given coefficients.

Parameters

kP

proportional gain, multiplied by the error

kI

integral gain, multiplied by the integral of the error over time

kD

derivative gain, multiplied by the derivative of the error