Skip to content

Commit 292b39c

Browse files
committedJun 22, 2012
added update interval of 1000ms to limit the ammount of positions send
1 parent 3599700 commit 292b39c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/gps/qgsqtlocationconnection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void QgsQtLocationConnection::parseData()
8383

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

0 commit comments

Comments
 (0)
Please sign in to comment.