changes to motor library
Fork of motor by
Diff: motor.cpp
- Branch:
- motorupdate
- Revision:
- 48:2e39f9fca850
- Parent:
- 47:bafec50148b6
- Child:
- 49:98fb0d816007
--- a/motor.cpp Thu Apr 27 15:59:40 2017 +0000 +++ b/motor.cpp Fri Apr 28 07:54:55 2017 +0000 @@ -118,6 +118,11 @@ theta=theta*-1; } + if(theta>0.3) + { + theta =0.3; + + } //calculates the difference in float deltaW = (((0.1f*tan((theta/0.02222f)* (3.14f / 180.0f)))/0.2f)*speed)*tuner;