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: mbed QEI biquadFilter
Diff: arm.cpp
- Revision:
- 29:1c5254b27851
- Parent:
- 18:1c9dc6caab9d
--- a/arm.cpp Thu Nov 03 18:23:51 2016 +0000 +++ b/arm.cpp Fri Nov 04 13:26:28 2016 +0000 @@ -39,7 +39,7 @@ // Counterclockwise rotation if (referenceVelocity < 0) { motorDirection = counterClockwise; - velocity = (referenceVelocity < (-1 * maxAllowedVelocity))? (-1 * maxAllowedVelocity):referenceVelocity; + velocity = (referenceVelocity < (-1 * maxAllowedVelocity)) ? (-1 * maxAllowedVelocity) : referenceVelocity; // Clockwise rotation } else { motorDirection = clockwise;