Skip to content
Permalink
Browse files

Dox++

  • Loading branch information
nyalldawson committed Jan 7, 2020
1 parent 3746f4c commit d8a40818f030ad1b57863e63155883d710682524
Showing with 269 additions and 98 deletions.
  1. +81 −40 python/core/auto_generated/gps/qgsgpsconnection.sip.in
  2. +188 −58 src/core/gps/qgsgpsconnection.h
@@ -15,56 +15,97 @@
#include "qgsgpsconnection.h"
%End

struct QgsSatelliteInfo
class QgsSatelliteInfo
{
int id;
bool inUse;
int elevation;
int azimuth;
int signal;
%Docstring
Encapsulates information relating to a GPS satellite.
%End

%TypeHeaderCode
#include "qgsgpsconnection.h"
%End
public:

int id;

bool inUse;


double elevation;


double azimuth;

int signal;
};

struct QgsGpsInformation
class QgsGpsInformation
{
%Docstring
Encapsulates information relating to a GPS position fix.
%End

%TypeHeaderCode
#include "qgsgpsconnection.h"
%End
public:

enum FixStatus
{
NoData,
NoFix,
Fix2D,
Fix3D
};

double latitude;

double longitude;

double elevation;

double speed;


double direction;

QList<QgsSatelliteInfo> satellitesInView;

double pdop;

double hdop;

double vdop;

//! Horizontal accuracy in meters
double hacc;
//! Vertical accuracy in meters
double vacc;

QDateTime utcDateTime;

QChar fixMode;

int fixType;

int quality;

int satellitesUsed;

QChar status;

QList<int> satPrn;

bool satInfoComplete;

enum FixStatus
{
NoData,
NoFix,
Fix2D,
Fix3D
};

double latitude;
double longitude;
double elevation;
double speed;
double direction;
QList<QgsSatelliteInfo> satellitesInView;
double pdop;
double hdop;
double vdop;
//! Horizontal accuracy in meters
double hacc;
//! Vertical accuracy in meters
double vacc;
QDateTime utcDateTime;
QChar fixMode;
int fixType;
int quality;
int satellitesUsed;
QChar status; // from GPRMC A,V
QList<int> satPrn; // list of SVs in use; needed for QgsSatelliteInfo.inUse and other uses
bool satInfoComplete;

bool isValid() const;
bool isValid() const;
%Docstring
Returns whether the connection information is valid

.. versionadded:: 3.10
%End

FixStatus fixStatus() const;
FixStatus fixStatus() const;
%Docstring
Returns the fix status

@@ -75,7 +116,7 @@ Returns the fix status
class QgsGpsConnection : QObject
{
%Docstring
Abstract base class for connection to a GPS device*
Abstract base class for connection to a GPS device
%End

%TypeHeaderCode

0 comments on commit d8a4081

Please sign in to comment.
You can’t perform that action at this time.