Bumpless operation

PID controllers are often implemented with a “bumpless” initialization feature that recalculates the integral accumulator term to maintain a consistent process output through parameter changes.

A partial implementation is to store the integral of the integral gain times the error rather than storing the integral of the error and post multiplying by the integral gain, which prevents discontinuous output when the I gain is changed, but not the P or D gains.