Navpid back calculation anti-windup can only shrink integrator #9224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #9026
Replace #9222
Replace #9159
From here we can see the real problem is opposite i-term accumulation, It should be positive all the time. But it is negative in this video
#9026 (comment)
Changes:
Prevent opposite iterm accumulation in nav pid controller when nav pid controller is saturated a lot. Keep original back-calculation anti-windup feature behaves the same in most of the time
TEST in SITL, waypoint altitude setting is 1000m and 50m
https://youtu.be/BpIjCNhJQlA
Quads in SITL,waypoint altitude setting is 200m and 50m
https://youtu.be/8E7bP7ufIjU