diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-05-19 21:20:27 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-05-19 21:20:27 +1000 |
commit | c7cb921f361b9fcdb70c15c41a7ae9ea1351817c (patch) | |
tree | 0a0561c183cc2b3583b39ed527c12b3cd9741e77 /telelogger/config.h | |
parent | 527e4396858bc084ede75cfa30fed4e5f93e985a (diff) | |
download | 2021-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.h | 45 |
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 |