Subversion Repositories NaviCtrl

Rev

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

Rev 494 Rev 495
Line 22... Line 22...
22
        u8      CamAngle;                       // Camera servo angle in degree (255 -> POI-Automatic)
22
        u8      CamAngle;                       // Camera servo angle in degree (255 -> POI-Automatic)
23
        u8  Name[4];                // Name of that point (ASCII)
23
        u8  Name[4];                // Name of that point (ASCII)
24
    u8  reserve[2];                 // reserve
24
    u8  reserve[2];                 // reserve
25
} __attribute__((packed)) Point_t;
25
} __attribute__((packed)) Point_t;
Line -... Line 26...
-
 
26
 
-
 
27
 
-
 
28
#define WPL_STORE_TYPE_REL 0
-
 
29
#define WPL_STORE_TYPE_ABS 1
-
 
30
 
-
 
31
typedef struct
-
 
32
{
-
 
33
        u8 Index;
-
 
34
        u8 Type;                  // 0 = rel, 1 = abs
-
 
35
        u8 OverwriteFile;         // 0 = no, 1 = yes
-
 
36
        u8 reserved[7];
-
 
37
        s8 Name[12];
-
 
38
} __attribute__((packed)) WPL_Store_t;
26
 
39
 
27
// Init List, return TRUE on success
40
// Init List, return TRUE on success
28
u8 PointList_Init(void);
41
u8 PointList_Init(void);
29
// Clear List, return TRUE on success
42
// Clear List, return TRUE on success
30
u8 PointList_Clear(void);
43
u8 PointList_Clear(void);
Line 43... Line 56...
43
// enables/disables waypoint function
56
// enables/disables waypoint function
44
void PointList_WPActive(u8 set);
57
void PointList_WPActive(u8 set);
45
// returns pointer to actual POI
58
// returns pointer to actual POI
46
Point_t* PointList_GetPOI(void);
59
Point_t* PointList_GetPOI(void);
47
// save actual point list to SD card
60
// save actual point list to SD card
-
 
61
#define WPL_ERROR               0
-
 
62
#define WPL_OK                  1
-
 
63
#define WPL_FILEEXIST   2
48
u8 PointList_SaveToFile(u8 place, s8 * name);
64
u8 PointList_SaveToFile(WPL_Store_t * pWPL_Store);
49
// load actual point list from SD card
65
// load actual point list from SD card
50
u8 PointList_ReadFromFile(u8 place);
66
u8 PointList_ReadFromFile(WPL_Store_t * pWPL_Store);
51
// move actual point list to ref pos., the point in the list marked by RefIndex get the RefPos afterwards
67
// move actual point list to ref pos., the point in the list marked by RefIndex get the RefPos afterwards
52
u8 PointList_Move(u8 RefIndex, GPS_Pos_t* pRefPos);
68
u8 PointList_Move(u8 RefIndex, GPS_Pos_t* pRefPos);
Line 53... Line 69...
53
 
69