summaryrefslogtreecommitdiff
path: root/telelogger/config.h
blob: 38d3b9c971c96bc3944eb81b6707bd77e9f9e446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#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

// change this to your own URL
#define SERVER_URL "http://live.freematics.com/test"

/**************************************
* 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