Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Encoder HIDScope mbed-dsp mbed
Revision 15:743fc8794a1f, committed 2014-10-20
- Comitter:
- vsluiter
- Date:
- Mon Oct 20 14:02:05 2014 +0000
- Parent:
- 14:91403dd3dcf5
- Commit message:
- Used fabs instead of abs
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 91403dd3dcf5 -r 743fc8794a1f main.cpp --- a/main.cpp Mon Oct 20 11:38:18 2014 +0000 +++ b/main.cpp Mon Oct 20 14:02:05 2014 +0000 @@ -59,7 +59,7 @@ motordir = 0; else motordir = 1; - pwm_motor.write(abs(new_pwm)); + pwm_motor.write(fabs(new_pwm)); } }