The sensor data is published in csv

Dependencies:   mbed FXOS8700 FXAS21002 MPL3115A2

Files at this revision

API Documentation at this revision

Comitter:
aparnab
Date:
Sat Oct 23 11:14:07 2021 +0000
Parent:
3:04bf20362085
Commit message:
gives the sensor data in csv

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Jul 30 11:17:50 2021 +0000
+++ b/main.cpp	Sat Oct 23 11:14:07 2021 +0000
@@ -59,7 +59,7 @@
     float alt_data[3];  float alt_rms=0.0;
     float temp_data[1]; 
     char data_bytes[7];
-    printf("Begin Data Acquisition....\r\n\r\n");
+    printf("Begin Data Acquisition....\r\n");
     wait(0.5);
     
     while(1)
@@ -93,7 +93,7 @@
       alt_rms = sqrt(((alt_data[0]*alt_data[0])+(alt_data[1]*alt_data[1])+(alt_data[2]*alt_data[2]))/3);
       wait(0.2);
       
-      printf("\n\r");
+      printf("\n");
    
       
      }