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,
29 }
30 
37 {
38 public:
40  tm date;
41  double lat_deg;
42  std::string north_south_indicator;
43  double lon_deg;
44  std::string east_west_indicator;
45  double alt_m;
46  double HDOP;
47  double speed_kmh;
48  double dir_deg;
50 
51  explicit GnssPosition();
52  explicit GnssPosition(const std::string& msg);
53  ~GnssPosition();
54 };
Definition: gnssPosition.h:9
double alt_m
Antenna altitude above/below mean sea level in meters.
Definition: gnssPosition.h:45
dpyGnssPosition::SkyInfo sky
Sky satellite information.
Definition: gnssPosition.h:49
Defines the struct type used to store the SKY_INFO.
Definition: gnssPosition.h:11
Class that defines a position.
Definition: gnssPosition.h:36
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:40
GNSS fixed : RTK_FLOAT.
Definition: gnssPosition.h:26
dpyGnssPosition::QualityIndicator fix_quality
FIX quality. Module is FIXED if different from NO_FIX.
Definition: gnssPosition.h:39
double lon_deg
Geographic longitude expressed in Decimal Degrees (D.D�) Range [-180,+180].
Definition: gnssPosition.h:43
std::string north_south_indicator
Latitude North/south indicator as string ("N" or "S")
Definition: gnssPosition.h:42
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:48
double speed_kmh
Speed over the ground in km/h.
Definition: gnssPosition.h:47
double HDOP
Horizontal Dilution of Precision.
Definition: gnssPosition.h:46
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:44
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:41
GNSS fixed : ESTIMATED_DEAD_RECKONING_FIX.
Definition: gnssPosition.h:27
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