A set of data recording functions to locally store data in a circular buffer, with functions for offloading to an SD Card when convenient. dataRecorderr.h shows accessible functions to the main program - all direct SD operations are abstracted away by the library. When using this library, #include dataRecorder.h

Dependencies:   sd-driver_compatible_with_MAX32630FTHR

Fork of CircularBufferSDCardLib by Daniel Levine

Revision:
9:a2ba4015796e
Parent:
5:0a4ff027086c
Child:
10:f5fdba83488a
--- a/dataRecorder.cpp	Thu Apr 05 09:14:27 2018 +0000
+++ b/dataRecorder.cpp	Fri Apr 06 04:01:33 2018 +0000
@@ -22,7 +22,7 @@
 
 
 uint16_t DataRecorder::popLastDataPoint(){
-  printf("pop data\n");
+  //printf("pop data\n");
   
   m_data_quantity--;
     if (m_data_quantity<0){
@@ -39,7 +39,7 @@
 }
 
 uint32_t DataRecorder::popLastTimeStamp(){
-  printf("pop time\n");
+  //printf("pop time\n");
   m_time_quantity--;
   if (m_time_quantity<0){
     m_time_quantity=0;
@@ -56,7 +56,7 @@
 }
 
 void DataRecorder::logDistancePoint(uint16_t value){
-  printf("push distance\n");
+  //printf("push distance\n");
   m_data_quantity++;
   if (m_data_quantity>BUF_SIZE){
     m_data_quantity=BUF_SIZE;
@@ -65,7 +65,7 @@
 }
 
 void DataRecorder::logTimeStamp(uint32_t value){
-  printf("push time\n");
+  //printf("push time\n");
   m_time_quantity++;
   if (m_time_quantity>BUF_SIZE){
     m_time_quantity=BUF_SIZE;