Subversion Repositories NaviCtrl

Rev

Rev 717 | Rev 722 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 717 Rev 721
Line 21... Line 21...
21
{
21
{
22
        TRIG_DocState_t state;                                                                  // state of the kml-document
22
        TRIG_DocState_t state;                                                                  // state of the kml-document
23
        File_t *file;                                                                                   // filepointer to the file where the data should be saved.
23
        File_t *file;                                                                                   // filepointer to the file where the data should be saved.
24
} TRIG_Document_t;
24
} TRIG_Document_t;
Line -... Line 25...
-
 
25
 
25
 
26
 
26
typedef enum
27
typedef enum
27
{
28
{
28
        LOGFILE_IDLE,
29
        LOGFILE_IDLE,
29
        LOGFILE_START,
30
        LOGFILE_START,
30
        LOGFILE_CLOSED,
31
        LOGFILE_CLOSED,
31
        LOGFILE_OPENED,
32
        LOGFILE_OPENED,
32
        LOGFILE_ERROR
33
        LOGFILE_ERROR
33
} logfilestate_t;
-
 
Line 34... Line 34...
34
 
34
} tlogfilestate_t;
35
 
35
 
36
typedef struct
36
typedef struct
37
{
37
{
Line 50... Line 50...
50
 u16 ServoControlPoi;
50
 u16 ServoControlPoi;
51
 u8 NewData;
51
 u8 NewData;
52
}  TrigLog_t;
52
}  TrigLog_t;
53
extern TrigLog_t TrigLogging;
53
extern TrigLog_t TrigLogging;
Line 54... Line 54...
54
 
54
 
55
extern logfilestate_t LoggingTrigger(u32);
55
extern tlogfilestate_t LoggingTrigger(u32);
56
u8 TRIG_LoggGPSCoordinates(TRIG_Document_t *);                          // intializes the kml-document with standard filename and adds points to the file
56
u8 TRIG_LoggGPSCoordinates(TRIG_Document_t *);                          // intializes the kml-document with standard filename and adds points to the file
57
u8 TRIG_DocumentInit(TRIG_Document_t *);                                                // Init the new kml-document
57
u8 TRIG_DocumentInit(TRIG_Document_t *);                                                // Init the new kml-document
58
u8 TRIG_DocumentOpen(s8 *, TRIG_Document_t *);                          // opens a new kml-document. a new file is created on the sd-memorycard
58
u8 TRIG_DocumentOpen(s8 *, TRIG_Document_t *);                          // opens a new kml-document. a new file is created on the sd-memorycard
59
u8 TRIG_DocumentClose(TRIG_Document_t *doc);                                    // closes the specified document saving remaining data to the file.
59
u8 TRIG_DocumentClose(TRIG_Document_t *doc);                                    // closes the specified document saving remaining data to the file.