![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
motor met PID controller, aangestuurd via pc.
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of frdm_Motor_V2 by
Revision 16:5b729bd56155, committed 2015-09-30
- Comitter:
- Rvs94
- Date:
- Wed Sep 30 11:49:02 2015 +0000
- Parent:
- 15:7fbee317af2d
- Commit message:
- Werkende PID controller
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7fbee317af2d -r 5b729bd56155 main.cpp --- a/main.cpp Tue Sep 29 17:15:46 2015 +0000 +++ b/main.cpp Wed Sep 30 11:49:02 2015 +0000 @@ -31,7 +31,7 @@ const double m2_Ts = 0.01; // Controller gain -const double m2_Kp = 0.07,m2_Ki = 0.005, m2_Kd = 0.001; +const double m2_Kp = 0.5,m2_Ki = 0.005, m2_Kd = 0.5; double m2_err_int = 0, m2_prev_err = 0; //Derivative filter coeffs