2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
114:325e4c158141
Parent:
108:7eb434cfcbd7
--- a/communicate.h	Fri Oct 23 21:58:39 2015 +0000
+++ b/communicate.h	Tue Oct 27 07:49:43 2015 +0000
@@ -218,6 +218,7 @@
 short edge_left         = 0;
 short edge_up           = 0;
 short edge_down         = 0;
+short edge_cross        = 0;
 short square            = 0;
 short triangle          = 0;
 short circle            = 0;
@@ -277,6 +278,7 @@
     if(!up) edge_up=1;
     if(!square) edge_square=1;
     if(!down) edge_down=1;
+    if(!cross) edge_cross=1;
 }
 ///interrupt SBDBT RX.
 inline void SBDBT_interrupt()
@@ -299,4 +301,4 @@
     SBDBT.format(8, Serial::None, 1);
     SBDBT.attach(SBDBT_interrupt, Serial::RxIrq);
 }
-#endif
\ No newline at end of file
+#endif