This repository was archived by the owner on Feb 16, 2026. It is now read-only.
Set IZone of PIDControllers created from PIDFConfigs#319
Merged
thenetworkgrinch merged 2 commits intoYet-Another-Software-Suite:devfrom Feb 5, 2025
Merged
Set IZone of PIDControllers created from PIDFConfigs#319thenetworkgrinch merged 2 commits intoYet-Another-Software-Suite:devfrom
thenetworkgrinch merged 2 commits intoYet-Another-Software-Suite:devfrom
Conversation
Setting iZone to 0, which is the default value, prevents the integrator from having any effect, so this only sets the iZone when it is not equal to 0.
Contributor
|
Do i even use this function? |
Author
It's being used in SwerveController to create the thetaController. |
Contributor
|
Thanks for checking! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Sets the
IZoneof PIDControllers created from PIDFConfigs.IZoneis pretty much a requirement forIto be useful since it's one of the main ways to manage windup, so this makesIuseful for correcting for error in heading control. I haven't done much testing on this other than the bare minimum to figure out it works in simulation, so you might want to do a bit of testing before you merge this (I have observed some strange behavior with odometry in simulation whenIhas a value, but it appears to be unrelated to these changes).