changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Branch:
motorupdate
Revision:
18:e3fd26490f58
Parent:
16:9c5e9306ae10
Child:
19:69c142d81437
--- a/motor.cpp	Sun Nov 20 14:34:57 2016 +0000
+++ b/motor.cpp	Wed Nov 30 10:48:45 2016 +0000
@@ -127,7 +127,7 @@
             
         }
  
-        float deltaW = ((0.2f*tan((theta/0.02222f)* (3.14f / 180.0f)))/0.2f)*speed;
+        float deltaW = ((0.1f*tan((theta/0.02222f)* (3.14f / 180.0f)))/0.2f)*speed;
         
         //TFC_SetMotorPWM(w2,w1);
         if(leftOrRight){
@@ -156,7 +156,7 @@
             
         }
  
-    float deltaW = ((0.2f*tan((theta/0.02222f)* (3.14f / 180.0f)))/0.2f)*speed;
+    float deltaW = ((0.1f*tan((theta/0.02222f)* (3.14f / 180.0f)))/0.2f)*speed;
     
     w1= speed+ deltaW;
     w2= speed -deltaW;