reset

open fun reset()

Reset the previous error, the integral term, and disable the controller.


open fun reset(measurement: TrapezoidProfile.State)

Reset the previous error and the integral term.

Parameters

measurement

The current measured State of the system.


open fun reset(measuredPosition: Double, measuredVelocity: Double)

Reset the previous error and the integral term.

Parameters

measuredPosition

The current measured position of the system.

measuredVelocity

The current measured velocity of the system.


open fun reset(measuredPosition: Double)

Reset the previous error and the integral term.

Parameters

measuredPosition

The current measured position of the system. The velocity is assumed to be zero.