Changed PWM frequency.
Fork of Motordriver by
Revision 6:fe5a59b614d9, committed 2015-04-29
- Comitter:
- admcrae
- Date:
- Wed Apr 29 17:26:54 2015 +0000
- Parent:
- 5:3110b9209d3c
- Commit message:
- Edit with faster PWM
Changed in this revision
motordriver.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3110b9209d3c -r fe5a59b614d9 motordriver.cpp --- a/motordriver.cpp Thu Nov 25 13:34:15 2010 +0000 +++ b/motordriver.cpp Wed Apr 29 17:26:54 2015 +0000 @@ -34,7 +34,7 @@ _pwm(pwm), _fwd(fwd), _rev(rev) { // Set initial condition of PWM - _pwm.period(0.001); + _pwm.period(0.0001); _pwm = 0; // Initial condition of output enables