MOtor control Pololu
Dependencies: Encoder HIDScope mbed-dsp mbed
Diff: main.cpp
- Revision:
- 13:0d4bc34e410f
- Parent:
- 12:19ea553567a3
- Child:
- 14:91403dd3dcf5
diff -r 19ea553567a3 -r 0d4bc34e410f main.cpp --- a/main.cpp Tue Oct 07 08:19:17 2014 +0000 +++ b/main.cpp Wed Oct 08 15:11:49 2014 +0000 @@ -5,7 +5,7 @@ #define TSAMP 0.01 #define K_P (0.1) #define K_I (0.03 *TSAMP) -#define K_D (0.001 /TSAMP) +#define K_D (0.0005 /TSAMP) #define I_LIMIT 1. #define M1_PWM PTC8