setIntegratorRange

fun setIntegratorRange(minimumIntegral: Double, maximumIntegral: Double)(source)

Sets the range the accumulated error (integral term) is clamped to, to prevent unbounded windup while the error stays the same sign (e.g. an arm held against a mechanical stop, or fighting a constant load). Defaults to unbounded.

Parameters

minimumIntegral

the minimum value of the accumulated error

maximumIntegral

the maximum value of the accumulated error