![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
control_theory/pid.hpp
- Committer:
- yootee
- Date:
- 2022-07-02
- Revision:
- 11:20418879650b
- Parent:
- 2:e7b09385d197
File content as of revision 11:20418879650b:
#ifndef PID_H #define PID_H #include"mbed.h" class Pid{ public: Pid(double get_Kp,double get_Ki,double get_Kd,int plumi); double returnVal(double get_target,double input_val,double time); void setGain(double get_Kp,double get_Ki,double get_Kd); void setMax(double get_max,double get_min); void reset(); private: double max_val; double minimum_val; double Kp; double Ki; double Kd; double e_o; double e_c; double Operation_amount; double target; double Give_P; double Give_I; double Give_D; double plusminus; }; #endif