Rev 577 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 577 | Rev 602 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #include "ubx.h" |
4 | #include "ubx.h" |
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 |
- | 8 | #define POINT_TYPE_POI 1 |
|
- | 9 | #define POINT_TYPE_FS 2 |
|
- | 10 | ||
- | 11 | // the waypoints list |
|
Line 8... | Line 12... | ||
8 | #define POINT_TYPE_POI 1 |
12 | #define MAX_LIST_LEN 101 |
9 | 13 | ||
10 | typedef struct |
14 | typedef struct |
11 | { |
15 | { |
Line 19... | Line 23... | ||
19 | u8 WP_EventChannelValue; // Will be transferred to the FC and can be used as Poti value there |
23 | u8 WP_EventChannelValue; // Will be transferred to the FC and can be used as Poti value there |
20 | u8 AltitudeRate; // rate to change the setpoint in steps of 0.1m/s |
24 | u8 AltitudeRate; // rate to change the setpoint in steps of 0.1m/s |
21 | u8 Speed; // rate to change the Position(0 = max) in steps of 0.1m/s |
25 | u8 Speed; // rate to change the Position(0 = max) in steps of 0.1m/s |
22 | u8 CamAngle; // Camera servo angle in degree (255 -> POI-Automatic) |
26 | u8 CamAngle; // Camera servo angle in degree (255 -> POI-Automatic) |
23 | u8 Name[4]; // Name of that point (ASCII) |
27 | u8 Name[4]; // Name of that point (ASCII) |
- | 28 | u8 AutoPhotoDistance; // in [m] |
|
24 | u8 reserve[2]; // reserve |
29 | u8 reserve[1]; // reserve |
25 | } __attribute__((packed)) Point_t; |
30 | } __attribute__((packed)) Point_t; |
Line 26... | Line 31... | ||
26 | 31 | ||
27 | 32 | ||
Line 76... | Line 81... | ||
76 | u8 PointList_LoadSinglePoint(WPL_Store_t * pWPL_Store); |
81 | u8 PointList_LoadSinglePoint(WPL_Store_t * pWPL_Store); |
Line 77... | Line 82... | ||
77 | 82 | ||
78 | extern u32 SD_WaypointTimeout; // Setting on SD-Card |
83 | extern u32 SD_WaypointTimeout; // Setting on SD-Card |
79 | extern void ClearWLP_Name(void); |
84 | extern void ClearWLP_Name(void); |
- | 85 | extern s16 HeadingOld; |
|
- | 86 | extern Point_t PointList[MAX_LIST_LEN]; |
|
Line 80... | Line 87... | ||
80 | extern s16 HeadingOld; |
87 | extern u8 FsPointCnt; |