A class for driving a DC motor using a full-bridge (H-bridge) driver.

Dependencies:   RateLimiter

Dependents:   L298N-Breakout-Test Zavrsni_rad_NXP_cup

Revision:
5:7016f3b1ec44
Parent:
2:1675a4c00925
--- a/HBridgeDCMotor.cpp	Wed Dec 16 12:46:47 2015 +0000
+++ b/HBridgeDCMotor.cpp	Thu Dec 17 08:51:57 2015 +0000
@@ -4,7 +4,7 @@
     GH_A = new PwmOut(gh_a);
     GL_A = new PwmOut(gl_a);
     GH_B = new PwmOut(gh_b);
-    GL_B = new PwmOut(gh_b);
+    GL_B = new PwmOut(gl_b);
     independentGates = true;
     configure(1e-3, 20e3, 0.1, -0.1);
     init();