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
Parent:
4:5fb1296c0d60
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;
 }