gnssPosition.h
Go to the documentation of this file.
1 
4 #include <time.h>
5 #include <string>
6 
7 #pragma once
8 
9 namespace dpyGnssPosition {
11 struct SkyInfo
12 {
13  int satinview;
14  int satinuse;
15  double snravg;
16 // QUEUE_PTR info_sat_queue_ptr;
17 };
18 
20 typedef enum
21 {
22  NO_FIX=0,
30 }
31 
38 {
39 public:
41  tm date;
42  double lat_deg;
43  std::string north_south_indicator;
44  double lon_deg;
45  std::string east_west_indicator;
46  double alt_m;
47  double HDOP;
48  double speed_kmh;
49  double dir_deg;
51 
52  explicit GnssPosition();
53  explicit GnssPosition(const std::string& msg);
54  ~GnssPosition();
55 };
Definition: gnssPosition.h:9
double alt_m
Antenna altitude above/below mean sea level in meters.
Definition: gnssPosition.h:46
dpyGnssPosition::SkyInfo sky
Sky satellite information.
Definition: gnssPosition.h:50
Defines the struct type used to store the SKY_INFO.
Definition: gnssPosition.h:11
Class that defines a position.
Definition: gnssPosition.h:37
GNSS fixed : ESTIMATED_DEAD_RECKONING_FIX_FINE.
Definition: gnssPosition.h:28
tm date
Date of position. Fields day of the week, day of the month or day of the year are unused (value = 0) ...
Definition: gnssPosition.h:41
GNSS fixed : RTK_FLOAT.
Definition: gnssPosition.h:26
GNSS fixed : ESTIMATED_DEAD_RECKONING_FIX_COARSE.
Definition: gnssPosition.h:27
dpyGnssPosition::QualityIndicator fix_quality
FIX quality. Module is FIXED if different from NO_FIX.
Definition: gnssPosition.h:40
double lon_deg
Geographic longitude expressed in Decimal Degrees (D.D�) Range [-180,+180].
Definition: gnssPosition.h:44
std::string north_south_indicator
Latitude North/south indicator as string ("N" or "S")
Definition: gnssPosition.h:43
int satinuse
Number of satellites in use.
Definition: gnssPosition.h:14
double dir_deg
Course over the ground (track angle) in degrees.
Definition: gnssPosition.h:49
double speed_kmh
Speed over the ground in km/h.
Definition: gnssPosition.h:48
double HDOP
Horizontal Dilution of Precision.
Definition: gnssPosition.h:47
GNSS fixed : RTK_FIXED.
Definition: gnssPosition.h:25
std::string east_west_indicator
Longitude East/West indicator as string ("E" or "W")
Definition: gnssPosition.h:45
GNSS module does not have a fixed position at this moment.
Definition: gnssPosition.h:22
double snravg
SNR average.
Definition: gnssPosition.h:15
GNSS fixed : AUTONOMOUS_FIX.
Definition: gnssPosition.h:23
double lat_deg
Geographic latitude expressed in Decimal Degrees (D.D�) Range [-90,+90].
Definition: gnssPosition.h:42
int satinview
Number of satellites in view.
Definition: gnssPosition.h:13
QualityIndicator
Defines the posible FIX quality indicators.
Definition: gnssPosition.h:20
GNSS fixed : DIFFERENTIAL_FIX.
Definition: gnssPosition.h:24