changes to motor library
Fork of motor by
Diff: motor.cpp
- Branch:
- motorupdate
- Revision:
- 41:827ff8733729
- Parent:
- 40:29373275b6cb
- Child:
- 42:80c4ce51cbe4
--- a/motor.cpp Thu Mar 23 13:48:46 2017 +0000 +++ b/motor.cpp Thu Mar 23 13:50:00 2017 +0000 @@ -171,8 +171,8 @@ float deltaW = (0.1f/(2*0.2f*angle))*speed; // if(leftOrRight){ - w1= speed+ deltaW * tune; - w2= speed -deltaW * tune; + w1= speed+ (deltaW * tune); + w2= speed -(deltaW * tune); }