a

Dependencies:   Locate Move Servo button mbed

Fork of 3rdcompfixstart by 涼太郎 中村

Revision:
8:21f40f92215f
Parent:
7:43692ae2d20a
Child:
9:94aa6a12b730
diff -r 43692ae2d20a -r 21f40f92215f main.cpp
--- a/main.cpp	Mon Sep 05 11:08:33 2016 +0000
+++ b/main.cpp	Tue Sep 06 09:31:30 2016 +0000
@@ -9,19 +9,11 @@
     initmotor();
 
     wait(1);
-
-    while(1) {
-        pmove_to_dir(X_PLUS, 600, 0);
-        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();
-    }
+    
+    pmove(600, 0);
+    
+    back(300, 0);
+    
     while(1) {
         update();
     }