-
Notifications
You must be signed in to change notification settings - Fork 0
/
gps.h
75 lines (65 loc) · 2.43 KB
/
gps.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
void InitGpsSubSystem(WORD prio,OS_SEM * pDataSem);
struct GPS_READING
{
DWORD itow; // ms GPS Millisecond Time of Week
int ECEF_X; // cm ECEF X coordinate
int ECEF_Y; // cm ECEF Y coordinate
int ECEF_Z; // cm ECEF Z coordinate
int PAcc; // cm 3D Position Accuracy Estimate
int ECEFVX; // cm/s ECEF X velocity
int ECEFVY; // cm/s ECEF Y velocity
int ECEFVZ; // cm/s ECEF Z velocity
int LON; // 1e-07 deg Longitude
int LAT; // 1e-07 deg Latitude
int HEIGHT; // mm Height above Ellipsoid
int HMSL; // mm Height above mean sea level
int VEL_N; // cm/s NED north velocity
int VEL_E; // cm/s NED east velocity
int VEL_D; // cm/s NED down velocity
int Speed; // cm/s Speed (3-D)
int GSpeed; // cm/s Ground Speed (2-D)
int Heading; // 1e-05 deg Heading 2-D zero to 359....
DWORD SAcc; // cm/s Speed Accuracy Estimate
DWORD CAcc; // deg Course / Heading Accuracy Estimate
DWORD Hacc; // mm Horizontal Accuracy Estimate
DWORD Vacc; // mm Vertical Accuracy Estimate
BYTE numSV; // Number of SVs used in navigation solution
BYTE GPSfix; // GPSfix Type, range 0..6
WORD week; // GPS week
WORD ReadingNum; //Serial number of GPS reading
};
extern volatile GPS_READING GPS_Result;
struct SMGPS_READING
{
int LON; // 1e-07 deg Longitude
int LAT; // 1e-07 deg Latitude
int GSpeed; // cm/s Ground Speed (2-D)
int Heading; // 1e-05 deg Heading 2-D
BYTE numSV; // Number of SVs used in navigation solution
BYTE GPSfix; // GPSfix Type, range 0..6
DWORD Hacc; // mm Horizontal Accuracy Estimate
};
#ifdef BIG_CAR
struct BD960_GPS
{
double lattitude;
double longitude;
double ht;
unsigned char r8flags;
float hspeed;
float head;
float vv;
float rms_error;
float sigma_east;
float sigma_north;
float covaren;
float sigma_up;
float semi_major;
float semi_minor;
float orientaion;
float variance;
unsigned char flag1;
unsigned char flag2;
};
extern volatile BD960_GPS bd960_Result;
#endif