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:
- 18:1c9dc6caab9d
- Parent:
- 12:8295c02d740f
- Child:
- 29:1c5254b27851
--- a/arm.cpp Thu Nov 03 13:15:00 2016 +0000 +++ b/arm.cpp Thu Nov 03 16:29:31 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;