Programme carte strategie (disco)

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Revision:
29:41e02746041d
Parent:
28:acd18776ed2d
Child:
30:a1e37af4bbde
--- a/Robots/Strategie_small.cpp	Sat May 27 05:40:26 2017 +0000
+++ b/Robots/Strategie_small.cpp	Fri Apr 06 13:47:19 2018 +0000
@@ -1,6 +1,6 @@
-#include "StrategieManager.h"
+#include "global.h"
 #ifdef ROBOT_SMALL
-#include "Config_small.h"
+
 
 unsigned char isStopEnable = 1;//Permet de savoir si il faut autoriser le stop via les balises
 //unsigned short telemetreDistance;
@@ -264,45 +264,45 @@
     switch(id)
     {
         case 1:
-            strcpy(cheminFileStart,"/local/strat1.txt");
+            strcpy(cheminFileStart,"/sd/strat1.txt");
             return FileExists(cheminFileStart);
         case 2:
-            strcpy(cheminFileStart,"/local/strat2.txt");
+            strcpy(cheminFileStart,"/sd/strat2.txt");
             return FileExists(cheminFileStart);
         case 3:
-            strcpy(cheminFileStart,"/local/strat3.txt");
+            strcpy(cheminFileStart,"/sd/strat3.txt");
             return FileExists(cheminFileStart);
         case 4:
-            strcpy(cheminFileStart,"/local/strat4.txt");
+            strcpy(cheminFileStart,"/sd/strat4.txt");
             return FileExists(cheminFileStart);
         case 5:
-            strcpy(cheminFileStart,"/local/strat5.txt");
+            strcpy(cheminFileStart,"/sd/strat5.txt");
             return FileExists(cheminFileStart);
         case 6:
-            strcpy(cheminFileStart,"/local/strat6.txt");
+            strcpy(cheminFileStart,"/sd/strat6.txt");
             return FileExists(cheminFileStart);
         case 7:
-            strcpy(cheminFileStart,"/local/strat7.txt");
+            strcpy(cheminFileStart,"/sd/strat7.txt");
             return FileExists(cheminFileStart);
         case 8:
-            strcpy(cheminFileStart,"/local/strat8.txt");
+            strcpy(cheminFileStart,"/sd/strat8.txt");
             return FileExists(cheminFileStart);
         case 9:
-            strcpy(cheminFileStart,"/local/strat9.txt");
+            strcpy(cheminFileStart,"/sd/strat9.txt");
             return FileExists(cheminFileStart);
         case 10:
-            strcpy(cheminFileStart,"/local/strat10.txt");
+            strcpy(cheminFileStart,"/sd/strat10.txt");
             return FileExists(cheminFileStart);
         case 11:
-            strcpy(cheminFileStart,"/local/grand_8.txt");
+            strcpy(cheminFileStart,"/sd/grand_8.txt");
             return FileExists(cheminFileStart);
         
         case 0x10:
-            strcpy(cheminFileStart,"/local/demoBras.txt");
+            strcpy(cheminFileStart,"/sd/demoBras.txt");
             return FileExists(cheminFileStart);
         
         default:
-            strcpy(cheminFileStart,"/local/strat1.txt");
+            strcpy(cheminFileStart,"/sd/strat1.txt");
             SendRawId(0x258);
             return 0;
     }