Script voor aansturen motoren
Dependencies: Encoder HIDScope MODSERIAL mbed-dsp mbed
Diff: main.cpp
- Revision:
- 20:25e5916fe7b1
- Parent:
- 19:3e46c457091c
diff -r 3e46c457091c -r 25e5916fe7b1 main.cpp --- a/main.cpp Thu Oct 30 11:45:48 2014 +0000 +++ b/main.cpp Thu Oct 30 11:57:32 2014 +0000 @@ -5,7 +5,7 @@ #define TSAMP 0.005 #define K_P (0.8) -#define K_I (0.01 *TSAMP) +#define K_I (0.1 *TSAMP) #define I_LIMIT 1. #define pwm1_min 0.06 #define pwm2_min 0