PID Controller

Dependencies:   HIDScope MODSERIAL PinDetect QEI biquadFilter

Revision:
1:fe23126b0389
Parent:
0:d38eb4622914
--- a/main.h	Wed Oct 14 13:47:18 2015 +0000
+++ b/main.h	Mon Oct 19 11:43:21 2015 +0000
@@ -14,7 +14,7 @@
 const double pid_upper_limit = 1, pid_lower_limit = 0;
 
 const double motor1_kp = 0.75f, motor1_ki = 0.001f, motor1_kd = 0.005f;
-const double motor2_kp = 1.5f, motor2_ki = 1.0f, motor2_kd = 0.05f;
+const double motor2_kp = 0.75f, motor2_ki = 0.001f, motor2_kd = 0.005f;
 
 const double m1_f_a1 = 1.0, m1_f_a2 = 2.0, m1_f_b0 = 1.0, m1_f_b1 = 3.0, m1_f_b2 = 4.0;
 const double m2_f_a1 = 1.0, m2_f_a2 = 2.0, m2_f_b0 = 1.0, m2_f_b1 = 3.0, m2_f_b2 = 4.0;