yei

Dependencies:   interface mbed enc_1multi calPID motorout KondoServoLibrary

Fork of cat18_operate by Catch the GIANT Caplico!

Revision:
29:ea48140fc85e
Parent:
28:bcfc84b481bc
--- a/interrupt/interrupt.cpp	Tue Sep 04 12:00:39 2018 +0000
+++ b/interrupt/interrupt.cpp	Tue Sep 04 12:53:50 2018 +0000
@@ -70,6 +70,8 @@
         case CANID_LEFT :
 #elif defined LEFT
         case CANID_RIGHT :
+#else
+            DEBUG("error:There is no defined RIGHT/LEFT in CanRead\r\n");
 #endif
             counterpart_is_in_common = msg.data[0];
             break;
@@ -83,20 +85,23 @@
         case CANID_RIGHT :
 #elif defined LEFT
         case CANID_LEFT:
+#else
+            DEBUG("error:There is no defined RIGHT/LEFT in CanSend\r\n");
 #endif
-        {
-            double now_position_mm[3] = {GetNowTipLocateX(),GetNowTipLocateY(),GetNowTipLocateZ()};
-            if(CheckBanArea(0, now_position_mm[0], now_position_mm) == 0) can_pub_data[0] = 1;
-            else can_pub_data[0] = 0;
-            CANMessage msg(state,can_pub_data,kCanlength_rightleft);
-            can.write(msg);
-            break;
-        }
+            {
+                double now_position_mm[3] = {GetNowTipLocateX(),GetNowTipLocateY(),GetNowTipLocateZ()};
+                if(CheckBanArea(0, now_position_mm[0], now_position_mm) == 0) can_pub_data[0] = 1;
+                else can_pub_data[0] = 0;
+                CANMessage msg(state,can_pub_data,kCanlength_rightleft);
+                can.write(msg);
+                break;
+            }
     }
     state ++;
     if(state >= CANID_FINISH) {
         state = 1;
     }
 }
-void SpiRead(){
+void SpiRead()
+{
 }
\ No newline at end of file