Subversion Repositories NaviCtrl

Rev

Rev 705 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 705 Rev 722
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
 
-
 
9
typedef enum
-
 
10
{
-
 
11
        LOGFILE_IDLE,
-
 
12
        LOGFILE_START,
-
 
13
        LOGFILE_CLOSED,
-
 
14
        LOGFILE_OPENED,
-
 
15
        LOGFILE_ERROR
-
 
16
} logfilestate_t;
8
 
17
 
9
typedef struct
18
typedef struct
10
{
19
{
11
        u32 KML_Interval;  // the kml-log interval (0 = off)
20
        u32 KML_Interval;  // the kml-log interval (0 = off)
12
        u32 GPX_Interval;  // the gpx-log interval (0 = off)
21
        u32 GPX_Interval;  // the gpx-log interval (0 = off)
13
        u32 StartAtMotorrun; // 1 = on
22
        u32 StartAtMotorrun; // 1 = on
14
} LogCfg_t;
23
} LogCfg_t;
15
 
24
 
16
extern LogCfg_t LogCfg;
25
extern LogCfg_t LogCfg;
17
extern u16 KML_Filenum, GPX_Filenum, GPX_logging_active;
26
extern u16 KML_Filenum, GPX_Filenum, GPX_logging_active;
18
 
27
 
19
#define APPEND_LOG_TIME_MS  2510 // log some more time
28
#define APPEND_LOG_TIME_MS  2510 // log some more time
20
#define LOG_FLUSH_INTERVAL 4000 // 4s     // -> and if an Error occures
29
#define LOG_FLUSH_INTERVAL 4000 // 4s     // -> and if an Error occures
21
 
30
 
22
#endif //_LOGGING_H 
31
#endif //_LOGGING_H 
23
 
32