Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
51 | osiair | 1 | //------------------------------------------------------------------------------ |
2 | // _ _ |
||
3 | // | | | | |
||
4 | // ___ _ __ ___ ___ _ _ ___| |_ ___ ___| |__ |
||
5 | // / _ \ '_ ` _ \/ __| | | / __| __/ _ \/ __| '_ \. |
||
6 | // | __/ | | | | \__ \ |_| \__ \ || __/ (__| | | | |
||
7 | // \___|_| |_| |_|___/\__, |___/\__\___|\___|_| |_| |
||
8 | // __/ | |
||
9 | // |___/ Engineering |
||
10 | // |
||
11 | // Filename: gps_ubx.h |
||
12 | // Description: |
||
13 | // |
||
14 | // Author: Martin Steppuhn |
||
15 | // History: 08.06.2007 Initial version |
||
16 | // |
||
17 | //------------------------------------------------------------------------------ |
||
18 | |||
19 | #ifndef GPS_UBX_H |
||
20 | #define GPS_UBX_H |
||
21 | |||
22 | /**** Includes ****************************************************************/ |
||
23 | |||
24 | #include "std_c.h" |
||
25 | |||
26 | /**** Preprocessing directives (#define) **************************************/ |
||
27 | |||
28 | /**** Type definitions (typedef) **********************************************/ |
||
29 | |||
30 | typedef struct ubx_struct |
||
31 | { |
||
32 | bool update; |
||
33 | |||
34 | uint8 msg_class; |
||
35 | uint8 msg_id; |
||
36 | uint8 length; |
||
37 | uint8 data[256]; |
||
38 | }; |
||
39 | |||
40 | typedef struct nav_sol_struct |
||
41 | { |
||
42 | uint8 update; |
||
43 | |||
44 | uint32 itow; // Time |
||
45 | uint8 gpsfix; // GPSfix |
||
46 | int32 ecef_x; // cm ECEF X coordinate |
||
47 | int32 ecef_y; // cm ECEF Y coordinate |
||
48 | int32 ecef_z; // cm ECEF Z coordinate |
||
49 | uint32 pacc; // cm 3D Position Accuracy Estimate |
||
50 | int32 ecefvx; // cm/s ECEF X velocity |
||
51 | int32 ecefvy; // cm/s ECEF Y velocity |
||
52 | int32 ecefvz; // cm/s ECEF Z velocity |
||
53 | uint32 sacc; // cm/s Speed Accuracy Estimate |
||
54 | uint16 pdop; // Position DOP |
||
55 | |||
56 | uint8 numsv; // Number of SVs used in Nav Solution |
||
57 | }; |
||
58 | |||
59 | /**** Global constants (extern) ***********************************************/ |
||
60 | |||
61 | /**** Global variables (extern) ***********************************************/ |
||
62 | |||
63 | struct ubx_struct ubx; |
||
64 | struct nav_sol_struct nav_sol; |
||
65 | |||
66 | /**** Global function prototypes **********************************************/ |
||
67 | |||
68 | extern void ubx_push(uint8 c); |
||
69 | extern void ubx_decode(struct ubx_struct *ubx); |
||
70 | |||
71 | #endif |