mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
GPS: add signal to show that a new fix has been acquired
This way if we don't have a current enough position we can wait for a current fix to be acquired. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
82a3d2be95
commit
ca3be8f376
2 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,7 @@ void GpsLocation::newPosition(QGeoPositionInfo pos)
|
|||
QString msg("received new position %1 after delta %2 threshold %3 (now %4 last %5)");
|
||||
status(qPrintable(msg.arg(pos.coordinate().toString()).arg(delta).arg(prefs.time_threshold).arg(pos.timestamp().toString()).arg(QDateTime().fromSecsSinceEpoch(lastTime).toString())));
|
||||
waitingForPosition = false;
|
||||
acquiredPosition();
|
||||
gpsTracker gt;
|
||||
gt.when = pos.timestamp().toTime_t();
|
||||
gt.when += gettimezoneoffset(gt.when);
|
||||
|
|
|
@ -59,6 +59,7 @@ private:
|
|||
|
||||
signals:
|
||||
void haveSourceChanged();
|
||||
void acquiredPosition();
|
||||
|
||||
public slots:
|
||||
void serviceEnable(bool toggle);
|
||||
|
|
Loading…
Add table
Reference in a new issue