-
Notifications
You must be signed in to change notification settings - Fork 9
/
FwInter.h
103 lines (69 loc) · 1.93 KB
/
FwInter.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#ifndef FW_INTERFACE
#define FW_INTERFACE
/***********************************************************************
// Clifford Kelley <[email protected]>
// This program is licensed under BSD LICENSE
Version 0.7 3/13/04
1.) Added Geoidal Seperation to GGA. Hard coded to 0.0
2.) Set Mode to A in GAS
Version 0.6 2/26/04 Removed channels structure definition
Version 0.4 Added buad rate selection and NMEA sentence selection capablity
Version 0.3 Turned off hardware flow control
Version 0.2 Fixed SV in view bug
Version 0.1 Initial release
***********************************************************************/
typedef struct _NMEA_ENABLES
{
unsigned int GPGGA;
unsigned int GPGSV;
unsigned int GPGSA;
unsigned int GPVTG;
unsigned int GPRMC;
unsigned int GPZDA;
} NMEA_ENABLES, *pNMEA_ENABLES;
typedef struct _DMY
{
int Day;
int Month;
int Year;
} DMY, *pDMY;
typedef struct _VISIBLE_SV_DATA
{
int elevation;
int azimuth;
double CNo;
int PRN;
} VISIBLE_SV_DATA, *pVISIBLE_SV_DATA;
typedef struct _TRACKING_PRNs
{
unsigned int PRN;
} TRACKING_PRNs, *pTRACKING_PRNs;
int GetNavStatus (void);
double GetAltitude (void);
double GetLatitude (void);
double GetLatitudeAbs (void);
double GetLongitude (void);
double GetLongitudeAbs (void);
int GetFixQuality (void);
int GetNorthSouth (void);
int GetEastWest (void);
int GetNumberOfVisibleSVs (void);
int GetNumberOfTrackingSVs (void);
pVISIBLE_SV_DATA GetVisibleSVData (void);
void GetTrackingPRNs (pTRACKING_PRNs pTrackingPRNs);
/**
* Date time stuff
**/
void GetDayMonthYear (pDMY pDMY);
double GetTimeOfFixUTC (void);
double GetHrMinSecUTC (void);
double GetGroundSpeedKnots (void);
double GetTrueHeading (void);
double GroundSpeedKilos (void);
int GetNumberOfTrackingSVs (void);
double GetHDOP (void);
double GetVDOP (void);
double GetPDOP (void);
double GetHeightOfGeoid (void);
void GetNmeaSentenceEables (pNMEA_ENABLES pNmeaEnables);
#endif