aaa
Fork of Move by
Diff: move.cpp
- Revision:
- 10:6d38d1b6cad5
- Parent:
- 9:7e99a1c80656
- Child:
- 12:f41918f71131
--- a/move.cpp Thu Sep 08 10:07:06 2016 +0000 +++ b/move.cpp Fri Sep 09 05:41:17 2016 +0000 @@ -85,9 +85,9 @@ update(); //pc.printf("t:%f\n\r", coordinateTheta()); if(pt-coordinateTheta() < np * rad - ALLOW_RAD) { - move(-14, 14); + move(-20, 20); } else if(pt-coordinateTheta() > np * rad + ALLOW_RAD) { - move(14, -14); + move(20, -20); } else { move(0,0); return; @@ -183,7 +183,7 @@ ptheta = PI; break; case Y_MINUS: - ptheta = PI*3/2; + ptheta = -PI/2; break; default: return;