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.
Diff: pid.h
- Revision:
- 0:f15aa1706e16
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pid.h Mon Dec 14 15:03:32 2015 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +class PIDcontroller{ +private: + float Kp,Ki,Kd; + float Err,Err_old,Err_accum,FB; + float DT; + +public: + + PIDcontroller(float kp, float ki, float kd, float dt); + void PID(float err); + float GetFB(void); +}; \ No newline at end of file