Carte esclave gros robot

Dependencies:   mbed Herkulex_Library_2019 ident_crac actions_Pr

Revision:
43:7fff7f4d79a1
Parent:
42:a7300d563596
Child:
44:381ecf63e6ab
--- a/main.cpp	Sat May 25 00:59:11 2019 +0000
+++ b/main.cpp	Sat May 25 15:40:31 2019 +0000
@@ -180,7 +180,19 @@
                 can.write(msgTx);
                 SendAck(ACKNOWLEDGE_TELEMETRE,RECEPTION_RECALAGE);
                 break;
-
+                
+        case DATA_TELEMETRE_LOGIQUE:
+                msgTx.id=RECEPTION_TELEMETRE_LOGIQUE; // tx Valeur Telemetre1
+                msgTx.len=4;
+                msgTx.format=CANStandard;
+                msgTx.type=CANData;
+                msgTx.data[0]=(unsigned char)DT1_interrupt_Ex;
+                msgTx.data[1]=(unsigned char)DT2_interrupt_Ex;
+                msgTx.data[2]=(unsigned char)DT3_interrupt_Ex;
+                msgTx.data[3]=(unsigned char)DT4_interrupt_Ex;
+                can.write(msgTx);
+                SendAck(ACKNOWLEDGE_TELEMETRE,RECEPTION_TELEMETRE_LOGIQUE);
+                break;
 
 
 //--------------------------------------------------------------------------ACK carte pompe----------------------------------------------