Library for the VNH5019 Motor Driver, with a helper class for the Pololu Dual VNH5019 Dual Motor Driver Shield http://www.pololu.com/product/2502

Dependents:   VNH5019_second VNH5019_second1

Revision:
3:2b139675f60d
Parent:
1:5e8d9ed18f0f
Child:
4:3802325cf6e1
diff -r d670a4b999ab -r 2b139675f60d VNH5019.cpp
--- a/VNH5019.cpp	Sat Feb 01 14:56:54 2014 +0000
+++ b/VNH5019.cpp	Sun Feb 09 11:17:06 2014 +0000
@@ -47,6 +47,13 @@
     }
 }
 
+void VNH5019::stop()
+{
+    INA = 0;
+    INB = 0;
+    PWM = 0.0;
+}
+
 void VNH5019::brake(float Brake)
 {
    // normalize Brake to 0..1