Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017

Dependencies:   ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822

Fork of UPAS_BLE_and_USB by Volckens Group Sensors

Files at this revision

API Documentation at this revision

Comitter:
caseyquinn
Date:
Fri Feb 12 03:46:24 2016 +0000
Parent:
110:67980ebdebf6
Child:
112:fd14d51e3493
Commit message:
ticker craps out after ~72 minutes. Reverted to last version of code that uses the Timeout function. There will be some logg drift but I think it should continuous logg fairly regularly.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Feb 12 02:15:02 2016 +0000
+++ b/main.cpp	Fri Feb 12 03:46:24 2016 +0000
@@ -45,8 +45,8 @@
 Calibration         calibrations(1);     //Default serial/calibration if there are no values for the selected option
 
 Timeout         stop;   //This is the stop call back object
-//Timeout         logg;   //This is the logging call back object
-Ticker          logg;      //This is the logging call back object
+Timeout         logg;   //This is the logging call back object
+
 
 
 uint16_t serial_num = 1;                // Default serial/calibration number
@@ -181,8 +181,8 @@
 
 void log_data()
 {
-    //logg.detach();
-    //logg.attach(&log_data, logInerval);     // reading and logging data must take significintly less than 0.5s. This can be increased.
+    logg.detach();
+    logg.attach(&log_data, logInerval);     // reading and logging data must take significintly less than 0.5s. This can be increased.
 
     
     RTC.get_time();
@@ -612,8 +612,8 @@
     // Main Control Loop
 
 
-    //logg.attach(&log_data, logInerval); // uses callbacks or block Interrupts for anything that uses i2c
-    logg.attach(&log_data, logInerval);
+    logg.attach(&log_data, logInerval); // uses callbacks or block Interrupts for anything that uses i2c
+    
 
 
 }