changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Branch:
motorupdate
Revision:
32:bbdd1cc1d6e2
Parent:
30:3d6bb5f736a5
Child:
36:8b6c896e1ab5
--- a/motor.cpp	Wed Jan 11 20:01:48 2017 +0000
+++ b/motor.cpp	Fri Jan 13 09:51:15 2017 +0000
@@ -141,7 +141,7 @@
    // this is the ED for when the car is running off of the sensors rather than a set PWM
    
     bool leftOrRight = false;
-    float tune = 1.2;
+    float tune = 1;
     // makes theta positive and sets if the car is turning left or right
     if(theta<0)
         {
@@ -151,9 +151,9 @@
         }
         
     //this limits the ED to stop it spinning out at high speeds.
-    if(theta>0.5)
+    if(theta>0.3)
     {
-     theta = 0.5;   
+     theta = 0.3;   
         
     }