Slow SD Logger

Dependencies:   Adafruit_RTCLib BNO055 SDFileSystem_SlowLogger analoghalls mbed

Fork of analoghalls by Bayley Wang

Files at this revision

API Documentation at this revision

Comitter:
bwang
Date:
Tue Dec 12 16:16:16 2017 +0000
Parent:
5:6da98f3faf33
Child:
7:1a5039c49f5d
Commit message:
10Hz logging of plaintext (csv) files

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Dec 12 12:50:09 2017 +0000
+++ b/main.cpp	Tue Dec 12 16:16:16 2017 +0000
@@ -23,7 +23,6 @@
 PwmOut pwm_r(D4);
 PwmOut pwm_g(D6);
 PwmOut pwm_b(D3);
-DigitalOut test(PC_8);
 
 char fname[255];
 char current_time[64];
@@ -139,13 +138,11 @@
         
         tics++;
         if (tics % 100 == 0) {
-            test = 1;
             tics = 0;
             
             imu.get_accel();
             fprintf(fp, "%d,%d,%d\n",(int) (100*imu.accel.x),(int)(100*imu.accel.y),(int)(100*imu.accel.z));
             fflush(fp);
-            test = 0;
         }
         wait(0.001);
     }