elke 2 sec verandering van richting

Dependencies:   Encoder HIDScope MODSERIAL mbed-dsp mbed

Fork of BMT-M9_motorcontrol by First Last

Revision:
9:e09d81850a05
Parent:
8:15c6cb82c725
Child:
10:6f8af13cc3f4
--- a/main.cpp	Wed Oct 01 09:01:15 2014 +0000
+++ b/main.cpp	Wed Oct 01 09:34:40 2014 +0000
@@ -3,9 +3,9 @@
 #include "HIDScope.h"
 
 #define TSAMP 0.01
-#define K_P (3     *TSAMP)
+#define K_P (3)
 #define K_I (0.02   *TSAMP)
-#define K_D (0      *TSAMP)
+#define K_D (0      /TSAMP)
 #define I_LIMIT 1.
 
 #define POT_AVG 50