Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
pid.hpp
00001 #ifndef PID_H 00002 #define PID_H 00003 #include"mbed.h" 00004 00005 class Pid{ 00006 public: 00007 Pid(double get_Kp,double get_Ki,double get_Kd,int plumi); 00008 double returnVal(double get_target,double input_val,double time); 00009 void setGain(double get_Kp,double get_Ki,double get_Kd); 00010 void setMax(double get_max,double get_min); 00011 void reset(); 00012 private: 00013 double max_val; 00014 double minimum_val; 00015 double Kp; 00016 double Ki; 00017 double Kd; 00018 double e_o; 00019 double e_c; 00020 double Operation_amount; 00021 double target; 00022 double Give_P; 00023 double Give_I; 00024 double Give_D; 00025 double plusminus; 00026 }; 00027 00028 #endif
Generated on Sat Oct 15 2022 07:52:33 by
1.7.2