Skip to content

Conversation

dronesalot
Copy link
Contributor

@dronesalot dronesalot commented Nov 17, 2024

Solved Problem

When using NMEA GPS format, the GPS updates rate was always shown as 0. This was due to the _num_bytes_read field not being updated when the serial messages were read/parsed.

Fixes #23903

Solution

  • Added update for the received stat variable

Changelog Entry

For release notes:

Feature/Bugfix PR-23957 fixed NMEA stats not being reported

@dronesalot
Copy link
Contributor Author

Try as I might, I just can't see to get this pull request to add the missing line in this file. Maybe someone can give advice on what I might be doing wrong just to fix the style.

style fix
dakejahl
dakejahl previously approved these changes Nov 17, 2024
@dakejahl
Copy link
Contributor

run make format

@dronesalot
Copy link
Contributor Author

run make format

This was done, after the fact, but I couldn't figure out how to update the PR with the updated patch. Ultimately I used the github UI to hand-edit the formatting issue. Not my first time writing code, but I haven't really used github before.

@dakejahl dakejahl merged commit b955588 into PX4:main Nov 18, 2024
32 of 37 checks passed
@dronesalot dronesalot deleted the GPS-NMEA-fixes branch November 18, 2024 18:39
JoelJ18 pushed a commit to microstrain-robotics/PX4-Autopilot that referenced this pull request Jan 27, 2025
PX4#23957)

* bugfix: NMEA GPS update rate was 0 since num_bytes_read was not being updated

* Update gps.cpp

style fix

* make format

---------

Co-authored-by: Jacob Dahl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] NMEA Protocol doesn't keep stats

2 participants