Control Library by altb
Dependents: My_Libraries IndNav_QK3_T265
Diff: PID_Cntrl.h
- Revision:
- 12:81787539c2cb
- Parent:
- 11:7ea3efaf0469
diff -r 7ea3efaf0469 -r 81787539c2cb PID_Cntrl.h --- a/PID_Cntrl.h Wed Oct 02 15:30:32 2019 +0000 +++ b/PID_Cntrl.h Wed Oct 09 13:46:06 2019 +0000 @@ -6,6 +6,7 @@ public: PID_Cntrl(float P, float I, float D, float tau_f, float Ts, float uMin, float uMax); + PID_Cntrl(){}; float operator()(float error) { return doStep(error); @@ -26,6 +27,8 @@ void setCoeff_I(float); void setCoeff_D(float); void scale_PID_param(float); + void setCoefficients(float P, float I, float D, float tau_f, float Ts); + void setCoefficients(float P, float I, float D, float tau_f, float Ts,float uMin, float uMax); private: @@ -37,8 +40,6 @@ float P,I,D_; float P_init, I_init, D__init; float p, Ka; - void setCoefficients(float P, float I, float D, float tau_f, float Ts); - void setCoefficients(float P, float I, float D, float tau_f, float Ts,float uMin, float uMax); };