虽然移植完毕,但是不work。需要细调……

Dependencies:   mbed

Revision:
2:99785a1007a4
Parent:
0:a4d8f5b3c546
Child:
3:c6caae712d5d
--- a/PID_v2.cpp	Sat Jun 04 04:06:36 2016 +0000
+++ b/PID_v2.cpp	Tue Jun 07 05:26:03 2016 +0000
@@ -89,9 +89,7 @@
 {
     if (Kp<0 || Ki<0 || Kd<0) return;
 
-
-
-    double SampleTimeInSec = ((double)SampleTime)/1000;
+    //double SampleTimeInSec = ((double)SampleTime)/1000;
     kp = Kp;
     ki = Ki;
     kd = Kd;