summaryrefslogtreecommitdiff
path: root/zumo/pid.h
diff options
context:
space:
mode:
Diffstat (limited to 'zumo/pid.h')
-rw-r--r--zumo/pid.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/zumo/pid.h b/zumo/pid.h
index fbcd063..ef733d6 100644
--- a/zumo/pid.h
+++ b/zumo/pid.h
@@ -4,10 +4,11 @@
class PID {
private:
- float A0, A1, A2;
- float error[3] = {0};
- float dt = 0.010;
- float output = 0;
+ float A0, A1, A0d, A1d, A2d, tau, alpha, d0, d1, fd0, fd1;
+ float error[3];
+ float output;
+ const float dt = 1.0;
+ const float N = 10.0;
public:
PID(float P, float I, float D);