Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

Revision:
2:fc869e45e672
Parent:
0:494acf21d3bc
Child:
7:a80cb6b06320
--- a/controller.cpp	Mon Oct 31 13:05:53 2016 +0000
+++ b/controller.cpp	Wed Nov 02 08:51:12 2016 +0000
@@ -6,8 +6,7 @@
     float dLength = length-initialLength;
     
     if (dLength < 0) {
-        velocity = -1 * velocity;
-        arm.setVelocity(velocity);
+        arm.setVelocity(-1 * velocity);
         while (dLength < 0) {
             // Wait
         }