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

core: fix incoming messages by sysid #2192

Merged
merged 2 commits into from
Dec 16, 2023
Merged

core: fix incoming messages by sysid #2192

merged 2 commits into from
Dec 16, 2023

Conversation

julianoes
Copy link
Collaborator

This fixes a recent regression after a refactoring where messages from different systems are no longer filtered according to the source system ID and instead are distributed to all systems.

Fixes #2191.

This fixes a recent regression after a refactoring where messages from
different systems are no longer filtered according to the source system
ID and instead are distributed to all systems.

Signed-off-by: Julian Oes <[email protected]>
Previously, we tried to use one message handler in MavsdkImpl for
everything. However, this didn't work because command handlers would
register for messages on construction when (for the dummy system 0)
which was then wrong, once an actual system is discovered.

This goes back to having a 0/dummy system by default. Maybe that's
wrong, but anyway, moving the message handlers back and doing the system
ID check outside in MavsdkImpl, fixes this problem.

Signed-off-by: Julian Oes <[email protected]>
@julianoes julianoes merged commit e36b7bd into main Dec 16, 2023
26 checks passed
@julianoes julianoes deleted the pr-fix-sysid-filter branch December 16, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When multiple vehicles are connected, all systems get data from all vehicles, regardless of sysid.
2 participants