motor drive libary to use speed control, coasting and dynamic braking. NOTE, dynamic braking my result in large currents. this may or may not set the motor driver on fire/break it/other undesired effects. so read the data sheet folks.
Dependents: motordrivertestprogram Initialmbedrobotprogram mbedrobot ipod ... more
Revision 5:3110b9209d3c, committed 2010-11-25
- Comitter:
- littlexc
- Date:
- Thu Nov 25 13:34:15 2010 +0000
- Parent:
- 4:5fb1296c0d60
- Commit message:
- set the stop function to coast if not able to dynamicaly brake.
Changed in this revision
motordriver.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5fb1296c0d60 -r 3110b9209d3c motordriver.cpp --- a/motordriver.cpp Thu Nov 25 13:31:22 2010 +0000 +++ b/motordriver.cpp Thu Nov 25 13:34:15 2010 +0000 @@ -103,6 +103,7 @@ sign = 0; return duty; } else + Motor::coast(); return -1; }