m-lundberg / simple-pid

A simple and easy to use PID controller in Python
MIT License
799 stars 217 forks source link

Feed-Forward #91

Open antoniopnp opened 1 week ago

antoniopnp commented 1 week ago

This pull request adds a feed-forward term to the output, helping the system reach the desired output quickly. It provides a predictive, open-loop component that anticipates the required output.

The option to enable or disabled the feature was added aswell.

Issue: https://github.com/m-lundberg/simple-pid/issues/87

m-lundberg commented 1 week ago

I would appreciate it if you could add a test case for this. It doesn't need to be anything too complicated.

m-lundberg commented 1 week ago

I would also appreciate if you could update pid.pyi with the relevant types for your changes.

Thanks a lot for your contribution btw, I appreciate you taking the time!