changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Branch:
motorupdate
Revision:
41:827ff8733729
Parent:
40:29373275b6cb
Child:
42:80c4ce51cbe4
diff -r 29373275b6cb -r 827ff8733729 motor.cpp
--- a/motor.cpp	Thu Mar 23 13:48:46 2017 +0000
+++ b/motor.cpp	Thu Mar 23 13:50:00 2017 +0000
@@ -171,8 +171,8 @@
     float deltaW = (0.1f/(2*0.2f*angle))*speed;
     // 
     if(leftOrRight){
-          w1= speed+ deltaW * tune;
-          w2= speed -deltaW * tune;
+          w1= speed+ (deltaW * tune);
+          w2= speed -(deltaW * tune);
          
           
           }