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.
Fork of BX-car by
Diff: controller.h
- Revision:
- 12:f7acda4545ba
- Parent:
- 9:33b99cb45e99
- Child:
- 14:5cc3e028d8a3
--- a/controller.h Wed Jun 25 05:50:03 2014 +0000
+++ b/controller.h Mon Jun 30 02:07:57 2014 +0000
@@ -17,7 +17,7 @@
* @param tauD - Tuning parameter
* @param interval PID calculation performed every interval seconds.
*/
- PID(float in_min,float in_max,float out_min,float out_max,float Kc, float tauI, float tauD, float interval);
+ PID(float in_min,float in_max,float out_min,float out_max,float Kp, float Ki, float Kd);
/*
* Scale from inputs to 0-100%.
@@ -64,7 +64,7 @@
* PID calculation.
* @return The controller output as a float between outMin and outMax.
*/
- float compute(float pv, float sp);
+ float compute(float R, float L, float sp);
//Getters.
float getInMin();
