Skip to content
Permalink
Browse files

added update interval of 1000ms to limit the ammount of positions send

  • Loading branch information
mbernasocchi committed Jun 22, 2012
1 parent 3599700 commit 292b39c0192b2da8052d346a9b4a5ccbe3140b7e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/gps/qgsqtlocationconnection.cpp
@@ -83,6 +83,7 @@ void QgsQtLocationConnection::parseData()

//TODO implement dop maybe by getting a
//http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
//http://doc.qt.nokia.com/qtmobility-1.1/qnmeapositioninfosource.html
//into QtLocation and subclass QgsNMEAConnection directly?
mLastGPSInformation.pdop; //< Dilution of precision
mLastGPSInformation.hdop; //< Horizontal dilution of precision
@@ -157,7 +158,7 @@ void QgsQtLocationConnection::startGPS()
if ( locationDataSource )
{
locationDataSource->setPreferredPositioningMethods( QGeoPositionInfoSource::SatellitePositioningMethods ); //QGeoPositionInfoSource::AllPositioningMethods
// locationDataSource->setUpdateInterval(2000);
// locationDataSource->setUpdateInterval(1000);
// Whenever the location data source signals that the current
// position is updated, the positionUpdated function is called.
QObject::connect( locationDataSource,

0 comments on commit 292b39c

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