Skip to content

Revised PID Controller#186

Closed
sghillie wants to merge 1 commit intomainfrom
RedoingPIDEntirely
Closed

Revised PID Controller#186
sghillie wants to merge 1 commit intomainfrom
RedoingPIDEntirely

Conversation

@sghillie
Copy link
Copy Markdown
Member

prototype for reworking pid.c/.h file entirely. done because integral wind-up still seems to be an issue, and previous efforts could not be ammended due to self-inflicted code bloat. PID now has a better way of tracking output variable, such that Anti-windup (back-calculation method) can be applied easily within the struct (no duplicated external implementations). Also the Swede's had a nice idea, so I implemented that option too (clegg). No clue if it hurts system stability though. Notably, this implementation uses a lot of floats, so a standard methodology of converting floats to ubytes should probably be written (in a separate file as to be universally used) to have an easy way of dealing with outputing info on CAN.

@sghillie sghillie self-assigned this Aug 22, 2025
@sghillie sghillie force-pushed the RedoingPIDEntirely branch 2 times, most recently from 575068b to 61a6391 Compare September 3, 2025 04:28
@sghillie sghillie requested a review from aitrieus September 3, 2025 08:42
… wind-up still seems to be an issue, and previous efforts could not be ammended due to self-inflicted code bloat. PID now has a better way of tracking output variable, such that Anti-windup (back-calculation method) can be applied easily within the struct (no duplicated external implementations). Also the Swede's had a nice idea, so I implemented that option too (clegg). No clue if it hurts system stability though. Notably, this implementation uses a lot of floats, so a standard methodology of converting floats to ubytes should probably be written (in a separate file as to be universally used) to have an easy way of dealing with outputing info on CAN.
@sghillie sghillie closed this Sep 26, 2025
@sghillie sghillie deleted the RedoingPIDEntirely branch September 26, 2025 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant