Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlocationutils.cpp File Reference

(beb02bd298ffbbebfb4dc382e5dc289a054c1c96)

#include "qlocationutils_p.h"
#include "qgeopositioninfo.h"
#include "qgeosatelliteinfo.h"
#include <QTime>
#include <QList>
#include <QByteArray>
#include <QDateTime>
#include <QDebug>
#include <QTimeZone>
#include <math.h>
+ Include dependency graph for qlocationutils.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE double qlocationutils_nmeaDegreesToDecimal (double nmeaDegrees)
 
static void qlocationutils_readGga (QByteArrayView bv, QGeoPositionInfo *info, double uere, bool *hasFix)
 
static void qlocationutils_readGsa (QByteArrayView bv, QGeoPositionInfo *info, double uere, bool *hasFix)
 
static void qlocationutils_readGsa (QByteArrayView bv, QList< int > &pnrsInUse)
 
static void qlocationutils_readGll (QByteArrayView bv, QGeoPositionInfo *info, bool *hasFix)
 
static void qlocationutils_readRmc (QByteArrayView bv, QGeoPositionInfo *info, bool *hasFix)
 
static void qlocationutils_readVtg (QByteArrayView bv, QGeoPositionInfo *info, bool *hasFix)
 
static void qlocationutils_readZda (QByteArrayView bv, QGeoPositionInfo *info, bool *hasFix)
 

Function Documentation

◆ qlocationutils_nmeaDegreesToDecimal()

static QT_BEGIN_NAMESPACE double qlocationutils_nmeaDegreesToDecimal ( double nmeaDegrees)
static

Definition at line 20 of file qlocationutils.cpp.

Referenced by QLocationUtils::getNmeaLatLong().

+ Here is the caller graph for this function:

◆ qlocationutils_readGga()

static void qlocationutils_readGga ( QByteArrayView bv,
QGeoPositionInfo * info,
double uere,
bool * hasFix )
static

Definition at line 27 of file qlocationutils.cpp.

References QByteArray::fromRawData(), QLocationUtils::getNmeaLatLong(), QLocationUtils::getNmeaTime(), QGeoPositionInfo::HorizontalAccuracy, info, QGeoCoordinate::InvalidCoordinate, time, and QTimeZone::UTC.

Referenced by QLocationUtils::getPosInfoFromNmea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qlocationutils_readGll()

static void qlocationutils_readGll ( QByteArrayView bv,
QGeoPositionInfo * info,
bool * hasFix )
static

Definition at line 109 of file qlocationutils.cpp.

References QByteArray::fromRawData(), QLocationUtils::getNmeaLatLong(), QLocationUtils::getNmeaTime(), info, QGeoCoordinate::InvalidCoordinate, time, and QTimeZone::UTC.

Referenced by QLocationUtils::getPosInfoFromNmea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qlocationutils_readGsa() [1/2]

static void qlocationutils_readGsa ( QByteArrayView bv,
QGeoPositionInfo * info,
double uere,
bool * hasFix )
static

Definition at line 69 of file qlocationutils.cpp.

References QByteArray::fromRawData(), QGeoPositionInfo::HorizontalAccuracy, info, and QGeoPositionInfo::VerticalAccuracy.

Referenced by QLocationUtils::getPosInfoFromNmea(), and QLocationUtils::getSatInUseFromNmea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qlocationutils_readGsa() [2/2]

static void qlocationutils_readGsa ( QByteArrayView bv,
QList< int > & pnrsInUse )
static

Definition at line 92 of file qlocationutils.cpp.

References QByteArray::fromRawData(), i, ok, and qMin().

+ Here is the call graph for this function:

◆ qlocationutils_readRmc()

static void qlocationutils_readRmc ( QByteArrayView bv,
QGeoPositionInfo * info,
bool * hasFix )
static

Definition at line 136 of file qlocationutils.cpp.

References QDate::addYears(), date, QGeoPositionInfo::Direction, QString::fromLatin1(), QByteArray::fromRawData(), QLocationUtils::getNmeaLatLong(), QLocationUtils::getNmeaTime(), QGeoPositionInfo::GroundSpeed, info, QGeoCoordinate::InvalidCoordinate, QDate::isValid(), QGeoPositionInfo::MagneticVariation, QStringLiteral, time, and QTimeZone::UTC.

Referenced by QLocationUtils::getPosInfoFromNmea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qlocationutils_readVtg()

static void qlocationutils_readVtg ( QByteArrayView bv,
QGeoPositionInfo * info,
bool * hasFix )
static

Definition at line 192 of file qlocationutils.cpp.

References QGeoPositionInfo::Direction, QByteArray::fromRawData(), QGeoPositionInfo::GroundSpeed, and info.

Referenced by QLocationUtils::getPosInfoFromNmea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qlocationutils_readZda()

static void qlocationutils_readZda ( QByteArrayView bv,
QGeoPositionInfo * info,
bool * hasFix )
static

Definition at line 213 of file qlocationutils.cpp.

References date, QByteArray::fromRawData(), QLocationUtils::getNmeaTime(), info, QDate::setDate(), time, and QTimeZone::UTC.

Referenced by QLocationUtils::getPosInfoFromNmea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: