Subversion Repositories NaviCtrl

Rev

Rev 722 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
82 killagreg 1
#ifndef _LOGGING_H
2
#define _LOGGING_H
3
 
4
void Logging_Init(void);
5
void Logging_Update(void); // logs the current gps position to a kml file
351 holgerb 6
extern u8 SD_LoggingError;
380 holgerb 7
extern u32 Logged_GPX_Counter, Logged_KML_Counter;
82 killagreg 8
 
722 ingob 9
typedef enum
10
{
11
        LOGFILE_IDLE,
12
        LOGFILE_START,
13
        LOGFILE_CLOSED,
14
        LOGFILE_OPENED,
15
        LOGFILE_ERROR
16
} logfilestate_t;
17
 
380 holgerb 18
typedef struct
19
{
20
        u32 KML_Interval;  // the kml-log interval (0 = off)
21
        u32 GPX_Interval;  // the gpx-log interval (0 = off)
581 holgerb 22
        u32 StartAtMotorrun; // 1 = on
380 holgerb 23
} LogCfg_t;
24
 
25
extern LogCfg_t LogCfg;
705 holgerb 26
extern u16 KML_Filenum, GPX_Filenum, GPX_logging_active;
380 holgerb 27
 
705 holgerb 28
#define APPEND_LOG_TIME_MS  2510 // log some more time
29
#define LOG_FLUSH_INTERVAL 4000 // 4s     // -> and if an Error occures
30
 
82 killagreg 31
#endif //_LOGGING_H