yei

Dependencies:   interface mbed enc_1multi calPID motorout KondoServoLibrary

Fork of cat18_operate by Catch the GIANT Caplico!

Revision:
10:6d1d44fa9739
Parent:
8:cabc50cf3e1e
Child:
13:126c3f7f9b89
--- a/main.cpp	Fri Aug 10 07:47:22 2018 +0000
+++ b/main.cpp	Sat Aug 11 07:21:59 2018 +0000
@@ -6,7 +6,9 @@
 #include "interrupt.h"
 #include "position.h"
 #include "controller.h"
+//debug用に追加
 #include "interface.h"
+#include "coordinate.h"
 ///setup関連を集めた
 void Setups();
 void Tests();
@@ -16,8 +18,9 @@
     DEBUG("setup start\r\n");
     Setups();
     //スタート指示受付
-    while(CanStart() == 0){};
+    while(CanStart() == 0) {};
     DEBUG("main start");
+    InterruptSetup();
     int worknum = 0;
     while( (worknum = CalPickPlace()) != 23 ) {
         //ワークに向かう
@@ -45,7 +48,7 @@
 {
     GoSetup();
     SetupPosition();
-    InterruptSetup();
+
 }
 void Tests()
 {