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

Mavutil: fix wrong sysid_state update from sysid mismatch #960

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

khancyr
Copy link
Contributor

@khancyr khancyr commented Jul 26, 2024

On a link with multiple mavlink device, we store the state of all device into the sysid holding the port which is tottally wrong.

The easiest way to see this bug in action is to run two SITL instance connect via mavlink. Then on either mavproxy instance, use "alllinks mode guided" the SITL instance directly connect to mavproxy will update its mode fine, the other will change to another mode
image

GDB screen from mavproxy on the call of mavutil post_message() function

image

After fix :
image

@peterbarker peterbarker merged commit e192ad8 into ArduPilot:master Jul 26, 2024
12 checks passed
@peterbarker
Copy link
Contributor

Wow., Whoops. Thanks @khancyr !

@khancyr khancyr deleted the systate-issue branch July 26, 2024 23:32
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