Skip to content
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
ApolloFops:pidf-set-izone
Feb 5, 2025
Merged

Set IZone of PIDControllers created from PIDFConfigs#319
thenetworkgrinch merged 2 commits intoYet-Another-Software-Suite:devfrom
ApolloFops:pidf-set-izone

Conversation

@ApolloFops
Copy link

Sets the IZone of PIDControllers created from PIDFConfigs. IZone is pretty much a requirement for I to be useful since it's one of the main ways to manage windup, so this makes I useful 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 when I has a value, but it appears to be unrelated to these changes).

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.
@thenetworkgrinch
Copy link
Contributor

Do i even use this function?

@ApolloFops
Copy link
Author

Do i even use this function?

It's being used in SwerveController to create the thetaController.

@thenetworkgrinch
Copy link
Contributor

Thanks for checking!

@thenetworkgrinch thenetworkgrinch merged commit 3b1c7d8 into Yet-Another-Software-Suite:dev Feb 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants