Log measurements on SD card added on DISCO-L476VG board acceleration, omega, compass & 5 Analog values

Dependencies:   BSP_DISCO_L476VG COMPASS_DISCO_L476VG ConfigFile GYRO_DISCO_L476VG SDFileSystem mbed

Revision:
1:e1f3b4b8b99b
Parent:
0:0861bf46efe4
--- a/DataFile/DataFile.cpp	Fri Feb 12 20:54:38 2016 +0000
+++ b/DataFile/DataFile.cpp	Sat Feb 13 14:29:40 2016 +0000
@@ -30,7 +30,7 @@
         }  
         cfg.getValue(keyIndex, &value[0], sizeof(value));
         Index=atoi(value);
-        printf("Index=%d\r\n", Index);    
+        //printf("Index=%d\r\n", Index);    
     
         //crèe le non de fichier à créer
         //  printf("OpenDataFile\n\r");
@@ -41,21 +41,21 @@
         strcat (DataFileName,NumFich);
         //   printf("DataFileName=%s\n\r",DataFileName);
         strcat (DataFileName,".txt");
-        printf("DataFileName=%s\n\r",DataFileName);
+        printf("New Data file opened : %s\n\r",DataFileName);
     
         //met à jour l'index
         
         itoa(Index+1,NumFich);
-        printf("Prochain fichier a ecrire=%s\n\r",NumFich);
+        //printf("Prochain fichier a ecrire=%s\n\r",NumFich);
         cfg.setValue(keyIndex, NumFich);
         cfg.write("/sd/index.txt","index",cfg.DOS);
     
         //ouvre le fichier
         fp= fopen(DataFileName, "a");  // Open "xxx.txt" on the local file system for writing
     
-        fprintf(fp, "Gx\tGy\tGz\tWx\tWy\tWz\tMx\tMy\tMz\n");  
+        fprintf(fp, "Gx\tGy\tGz\tWx\tWy\tWz\tMx\tMy\tMz\tI0\tAI1\tAI2\tAI3\tAI4\n");  
         Opened=1;  
-        printf("DataFile opened\n\r"); 
+       // printf("DataFile opened\n\r"); 
         
           
     }
@@ -76,7 +76,7 @@
  
   if (Opened==1)
     {
-     printf("sauvegarde en cours\r\n");
+    // printf("sauvegarde en cours\r\n");
      apMesure->Save(fp);
     }
 }