Rev 280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 280 | Rev 283 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | 5 | ||
6 | #define POINT_TYPE_INVALID 255 |
6 | #define POINT_TYPE_INVALID 255 |
7 | #define POINT_TYPE_WP 0 |
7 | #define POINT_TYPE_WP 0 |
Line -... | Line 8... | ||
- | 8 | #define POINT_TYPE_POI 1 |
|
- | 9 | ||
8 | #define POINT_TYPE_POI 1 |
10 | extern u8 POIIndex; // list index of GPS Point representing the current POI, can be maximal WPCount |
9 | 11 | ||
10 | typedef struct |
12 | typedef struct |
11 | { |
13 | { |
12 | GPS_Pos_t Position; // the gps position of the waypoint, see ubx.h for details |
14 | GPS_Pos_t Position; // the gps position of the waypoint, see ubx.h for details |
13 | s16 Heading; // orientation, 0 no action, 1...360 fix heading, neg. = Index to POI in WP List |
15 | s16 Heading; // orientation, 0 no action, 1...360 fix heading, neg. = Index to POI in WP List |
14 | u8 ToleranceRadius; // in meters, if the MK is within that range around the target, then the next target is triggered |
16 | u8 ToleranceRadius; // in meters, if the MK is within that range around the target, then the next target is triggered |
15 | u8 HoldTime; // in seconds, if the was once in the tolerance area around a WP, this time defines the delay before the next WP is triggered |
17 | u8 HoldTime; // in seconds, if the was once in the tolerance area around a WP, this time defines the delay before the next WP is triggered |
16 | u8 Event_Flag; // future implementation |
18 | u8 Event_Flag; // future implementation |
17 | u8 Index; // to indentify different waypoints, workaround for bad communications PC <-> NC |
19 | u8 Index; // to indentify different waypoints, workaround for bad communications PC <-> NC |
- | 20 | u8 Type; // typeof Waypoint |
|
- | 21 | u8 WP_EventChannelValue; // |
|
18 | u8 Type; // typeof Waypoint |
22 | s16 DesiredAltitude; |
19 | u8 WP_EventChannelValue; // |
23 | u8 ClimbingSpeed; |
Line -... | Line 24... | ||
- | 24 | u8 reserve[6]; // reserve |
|
- | 25 | } __attribute__((packed)) Point_t; |
|
- | 26 | ||
- | 27 | extern Point_t* GPS_pPoi; // pointer to the actual point of interrest |
|
20 | u8 reserve[9]; // reserve |
28 | extern u8 POICount; |
21 | } __attribute__((packed)) Point_t; |
29 | |
22 | 30 | ||
23 | // Init List, return TRUE on success |
31 | // Init List, return TRUE on success |
24 | u8 PointList_Init(void); |
32 | u8 PointList_Init(void); |