m-lundberg / simple-pid

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

feature: optional argument to manually set dt #10

Closed Yasu31 closed 4 years ago

Yasu31 commented 4 years ago

When using PID controllers in simulation, the timestep used for PID calculation should be set to simulation time instead of how long it actually takes between calls to PID(). This PR addresses it by adding a new optional argument that lets the user designate dt themselves.

Yasu31 commented 4 years ago

Hi, I committed the fixes and squashed them into a single commit. Thanks for maintaining this library, it's proving to be very useful for my thesis project!

m-lundberg commented 4 years ago

This feature is now included in version 0.2.4 of the library

Yasu31 commented 4 years ago

Thank you!