Takumi Nakagawara / PID
Revision:
1:4705d8930670
Parent:
0:be531c5604db
Child:
2:c8ab3e8d4c51
--- a/PID.h	Fri Jan 11 08:00:51 2019 +0000
+++ b/PID.h	Sun Apr 07 13:52:44 2019 +0000
@@ -6,11 +6,11 @@
 
 class PID {
 public:
-  PID();
-  float control(float target, float nowrpm, Timer *timer);
-  float PI_lateD(float target, float nowrpm, Timer *timer);
+  PID(Timer *_timer);
+  float control(float target, float nowrpm);
+  float PI_lateD(float target, float nowrpm);
   float control_P(float target, float nowrpm, float new_Kp);
-  float control_PI(float target, float nowrpm, Timer *timer);
+  float control_PI(float target, float nowrpm);
   void setParameter_pid(float new_Kp, float new_Ki, float new_Kd);
   void setParameter_KuPu(float new_Ku, float new_Pu);
   void reset(float target);