k
Dependents: 3rdcompfixstart 2ndcomp 4thcomp 6th33222_copy
Fork of Move by
Diff: move.cpp
- Revision:
- 11:451b0c1d06b7
- Parent:
- 9:7e99a1c80656
- Child:
- 12:4e9cadc225f5
- Child:
- 13:4501c9202500
diff -r 7e99a1c80656 -r 451b0c1d06b7 move.cpp --- a/move.cpp Thu Sep 08 10:07:06 2016 +0000 +++ b/move.cpp Fri Sep 09 05:43:40 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;