Skip to content

Commit

Permalink
Merge pull request #9574 from RomanLut/submit-gps-fix-estimation-rein…
Browse files Browse the repository at this point in the history
…it-gps
  • Loading branch information
MrD-RC authored Nov 30, 2024
2 parents 1e43344 + be33ed1 commit b25c1b7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/io/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,13 @@ void gpsProcessNewSolutionData(bool timeout)
// Update time
gpsUpdateTime();

// Update timeout
gpsSetProtocolTimeout(gpsState.baseTimeoutMs);
if (!timeout) {
// Update timeout
gpsSetProtocolTimeout(gpsState.baseTimeoutMs);

// Update statistics
gpsStats.lastMessageDt = gpsState.lastMessageMs - gpsState.lastLastMessageMs;
// Update statistics
gpsStats.lastMessageDt = gpsState.lastMessageMs - gpsState.lastLastMessageMs;
}
gpsSol.flags.hasNewData = true;

// Toggle heartbeat
Expand Down

0 comments on commit b25c1b7

Please sign in to comment.