Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Generic PID Module #73

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Add Generic PID Module #73

merged 2 commits into from
Feb 19, 2024

Conversation

Ayaan-Govil
Copy link
Contributor

@Ayaan-Govil Ayaan-Govil commented Feb 5, 2024

Changes

  • Added pid.c + pid.h

To Do

  • Add bounds for output
  • Still room for memory optimization
  • Integral sum can be calculated with sliding window instead of continuous

@Ayaan-Govil Ayaan-Govil self-assigned this Feb 5, 2024
Copy link
Contributor

@nwdepatie nwdepatie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should add in hardcoded bounds on the PID such that we guarantee our implementation will at least be bounded. Check here for a nice implementation of PID, but I think that this might be a bit overkill for what we want https://dev.ti.com/tirex/explore/node?node=A__ACvcqA4mwpL9LptGWEedgA__motor_control_c2000ware_sdk_software_package__0.jXikd__LATEST

@nwdepatie nwdepatie merged commit 4004b01 into main Feb 19, 2024
1 check passed
@nwdepatie nwdepatie deleted the pid branch February 19, 2024 02:22
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.

2 participants