Library for driving a motor with one PWM and one DIR signal using PI control.
Fork of Motor2 by
Diff: motor.cpp
- Revision:
- 12:1d3fb22bbdf9
- Parent:
- 11:87a73d40ce5b
--- 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; }