changes to motor library
Fork of motor by
Diff: motor.cpp
- Branch:
- motorupdate
- Revision:
- 36:8b6c896e1ab5
- Parent:
- 35:f5933039b560
- Parent:
- 32:bbdd1cc1d6e2
- Child:
- 38:4bb39bb1e685
diff -r f5933039b560 -r 8b6c896e1ab5 motor.cpp --- a/motor.cpp Fri Jan 13 10:07:27 2017 +0000 +++ b/motor.cpp Fri Jan 13 10:10:06 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; - + // makes theta positive and sets if the car is turning left or right if(theta<0) { @@ -151,9 +151,12 @@ } //this limits the ED to stop it spinning out at high speeds. - if(theta>0.4) + + if(theta>0.3) { - theta = 0.4; + + theta = 0.3; + }