Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

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;