PIDController

constructor(kp: Double, ki: Double, kd: Double)

Default constructor with just the coefficients

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.


constructor(kp: Double, ki: Double, kd: Double, sp: Double, pv: Double)

The extended constructor.

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.

sp

The setpoint for the controller.

pv

The process variable for the controller.