Programme carte strategie (disco)

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Revision:
38:76f886a1c8e6
Parent:
36:6dd30780bd8e
Child:
40:21bb685b553b
--- a/Robots/Strategie_big.cpp	Thu May 03 22:35:27 2018 +0000
+++ b/Robots/Strategie_big.cpp	Wed May 09 19:36:20 2018 +0000
@@ -41,7 +41,7 @@
             msgTx.data[1]=couleur2;
             msgTx.data[2]=couleur3;
             can2.write(msgTx);
-            break;*/
+            break;
         
         case 101: //baisser l'attrape bloc arrière
             SendRawId(BAISSER_ATTRAPE_BLOC);
@@ -67,15 +67,30 @@
             msgTx.data[0]=couleur1;
             msgTx.data[1]=couleur2;
             msgTx.data[2]=couleur3;
-            msgTx.data[3]=arg1;
+            msgTx.data[3]=var1;
             can2.write(msgTx);
+        case 108:
+            SendRawId(INTER_BAISSER_ATTRAPE_BLOC_AvG);
+            break;
+        case 109:
+            SendRawId(INTER_BAISSER_ATTRAPE_BLOC_AvD);
+            break;
         case 111:
-            SendRawId(BRAS_VENTOUSE_1);
+            SendRawId(RANGER_ATTRAPE_BLOC_AvD);
             break;
         case 112:
-            SendRawId(BRAS_VENTOUSE_2);
+            SendRawId(RANGER_ATTRAPE_BLOC_AvG);
             break;
-
+        
+        
+        case 150:
+            SCORE_GR+=var1;
+            SCORE_GLOBAL=SCORE_GR+SCORE_PR;
+            liaison_Tx.envoyer_short(0x30,SCORE_GLOBAL);
+            waitingAckFrom = 0;
+            waitingAckID = 0;
+            break;
+           
             
         case 10://Désactiver le stop
             isStopEnable = 0;