QGIS API Documentation
2.0.1-Dufour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
gps
sentence.h
Go to the documentation of this file.
1
/*
2
*
3
* NMEA library
4
* URL: http://nmea.sourceforge.net
5
* Author: Tim (
[email protected]
)
6
* Licence: http://www.gnu.org/licenses/lgpl.html
7
* $Id: sentence.h 17 2008-03-11 11:56:11Z xtimor $
8
*
9
*/
10
13
#ifndef __NMEA_SENTENCE_H__
14
#define __NMEA_SENTENCE_H__
15
16
#include "
info.h
"
17
18
#ifdef __cplusplus
19
extern
"C"
20
{
21
#endif
22
26
enum
nmeaPACKTYPE
27
{
28
GPNON
= 0x0000,
29
GPGGA
= 0x0001,
30
GPGSA
= 0x0002,
31
GPGSV
= 0x0004,
32
GPRMC
= 0x0008,
33
GPVTG
= 0x0010
34
};
35
39
typedef
struct
_nmeaGPGGA
40
{
41
nmeaTIME
utc
;
42
double
lat
;
43
char
ns
;
44
double
lon
;
45
char
ew
;
46
int
sig
;
47
int
satinuse
;
48
double
HDOP
;
49
double
elv
;
50
char
elv_units
;
51
double
diff
;
52
char
diff_units
;
53
double
dgps_age
;
54
int
dgps_sid
;
56
}
nmeaGPGGA
;
57
61
typedef
struct
_nmeaGPGSA
62
{
63
char
fix_mode
;
64
int
fix_type
;
65
int
sat_prn
[
NMEA_MAXSAT
];
66
double
PDOP
;
67
double
HDOP
;
68
double
VDOP
;
70
}
nmeaGPGSA
;
71
75
typedef
struct
_nmeaGPGSV
76
{
77
int
pack_count
;
78
int
pack_index
;
79
int
sat_count
;
80
nmeaSATELLITE
sat_data
[
NMEA_SATINPACK
];
81
82
}
nmeaGPGSV
;
83
87
typedef
struct
_nmeaGPRMC
88
{
89
nmeaTIME
utc
;
90
char
status
;
91
double
lat
;
92
char
ns
;
93
double
lon
;
94
char
ew
;
95
double
speed
;
96
double
direction
;
97
double
declination
;
98
char
declin_ew
;
99
char
mode
;
101
}
nmeaGPRMC
;
102
106
typedef
struct
_nmeaGPVTG
107
{
108
double
dir
;
109
char
dir_t
;
110
double
dec
;
111
char
dec_m
;
112
double
spn
;
113
char
spn_n
;
114
double
spk
;
115
char
spk_k
;
117
}
nmeaGPVTG
;
118
119
void
nmea_zero_GPGGA
(
nmeaGPGGA
*pack );
120
void
nmea_zero_GPGSA
(
nmeaGPGSA
*pack );
121
void
nmea_zero_GPGSV
(
nmeaGPGSV
*pack );
122
void
nmea_zero_GPRMC
(
nmeaGPRMC
*pack );
123
void
nmea_zero_GPVTG
(
nmeaGPVTG
*pack );
124
125
#ifdef __cplusplus
126
}
127
#endif
128
129
#endif
/* __NMEA_SENTENCE_H__ */
Generated on Tue Sep 24 2013 14:41:46 for QGIS API Documentation by
1.8.1.2