changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Branch:
motorupdate
Revision:
34:7e59011ca978
Parent:
30:3d6bb5f736a5
Child:
35:f5933039b560
diff -r 3d6bb5f736a5 -r 7e59011ca978 motor.cpp
--- a/motor.cpp	Wed Jan 11 20:01:48 2017 +0000
+++ b/motor.cpp	Fri Jan 13 10:05:58 2017 +0000
@@ -136,12 +136,12 @@
 }
         
         
-void sensorCorner(float &w1,float &w2,float theta,float speed)
+void sensorCorner(float &w1,float &w2,float theta,float speed, float tune)
 {   // when cornering left the left motor slows down more than the right hand side
    // 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;
+    
     // makes theta positive and sets if the car is turning left or right
     if(theta<0)
         {