summaryrefslogtreecommitdiff
path: root/megalogger/config.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-10-27 23:33:11 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2013-10-27 23:33:11 +1100
commitcabaa89f83d4e6124728f005c50fb0da8cbd0935 (patch)
tree305bb4752548bbce4b44be1b7b84bb26cd7703e3 /megalogger/config.h
parent948fac18830154769e8c569bdb04f0f328eb9d64 (diff)
download2021-arduino-obd-cabaa89f83d4e6124728f005c50fb0da8cbd0935.tar.gz
2021-arduino-obd-cabaa89f83d4e6124728f005c50fb0da8cbd0935.tar.bz2
2021-arduino-obd-cabaa89f83d4e6124728f005c50fb0da8cbd0935.zip
add config.h for placing all configurations
Diffstat (limited to 'megalogger/config.h')
-rw-r--r--megalogger/config.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/megalogger/config.h b/megalogger/config.h
new file mode 100644
index 0000000..d247475
--- /dev/null
+++ b/megalogger/config.h
@@ -0,0 +1,36 @@
+#ifndef CONFIG_H_INCLUDED
+#define CONFIG_H_INCLUDED
+
+// configurations
+/**************************************
+* Choose SD pin here
+**************************************/
+//#define SD_CS_PIN 4 // ethernet shield
+//#define SD_CS_PIN 7 // microduino
+//#define SD_CS_PIN 10 // SD breakout
+#define SD_CS_PIN SS
+
+/**************************************
+* Config GPS here
+**************************************/
+#define USE_GPS
+#define MAX_GPS_PROCESS_TIME 50 /* ms */
+#define GPS_BAUDRATE 38400 /* bps */
+//#define GPS_OPEN_BAUDRATE 4800 /* bps */
+
+/**************************************
+* Timeout/interval options
+**************************************/
+//#define OBD_MIN_INTERVAL 200 /* ms */
+#define ACC_DATA_INTERVAL 200 /* ms */
+#define GPS_DATA_TIMEOUT 2000 /* ms */
+
+/**************************************
+* Data logging/streaming options
+**************************************/
+#define ENABLE_DATA_OUT 1
+#define ENABLE_DATA_LOG 1
+#define USE_OBD_BT 1
+#define LOG_FORMAT FORMAT_CSV /* options: FORMAT_CSV, FORMAT_BIN */
+
+#endif