By setting SetSampleTime to 0. Compute will calculate the output every time it's called

This commit is contained in:
Kristian Sloth Lauszus
2013-07-19 16:30:18 +02:00
parent 9f59efabfc
commit 6231da4cf9
2 changed files with 30 additions and 8 deletions

View File

@ -78,6 +78,7 @@ class PID
unsigned long lastTime;
double ITerm, lastInput;
unsigned long timeChange;
unsigned long SampleTime;
double secondsDivider;