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.
Fork of Motordriver by
Diff: motordriver.cpp
- Revision:
- 5:3110b9209d3c
- Parent:
- 4:5fb1296c0d60
- Child:
- 6:415f0e127063
--- 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; }