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.
Dependencies: mbed QEI biquadFilter
Diff: PID_controller.h
- Revision:
- 0:494acf21d3bc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PID_controller.h Mon Oct 31 13:05:53 2016 +0000 @@ -0,0 +1,13 @@ + +class PIDController { + private: + float Kp; + float Ki; + float Kd; + float previousError; + float errorIntegral; + public: + PIDController(float Kp, float Ki, float Kd); + float control(float error, float t); + +}; \ No newline at end of file