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
-
In PIDLagrangian.py, the script to get "D" is pid_d = max(0.0, self._cost_d - self._cost_ds[0]),
![explorer_dSumrNJrT8](https://private-user-images.githubusercontent.com/48021319/333008062-7e2664d7-3d9f-43d4-8755-1a78551d8243.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTgxNTksIm5iZiI6MTczOTY1Nzg1OSwicGF0aCI6Ii80ODAyMTMxOS8zMzMwMDgwNjItN2UyNjY0ZDctM2Q5Zi00M2Q0LTg3NTUtMWE3ODU1MWQ4MjQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIyMTczOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgyZTE0NjcwODQ0OTNiMDgyZDc5MWEyNmNmODAzMmY5NGExNTk5ZmIyYzVkODdjOGUzMzgwNGFmNTEzYjIwMjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XbL2MCNthzvK-HaSE_A4nO5vXw0XR_r7pjDnv-ftIcI)
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