Skip to content

Commit

Permalink
added update interval of 1000ms to limit the ammount of positions send
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi committed Jun 22, 2012
1 parent 3599700 commit 292b39c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/gps/qgsqtlocationconnection.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 292b39c

Please sign in to comment.