Question about the update in Lagrangian PID update #335
Closed
bigscientist
started this conversation in
General
Replies: 1 comment 1 reply
-
Very careful observation! In fact, this code is not written incorrectly. It was initially designed to use the first item in the _cost_ds queue to solve the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In PIDLagrangian.py, the script to get "D" is pid_d = max(0.0, self._cost_d - self._cost_ds[0]),

I wonder that "D" is the difference between neighbour value of Lagrangian and it shall be
pid_d = max(0.0, self._cost_d - self._cost_ds[-1])
Beta Was this translation helpful? Give feedback.
All reactions