Closed henopied closed 3 years ago
When measuredVelocity is provided, the PID controller applies the velocity feedback incorrectly. This pull request fixes the backwards d term feedback when measuredVelocity is provided.
measuredVelocity
Oh I actually just finished this locally (see this card), but let() seems more idiomatic than appending ?.unaryMinus().
let()
?.unaryMinus()
When
measuredVelocity
is provided, the PID controller applies the velocity feedback incorrectly. This pull request fixes the backwards d term feedback whenmeasuredVelocity
is provided.