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:
3:8822f4955035
Parent:
2:2dc873322032
Child:
4:5fb1296c0d60
--- a/motordriver.cpp	Fri Nov 19 12:32:06 2010 +0000
+++ b/motordriver.cpp	Fri Nov 19 12:33:38 2010 +0000
@@ -103,7 +103,7 @@
         sign = 0;
         return duty;
     } else
-        return 0;
+        return -1;
 }
 
 /*