Mercurial > hg > beaglert
diff include/Pid.h @ 152:8f98b32d0e23 ClockSync
Last commit on this branch for a while. Overall not very succesful
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 05 Oct 2015 13:06:14 +0100 |
parents | 134bff10e561 |
children |
line wrap: on
line diff
--- a/include/Pid.h Tue Sep 22 04:10:07 2015 +0100 +++ b/include/Pid.h Mon Oct 05 13:06:14 2015 +0100 @@ -19,6 +19,7 @@ float kp; float ki; float kd; + float gain; float ts; int idleTimeout; int timeoutCount; @@ -29,6 +30,15 @@ float setError(float anError); void setIdleTimeout(int aIdleTimeout); float getOutput(); + void setProportionalGain(float proportionalGain); + void setDerivativeGain(float derivativeGain); + void setIntegralGain(float integralGain); + void setGlobalGain(float globalGain); + float getProportionalGain(); + float getDerivativeGain(); + float getIntegralGain(); + float getGlobalGain(); + float getIntegralError(); };