m-lundberg / simple-pid

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

Add a variable sample_time flag #71

Open ThomasGira opened 1 year ago

ThomasGira commented 1 year ago

This adds a flag that divides your gains by the sample time. This allows you to maintain consistent gains regardless of fluctuations in sample time. When tuning you can tune unrelated to sample time.