QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
info.h
Go to the documentation of this file.
1 /*
2 * Copyright Tim (xtimor@gmail.com)
3 *
4 * NMEA library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>
16 */
17 /*
18  *
19  * NMEA library
20  * URL: http://nmea.sourceforge.net
21  * Author: Tim (xtimor@gmail.com)
22  * Licence: http://www.gnu.org/licenses/lgpl.html
23  * $Id: info.h 10 2007-11-15 14:50:15Z xtimor $
24  *
25  */
26 
29 #ifndef __NMEA_INFO_H__
30 #define __NMEA_INFO_H__
31 
32 #include "nmeatime.h"
33 
34 #define NMEA_SIG_BAD (0)
35 #define NMEA_SIG_LOW (1)
36 #define NMEA_SIG_MID (2)
37 #define NMEA_SIG_HIGH (3)
38 
39 #define NMEA_FIX_BAD (1)
40 #define NMEA_FIX_2D (2)
41 #define NMEA_FIX_3D (3)
42 
43 #define NMEA_MAXSAT (12)
44 #define NMEA_SATINPACK (4)
45 #define NMEA_NSATPACKS (NMEA_MAXSAT / NMEA_SATINPACK)
46 
47 #define NMEA_DEF_LAT (5001.2621)
48 #define NMEA_DEF_LON (3613.0595)
49 
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif
54 
58  typedef struct _nmeaPOS
59  {
60  double lat;
61  double lon;
63  } nmeaPOS;
64 
70  typedef struct _nmeaSATELLITE
71  {
72  int id;
73  int in_use;
74  int elv;
75  int azimuth;
76  int sig;
78  } nmeaSATELLITE;
79 
85  typedef struct _nmeaSATINFO
86  {
87  int inuse;
88  int inview;
91  } nmeaSATINFO;
92 
99  typedef struct _nmeaINFO
100  {
101  int smask;
105  int sig;
106  int fix;
108  double PDOP;
109  double HDOP;
110  double VDOP;
112  double lat;
113  double lon;
114  double elv;
115  double speed;
116  double direction;
117  double declination;
121  } nmeaINFO;
122 
123  void nmea_zero_INFO( nmeaINFO *info );
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif /* __NMEA_INFO_H__ */
Information about satellite.
Definition: info.h:70
double HDOP
Horizontal Dilution Of Precision.
Definition: info.h:109
int inview
Total number of satellites in view.
Definition: info.h:88
int azimuth
Azimuth, degrees from true north, 000 to 359.
Definition: info.h:75
struct _nmeaSATINFO nmeaSATINFO
Information about all satellites in view.
nmeaSATELLITE sat[NMEA_MAXSAT]
Satellites information.
Definition: info.h:89
struct _nmeaPOS nmeaPOS
Position data in fractional degrees or radians.
void nmea_zero_INFO(nmeaINFO *info)
int id
Satellite PRN number.
Definition: info.h:72
double lon
Longitude in NDEG - +/-[degree][min].
Definition: info.h:113
int smask
Mask specifying types of packages from which data have been obtained.
Definition: info.h:101
int fix
Operating mode, used for navigation (1 = Fix not available; 2 = 2D; 3 = 3D)
Definition: info.h:106
double direction
Track angle in degrees True.
Definition: info.h:116
double PDOP
Position Dilution Of Precision.
Definition: info.h:108
int sig
GPS quality indicator (0 = Invalid; 1 = Fix; 2 = Differential, 3 = Sensitive)
Definition: info.h:105
int elv
Elevation in degrees, 90 maximum.
Definition: info.h:74
int inuse
Number of satellites in use (not those in view)
Definition: info.h:87
double declination
Magnetic variation degrees (Easterly var.
Definition: info.h:117
Summary GPS information from all parsed packets, used also for generating NMEA stream.
Definition: info.h:99
double VDOP
Vertical Dilution Of Precision.
Definition: info.h:110
struct _nmeaSATELLITE nmeaSATELLITE
Information about satellite.
Position data in fractional degrees or radians.
Definition: info.h:58
double lon
Longitude.
Definition: info.h:61
nmeaTIME utc
UTC of position.
Definition: info.h:103
Date and time data.
Definition: nmeatime.h:43
double lat
Latitude.
Definition: info.h:60
double lat
Latitude in NDEG - +/-[degree][min].
Definition: info.h:112
nmeaSATINFO satinfo
Satellites information.
Definition: info.h:119
int sig
Signal, 00-99 dB.
Definition: info.h:76
double speed
Speed over the ground in kilometers/hour.
Definition: info.h:115
double elv
Antenna altitude above/below mean sea level (geoid) in meters.
Definition: info.h:114
#define NMEA_MAXSAT
Definition: info.h:43
struct _nmeaINFO nmeaINFO
Summary GPS information from all parsed packets, used also for generating NMEA stream.
int in_use
Used in position fix.
Definition: info.h:73
Information about all satellites in view.
Definition: info.h:85