Rev 581 | Rev 722 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 581 | Rev 705 | ||
---|---|---|---|
1 | #ifndef _LOGGING_H |
1 | #ifndef _LOGGING_H |
2 | #define _LOGGING_H |
2 | #define _LOGGING_H |
3 | 3 | ||
4 | void Logging_Init(void); |
4 | void Logging_Init(void); |
5 | void Logging_Update(void); // logs the current gps position to a kml file |
5 | void Logging_Update(void); // logs the current gps position to a kml file |
6 | extern u8 SD_LoggingError; |
6 | extern u8 SD_LoggingError; |
7 | extern u32 Logged_GPX_Counter, Logged_KML_Counter; |
7 | extern u32 Logged_GPX_Counter, Logged_KML_Counter; |
8 | 8 | ||
9 | typedef struct |
9 | typedef struct |
10 | { |
10 | { |
11 | u32 KML_Interval; // the kml-log interval (0 = off) |
11 | u32 KML_Interval; // the kml-log interval (0 = off) |
12 | u32 GPX_Interval; // the gpx-log interval (0 = off) |
12 | u32 GPX_Interval; // the gpx-log interval (0 = off) |
13 | u32 StartAtMotorrun; // 1 = on |
13 | u32 StartAtMotorrun; // 1 = on |
14 | } LogCfg_t; |
14 | } LogCfg_t; |
15 | 15 | ||
16 | extern LogCfg_t LogCfg; |
16 | extern LogCfg_t LogCfg; |
17 | extern u16 KML_Filenum; |
17 | extern u16 KML_Filenum, GPX_Filenum, GPX_logging_active; |
- | 18 | ||
- | 19 | #define APPEND_LOG_TIME_MS 2510 // log some more time |
|
- | 20 | #define LOG_FLUSH_INTERVAL 4000 // 4s // -> and if an Error occures |
|
18 | 21 | ||
19 | #endif //_LOGGING_H |
22 | #endif //_LOGGING_H |
20 | 23 |