m-lundberg / simple-pid

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

feature: reset PID method #9

Closed PymZoR closed 5 years ago

PymZoR commented 5 years ago

It is impossible to reset the internal PID state (last input / output, integral) without tweaking with non-exposed members. This PR adresses the issue with a new method reset, containing the initializing code that was previously in the constructor.

m-lundberg commented 5 years ago

Hello,

Thank you for taking the time to create this pull request, I really appreciate your help in making this library even better!

PymZoR commented 5 years ago

Happy to help, thanks for maintaining this library :)