Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | #ifndef __GPS_H |
2 | #define __GPS_H |
||
3 | |||
215 | killagreg | 4 | #include "ubx.h" |
41 | ingob | 5 | #include "waypoints.h" |
1 | ingob | 6 | |
41 | ingob | 7 | typedef struct |
1 | ingob | 8 | { |
41 | ingob | 9 | s16 Nick; |
10 | s16 Roll; |
||
11 | s16 Yaw; |
||
12 | } __attribute__((packed)) GPS_Stick_t; |
||
1 | ingob | 13 | |
278 | killagreg | 14 | typedef struct |
15 | { |
||
16 | s16 Azimuth; // angle measured clockwise from north |
||
17 | s16 Elevation; // angle measured upwards from horizont |
||
18 | u8 State; // NEWDATA, PROCESSED, INVALID |
||
19 | } __attribute__((packed)) CAM_Orientation_t; |
||
20 | |||
21 | extern CAM_Orientation_t CAM_Orientation; |
||
41 | ingob | 22 | extern Waypoint_t* GPS_pWaypoint; |
1 | ingob | 23 | |
41 | ingob | 24 | void GPS_Init(void); |
215 | killagreg | 25 | void GPS_Navigation(gps_data_t *pGPS_Data, GPS_Stick_t* pGPS_Stick); |
222 | holgerb | 26 | void CalcHeadFree(void); |
1 | ingob | 27 | |
258 | holgerb | 28 | #define EVENTFLAG_1_WP_CHANNEL 1 |
29 | #define EVENTFLAG_2_WP_CHANNEL 2 |
||
30 | |||
41 | ingob | 31 | #endif //__GPS_H |
1 | ingob | 32 |