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

Corrected PID calculation #187

Merged
merged 10 commits into from
Feb 7, 2024
Merged

Corrected PID calculation #187

merged 10 commits into from
Feb 7, 2024

Conversation

SigmaThetaTech
Copy link
Contributor

Corrects PID calculation to follow PID conventions and terminology.

  1. Removes POnE parameter such that Proportional term always acts on the current error between the setpoint and the input.

  2. Corrects Derivative term to calculate based on the rate of change of the error as opposed to the difference in process value, providing a predictive damping effect to improve stability and reduce overshoot.

Corrects PID calculation to follow PID conventions and terminology. 

1) Removes POnE parameter such that Proportional term always acts on the current error between the setpoint and the input.

2) Corrects Derivative term to calculate based on the rate of change of the error as opposed to the difference in process value, providing a predictive damping effect to improve stability and reduce overshoot.
@Sleitnick
Copy link
Owner

This should probably be marked as a major version bump too. Version 2.0.0. Feel free to set that in the wally.toml and package.json files

modules/pid/init.lua Outdated Show resolved Hide resolved
modules/pid/init.lua Outdated Show resolved Hide resolved
modules/pid/init.lua Outdated Show resolved Hide resolved
modules/pid/init.lua Outdated Show resolved Hide resolved
@Sleitnick Sleitnick merged commit 70827ca into Sleitnick:main Feb 7, 2024
2 checks passed
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