QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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:
43 int id = 0;
44
48 bool inUse = false;
49
50#ifndef SIP_RUN
51
55 double elevation = std::numeric_limits< double >::quiet_NaN();
56#else
57
61 double elevation;
62#endif
63
64#ifndef SIP_RUN
65
69 double azimuth = std::numeric_limits< double >::quiet_NaN();
70#else
71
75 double azimuth;
76#endif
77
81 int signal = -1;
82
87 QChar satType;
88
94 Qgis::GnssConstellation constellation() const { return mConstellation; }
95
96 bool operator==( const QgsSatelliteInfo &other ) const
97 {
98 return id == other.id && inUse == other.inUse && elevation == other.elevation && azimuth == other.azimuth && signal == other.signal && satType == other.satType && mConstellation == other.mConstellation;
99 }
100
101 bool operator!=( const QgsSatelliteInfo &other ) const { return !operator==( other ); }
102
103 private:
105
106 friend class QgsNmeaConnection;
107};
108
109#endif // QGSSATELLITEINFORMATION_H
GnssConstellation
GNSS constellation.
Definition qgis.h:1983
@ Unknown
Unknown/other system.
Definition qgis.h:1984
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)