update
Updates the controller with an error value and time delta.
Return
Control output clamped to outputMin, outputMax
Parameters
error
The error (target - current)
dt
Time delta in seconds
Updates the controller with target and current values.
Return
Control output including feedforward
Parameters
target
The desired setpoint
current
The current measured value
dt
Time delta in seconds
normalize Radians
Normalize angular error to -π, π
Auto-timestamped update using system time.