Clark Lin / Mbed 2 deprecated BX-car

Dependencies:   mbed

Fork of BX-car by kao yi

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();