QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgssatelliteinformation.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssatelliteinformation.h
3 -------------------
4 begin : November 30th, 2009
5 copyright : (C) 2009 by Marco Hugentobler
6 email : marco at hugis dot net
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSSATELLITEINFORMATION_H
19#define QGSSATELLITEINFORMATION_H
20
21#include "qgis.h"
22#include "qgis_core.h"
23
24#include <QDateTime>
25#include <QObject>
26#include <QString>
27
33class CORE_EXPORT QgsSatelliteInfo
34{
35 public:
36
44 int id = 0;
45
49 bool inUse = false;
50
51#ifndef SIP_RUN
52
56 double elevation = std::numeric_limits< double >::quiet_NaN();
57#else
58
62 double elevation;
63#endif
64
65#ifndef SIP_RUN
66
70 double azimuth = std::numeric_limits< double >::quiet_NaN();
71#else
72
76 double azimuth;
77#endif
78
82 int signal = -1;
83
88 QChar satType;
89
95 Qgis::GnssConstellation constellation() const { return mConstellation; }
96
97 bool operator==( const QgsSatelliteInfo &other ) const
98 {
99 return id == other.id &&
100 inUse == other.inUse &&
101 elevation == other.elevation &&
102 azimuth == other.azimuth &&
103 signal == other.signal &&
104 satType == other.satType &&
105 mConstellation == other.mConstellation;
106 }
107
108 bool operator!=( const QgsSatelliteInfo &other ) const
109 {
110 return !operator==( other );
111 }
112
113 private:
114
116
117 friend class QgsNmeaConnection;
118};
119
120#endif // QGSSATELLITEINFORMATION_H
GnssConstellation
GNSS constellation.
Definition qgis.h:1796
@ Unknown
Unknown/other system.
Evaluates NMEA sentences coming from a GPS device.
Encapsulates information relating to a GPS satellite.
double elevation
Elevation of the satellite, in degrees.
bool inUse
true if satellite was used in obtaining the position fix.
bool operator!=(const QgsSatelliteInfo &other) const
int signal
Signal strength (0-99dB), or -1 if not available.
bool operator==(const QgsSatelliteInfo &other) const
int id
Contains the satellite identifier number.
double azimuth
The azimuth of the satellite to true north, in degrees.
QChar satType
satType value from NMEA message $GxGSV, where x: P = GPS; S = SBAS (GPSid> 32 then SBasid = GPSid + 8...
Qgis::GnssConstellation constellation() const
Returns the GNSS constellation associated with the information.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)