Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)
Fork of Motor by
Revision 15:025c8e571ff6, committed 2015-05-18
- Comitter:
- miczyg
- Date:
- Mon May 18 14:41:05 2015 +0000
- Parent:
- 14:9fa93c83285e
- Child:
- 16:f7cdda1a25d7
- Child:
- 17:26edc972222e
- Commit message:
- jakas tam wersja kt?ra w miar? je?dzi, K = 1.5, Ti = 0.03, Td = 0.7
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Motor.cpp Mon May 18 13:06:14 2015 +0000 +++ b/Motor.cpp Mon May 18 14:41:05 2015 +0000 @@ -28,7 +28,7 @@ { // Set initial condition of PWM - _pwm.period(0.0001); + _pwm.period_us(10); _stdby = 1; // Initial condition of output enables _fwd = 0;