changes to motor library
Fork of motor by
Diff: motor.cpp
- Branch:
- motorupdate
- Revision:
- 34:7e59011ca978
- Parent:
- 30:3d6bb5f736a5
- Child:
- 35:f5933039b560
--- 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) {