jkfodk

Dependencies:   Encoder MODSERIAL mbed

Files at this revision

API Documentation at this revision

Comitter:
Tess
Date:
Fri Nov 01 09:40:06 2013 +0000
Parent:
11:2b4f12230ff0
Commit message:
Version 5: working script!!! With the real PID constants. These constants needs to be *0.01

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Nov 01 09:06:42 2013 +0000
+++ b/main.cpp	Fri Nov 01 09:40:06 2013 +0000
@@ -63,8 +63,8 @@
     float pwm_to_rechtsonder_motorB;
 
     const float dt = 0.002;
-    float Kp = 0.001;  //0.0113
-    float Kd = 0.00004342;  //0.0004342
+    float Kp = 0.001;  //0.0208
+    float Kd = 0.00004342;  //0.0006897
     float error_t0_A = 0;
     float error_t0_B = 0;
     float error_ti_A;