Skip to content

Commit

Permalink
When resuming a track, skip a maximum distance constraint since we're…
Browse files Browse the repository at this point in the history
… not unlikely to resume from a far away distance
  • Loading branch information
nirvn committed Feb 1, 2025
1 parent 65fb03a commit 89de976
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ void Tracker::start( const GnssPositionInformation &positionInformation, const Q
//set the start time of first position
setStartPositionTimestamp( positionInformation.utcDateTime().isValid() ? positionInformation.utcDateTime() : QDateTime::currentDateTime() );

//ignore maximum distance when starting/restarting a track
mMaximumDistanceFailuresCount = MAXIMUM_DISTANCE_FAILURES + 1;

//track first position
processPositionInformation( positionInformation, projectedPosition );
}
Expand Down

0 comments on commit 89de976

Please sign in to comment.