Library for driving a motor with one PWM and one DIR signal using PI control.
Fork of Motor2 by
Revision 12:1d3fb22bbdf9, committed 2014-11-21
- Comitter:
- Reiko
- Date:
- Fri Nov 21 18:22:54 2014 +0000
- Parent:
- 11:87a73d40ce5b
- Commit message:
- Shorter stall detection times
Changed in this revision
motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 87a73d40ce5b -r 1d3fb22bbdf9 motor.cpp --- a/motor.cpp Sun Oct 19 08:31:18 2014 +0000 +++ b/motor.cpp Fri Nov 21 18:22:54 2014 +0000 @@ -23,8 +23,8 @@ currentPWM = 0; stallCount = 0; prevStallCount = 0; - stallWarningLimit = 60; - stallErrorLimit = 300; + stallWarningLimit = 30; + stallErrorLimit = 120; stallLevel = 0; }