comparison 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
comparison
equal deleted inserted replaced
151:e9c9404e3d1f 152:8f98b32d0e23
17 float differentialError; 17 float differentialError;
18 float output; 18 float output;
19 float kp; 19 float kp;
20 float ki; 20 float ki;
21 float kd; 21 float kd;
22 float gain;
22 float ts; 23 float ts;
23 int idleTimeout; 24 int idleTimeout;
24 int timeoutCount; 25 int timeoutCount;
25 void updateIntegralError(); 26 void updateIntegralError();
26 void updateDifferentialError(); 27 void updateDifferentialError();
27 public: 28 public:
28 Pid(); 29 Pid();
29 float setError(float anError); 30 float setError(float anError);
30 void setIdleTimeout(int aIdleTimeout); 31 void setIdleTimeout(int aIdleTimeout);
31 float getOutput(); 32 float getOutput();
33 void setProportionalGain(float proportionalGain);
34 void setDerivativeGain(float derivativeGain);
35 void setIntegralGain(float integralGain);
36 void setGlobalGain(float globalGain);
37 float getProportionalGain();
38 float getDerivativeGain();
39 float getIntegralGain();
40 float getGlobalGain();
41 float getIntegralError();
32 }; 42 };
33 43
34 44
35 45
36 #endif /* PID_H_ */ 46 #endif /* PID_H_ */