setPID

open fun setPID(kp: Double, ki: Double, kd: Double): PIDController

Set the current controller PID coefficients to the given coefficients.

Return

this

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.


open fun setPID(@NonNull coefficients: PIDCoefficients): PIDController

Set the current controller PID coefficients to the given coefficients.

Return

this

Parameters

coefficients

the coefficients to set