Skip to content

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Oct 14, 2025

Solved Problem

image

Because of the message I had added in the end here:
#25583 (comment)

Solution

Only enter the switch to MAVLink v2 case with the message if it was previously v1. Entering all the time wasn't expensive before we added the message and I kept the original design choice. But of course it makes sense to only switch to v2 (and output a message) if it was v1 before.

image

So now the message only appears once if MAVLink version was configured to v1 and QGC sending v2 is connected.

Changelog Entry

mavlink_receiver: fix "Upgrade to MAVLink v2 ..." message spamming bug

Test coverage

See screenshots, I ran into this using simulation (make px4_sitl sihsim_quadx) and also verified the change to fix the problem but still switch when expected in the same environment.

… 1 before

to avoid the message that comes with it being spammed.
@MaEtUgR MaEtUgR requested a review from dakejahl October 14, 2025 15:44
@MaEtUgR MaEtUgR self-assigned this Oct 14, 2025
@MaEtUgR MaEtUgR merged commit 7706aae into main Oct 14, 2025
70 checks passed
@MaEtUgR MaEtUgR deleted the maetugr/fix-mavlink-version-message-spam branch October 14, 2025 16:38
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