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, committed 2015-12-17
- Comitter:
- tbjazic
- Date:
- Thu Dec 17 08:51:57 2015 +0000
- Parent:
- 4:6eed0f59cc20
- Commit message:
- GL_B PinName corrected. Thanks to Matko Grubi?!
Changed in this revision
HBridgeDCMotor.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6eed0f59cc20 -r 7016f3b1ec44 HBridgeDCMotor.cpp --- 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();