diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2013-09-04 17:28:27 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-11 00:08:30 +0100 |
commit | 2e75e8c18617250c864d2305a1ad14391e0cf4d7 (patch) | |
tree | 0e7c946fa0e9086969adcdd9fb568f90b6dc7487 /tests/auto/utils/qlocationtestutils.cpp | |
parent | 7b07235bdc4799f1a87b1989fb84cdc3333892c7 (diff) | |
download | qtlocation-2e75e8c18617250c864d2305a1ad14391e0cf4d7.tar.gz |
Support position accuracy in QNmeaPositionInfoSource.
Extract the HDOP and VDOP from the NMEA stream and calculate the twice
the distance root mean square (2DRMS) error based on the user provided
User equivalent range error value.
[ChangeLog][QtPositioning][QNmeaPositionInfoSource] Added support for
reporting position accuracy.
Change-Id: I59e5f8c32070fa96ae4d0bd02a18f38663920e05
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/utils/qlocationtestutils.cpp')
-rw-r--r-- | tests/auto/utils/qlocationtestutils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/utils/qlocationtestutils.cpp b/tests/auto/utils/qlocationtestutils.cpp index 97e4f8d9..d5eed344 100644 --- a/tests/auto/utils/qlocationtestutils.cpp +++ b/tests/auto/utils/qlocationtestutils.cpp @@ -93,3 +93,8 @@ QString QLocationTestUtils::createZdaSentence(const QDateTime &dt) .arg(time).arg(dt.toString("dd")).arg(dt.toString("MM")).arg(dt.toString("yyyy")); return addNmeaChecksumAndBreaks(nmea); } + +QString QLocationTestUtils::createGsaSentence() +{ + return addNmeaChecksumAndBreaks(QStringLiteral("$GPGSA,A,3,,,,,,,,,,,,,3.0,3.5,4.0*")); +} |