Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi-instance publishing of satellite_info topic #23567

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

ThomasRigi
Copy link
Member

@ThomasRigi ThomasRigi commented Aug 19, 2024

Solved Problem

When debugging some GNSS issues I found that only the main instance of satellite_info topic was logged. This is annoying when you need to find out why one GNSS is degraded compared to the other one.

Solution

  • Use _is_gps_main_advertised.load() the same way as sensor_gps is published

Changelog Entry

For release notes:

Feature/Bugfix Fix multi-instance publishing of satellite_info topic

Test coverage

  1. Reference log with only one logged instance of satellite_info : https://logs.px4.io/plot_app?log=5ce58347-adf4-4905-88bd-aafe2a36341b

There are two gps instances as confirmed by sensor_gps, but only one satellite_info
image

  1. Log with my fix: https://logs.px4.io/plot_app?log=e6eeb080-2be6-40e5-b2f8-b32a0e263ee9
    Now there are two instances of satellite_info that are logged correctly (satellite_info.00 and satellite_info.01), but also still a "zombie" satellite_info that contains one datapoint from what I can see...
    image

@ThomasRigi ThomasRigi self-assigned this Aug 19, 2024
@ThomasRigi
Copy link
Member Author

Hi @dagar, do you know how to get rid of the "zombie" ? I guess it's some initialisation issue somewhere, but I thought I did the same as for sensor_gps where there is no zombie.

@dagar
Copy link
Member

dagar commented Aug 19, 2024

Hi @dagar, do you know how to get rid of the "zombie" ? I guess it's some initialisation issue somewhere, but I thought I did the same as for sensor_gps where there is no zombie.

No, but I've occasionally seen that other places as well. It's possible it might be a plotjuggler issue technically, but either way it would be nice to eliminate.

@dagar dagar merged commit f2f4488 into PX4:main Aug 19, 2024
92 checks passed
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.

2 participants