PID

constructor(pGain: Double, iGain: Double, dGain: Double, initial: Double = 0.0, iLimit: Double = 1.0)

Parameters

pGain

Proportional gain

iGain

Integral gain. Integral increases at a rate of (iGain * error) power per second.

dGain

Derivative gain. Power is equal to dGain times error change per second.