a
Dependencies: Locate Move Servo button mbed
Fork of 3rdcompfixstart by
Diff: main.cpp
- Revision:
- 7:43692ae2d20a
- Parent:
- 6:931d51a70200
- Child:
- 8:21f40f92215f
--- a/main.cpp Mon Sep 05 10:39:03 2016 +0000 +++ b/main.cpp Mon Sep 05 11:08:33 2016 +0000 @@ -15,23 +15,14 @@ pmove_to_dir(Y_PLUS, 600, 600); pmove_to_dir(X_MINUS, 0, 600); pmove_to_dir(Y_MINUS, 0, 0); + + pmove_to_dir(X_PLUS, 1200, 0); + pmove_to_dir(Y_PLUS, 1200, 300); + pmove_to_dir(X_MINUS, 0, 300); + pmove_to_dir(Y_MINUS, 0, 0); + back(); } - //turn_abs_rad(PI/2); - while(1) { update(); } } - - -/* -int main(){ - setup(); - initmotor(); - - for(int i=0; i < 4; i++) - { - movelength(1200); - turnccw(); - } -}*/ \ No newline at end of file