Programme carte strategie (disco)

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Revision:
11:ed13a480ddca
Parent:
1:116040d14164
Child:
27:76ead555a63d
--- 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