summaryrefslogtreecommitdiff
path: root/telelogger/config.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2015-05-19 21:20:27 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2015-05-19 21:20:27 +1000
commitc7cb921f361b9fcdb70c15c41a7ae9ea1351817c (patch)
tree0a0561c183cc2b3583b39ed527c12b3cd9741e77 /telelogger/config.h
parent527e4396858bc084ede75cfa30fed4e5f93e985a (diff)
download2021-arduino-obd-c7cb921f361b9fcdb70c15c41a7ae9ea1351817c.tar.gz
2021-arduino-obd-c7cb921f361b9fcdb70c15c41a7ae9ea1351817c.tar.bz2
2021-arduino-obd-c7cb921f361b9fcdb70c15c41a7ae9ea1351817c.zip
Update Telelogger
Diffstat (limited to 'telelogger/config.h')
-rw-r--r--telelogger/config.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/telelogger/config.h b/telelogger/config.h
new file mode 100644
index 0000000..e55ee89
--- /dev/null
+++ b/telelogger/config.h
@@ -0,0 +1,45 @@
+#ifndef CONFIG_H_INCLUDED
+#define CONFIG_H_INCLUDED
+
+/**************************************
+* Data logging/streaming out
+**************************************/
+#define ENABLE_DATA_OUT 1
+#define ENABLE_DATA_LOG 0
+#define USE_SOFTSERIAL 1
+
+#define STREAM_BAUDRATE 9600
+#define DELAY_AFTER_SENDING 10
+
+//this defines the format of log file
+#define LOG_FORMAT FORMAT_TEXT
+#define STREAM_FORMAT FORMAT_TEXT
+
+/**************************************
+* Accelerometer & Gyro
+**************************************/
+//#define USE_MPU6050 1
+#define USE_MPU9150 1
+#define ACC_DATA_RATIO 160
+#define GYRO_DATA_RATIO 256
+#define COMPASS_DATA_RATIO 8
+
+/**************************************
+* Timeout/interval options
+**************************************/
+#define OBD_MIN_INTERVAL 100 /* ms */
+#define ACC_DATA_INTERVAL 200 /* ms */
+#define GPS_DATA_INTERVAL 200 /* ms */
+
+/**************************************
+* Choose SD pin here
+**************************************/
+#define SD_CS_PIN 10 // SD breakout
+
+/**************************************
+* Other options
+**************************************/
+//#define DEBUG 1
+#define DEBUG_BAUDRATE 9600
+
+#endif // CONFIG_H_INCLUDED