code strat avant match 2, strat inversée OK normalement

Fork of CRAC-Strat_2017_fin_premier_match by CRAC Team

Revision:
11:ed13a480ddca
Parent:
1:116040d14164
--- a/Debug/debug.cpp	Fri Apr 29 09:14:27 2016 +0000
+++ b/Debug/debug.cpp	Mon May 02 19:40:59 2016 +0000
@@ -100,7 +100,7 @@
 /* FUNCTION NAME: sendStratEtat                                                         */
 /* DESCRIPTION  : permet le debug de l'etat de l'automate de stratégie                  */
 /****************************************************************************************/
-void sendStratEtat(unsigned char etat) {
+void sendStratEtat(unsigned char etat, unsigned char currentInstruction) {
     
     CANMessage msgTx=CANMessage();
     msgTx.id=DEBUG_STRATEGIE_AUTOMATE; // tx nouvelle position en (x,y,theta)
@@ -109,6 +109,7 @@
     msgTx.type=CANData;
     // x sur 2 octets
     msgTx.data[0]=(unsigned char)etat;
+    msgTx.data[1]=(unsigned char)currentInstruction;
 
     can1.write(msgTx);
 }
\ No newline at end of file