Ultimate Gain method
Dependents: 2016_slave_MD_rorikon 2016_slave_MD_rorikon WRS_mechanamu_test
Diff: PID.h
- Revision:
- 5:6949e401a9ad
- Parent:
- 4:3ca1603fbcda
diff -r 3ca1603fbcda -r 6949e401a9ad PID.h --- a/PID.h Fri Sep 30 12:31:16 2016 +0000 +++ b/PID.h Wed Nov 14 02:20:07 2018 +0000 @@ -6,11 +6,13 @@ { public: PID(Timer *T); - float control(float target, float nowrpm); + float controlPID(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); - void set_parameter(float new_Ku, float new_Pu); + float controlP(float target, float nowrpm, float new_Kp); + float controlPI(float target, float nowrpm); + void setParameter(float new_Kp, float new_Ki, float new_Kd); + void setParameter(float new_Ku, float new_Pu); + void setParameterPI(float new_Ku, float new_Pu); void reset(); float Ku; @@ -22,7 +24,7 @@ float Kd; private: - Timer timer; + Timer *timer; float integral; float prev_hensa; float nowtime;