From 7419eb31668c0c95881885a8cb4fd41f3007ce8f Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 25 Apr 2014 00:36:23 +0800 Subject: Update data logger for Arduino UNO --- unologger/config.h | 7 +++--- unologger/datalogger.h | 2 ++ unologger/unologger.cbp | 4 ++++ unologger/unologger.ino | 64 +++++++++++++++---------------------------------- 4 files changed, 28 insertions(+), 49 deletions(-) (limited to 'unologger') diff --git a/unologger/config.h b/unologger/config.h index fc21b41..e5c8deb 100644 --- a/unologger/config.h +++ b/unologger/config.h @@ -13,8 +13,8 @@ /************************************** * Data logging/streaming out **************************************/ -#define ENABLE_DATA_OUT 0 -#define ENABLE_DATA_LOG 1 +#define ENABLE_DATA_OUT 1 +#define ENABLE_DATA_LOG 0 #define USE_SOFTSERIAL 0 //this defines the format of log file #define LOG_FORMAT FORMAT_CSV @@ -39,13 +39,12 @@ * Choose LCD model here **************************************/ LCD_ILI9341 lcd; -//LCD_SSD1306 lcd; //LCD_Null lcd; /************************************** * Other options **************************************/ -#define USE_MPU6050 0 +#define USE_MPU6050 1 #define GPS_DATA_TIMEOUT 2000 /* ms */ //#define DEBUG Serial #define DEBUG_BAUDRATE 9600 diff --git a/unologger/datalogger.h b/unologger/datalogger.h index bda1e19..00896ff 100644 --- a/unologger/datalogger.h +++ b/unologger/datalogger.h @@ -322,6 +322,8 @@ public: for (byte i = 0; i < HEADER_LEN - sizeof(hdr); i++) sdfile.write((uint8_t)0); dataSize = HEADER_LEN; +#else + sdfile.println("Freematics Log File"); #endif return fileIndex; } diff --git a/unologger/unologger.cbp b/unologger/unologger.cbp index dc962a2..281e3e4 100644 --- a/unologger/unologger.cbp +++ b/unologger/unologger.cbp @@ -582,8 +582,12 @@ + + + +