changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Branch:
motorupdate
Revision:
43:9384715df1b8
Parent:
42:80c4ce51cbe4
Child:
44:b46efc310b83
diff -r 80c4ce51cbe4 -r 9384715df1b8 motor.cpp
--- a/motor.cpp	Thu Mar 23 14:00:58 2017 +0000
+++ b/motor.cpp	Thu Apr 27 10:18:19 2017 +0000
@@ -177,8 +177,8 @@
           
           }
     else{
-            w1= speed- deltaW*tune;
-            w2= speed +deltaW*tune;
+            w1= speed- (deltaW*tune);
+            w2= speed+ (deltaW*tune);
             
         }
     }