Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qlocationutils.cpp File Reference
#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 QByteArrayView::data(), QByteArray::fromRawData(), QLocationUtils::getNmeaLatLong(), QLocationUtils::getNmeaTime(), QGeoPositionInfo::HorizontalAccuracy, info, QGeoCoordinate::InvalidCoordinate, QList< T >::isEmpty(), QByteArrayView::size(), QList< T >::size(), QByteArray::split(), 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 QByteArrayView::data(), QByteArray::fromRawData(), QLocationUtils::getNmeaLatLong(), QLocationUtils::getNmeaTime(), info, QGeoCoordinate::InvalidCoordinate, QList< T >::isEmpty(), QByteArrayView::size(), QList< T >::size(), QByteArray::split(), 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 QByteArrayView::data(), QByteArray::fromRawData(), QGeoPositionInfo::HorizontalAccuracy, info, QList< T >::isEmpty(), QByteArrayView::size(), QList< T >::size(), QByteArray::split(), 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 QList< T >::append(), QList< T >::at(), QList< T >::clear(), QByteArrayView::data(), QByteArray::fromRawData(), i, QByteArray::isEmpty(), ok, qMin(), QByteArrayView::size(), QList< T >::size(), QByteArray::split(), and QByteArray::toInt().

+ 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(), QByteArrayView::data(), date, QGeoPositionInfo::Direction, QString::fromLatin1(), QByteArray::fromRawData(), QLocationUtils::getNmeaLatLong(), QLocationUtils::getNmeaTime(), QGeoPositionInfo::GroundSpeed, info, QGeoCoordinate::InvalidCoordinate, QList< T >::isEmpty(), QDate::isValid(), QGeoPositionInfo::MagneticVariation, QStringLiteral, QByteArrayView::size(), QList< T >::size(), QByteArray::split(), 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 QByteArrayView::data(), QGeoPositionInfo::Direction, QByteArray::fromRawData(), QGeoPositionInfo::GroundSpeed, info, QList< T >::isEmpty(), QByteArrayView::size(), QList< T >::size(), and QByteArray::split().

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 QByteArrayView::data(), date, QByteArray::fromRawData(), QLocationUtils::getNmeaTime(), info, QList< T >::isEmpty(), QDate::setDate(), QByteArrayView::size(), QList< T >::size(), QByteArray::split(), time, and QTimeZone::UTC.

Referenced by QLocationUtils::getPosInfoFromNmea().

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