fix(mavlink_command): allow QGC 5 takeoff command (again)#27899
Open
MaEtUgR wants to merge 3 commits into
Open
fix(mavlink_command): allow QGC 5 takeoff command (again)#27899MaEtUgR wants to merge 3 commits into
MaEtUgR wants to merge 3 commits into
Conversation
Contributor
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: -192 byte (-0.01 %)]px4_fmu-v6x [Total VM Diff: -200 byte (-0.01 %)]Updated: 2026-07-14T13:16:50 |
dfe3c12 to
9387c68
Compare
This was referenced Jul 14, 2026
9387c68 to
676aa7f
Compare
Contributor
|
I noticed this last night as well, thanks! |
Contributor
|
So I agree that we need to be compatible with QGC, but also, we need to fix in QGC when it sends something wrong, right? And then add a note explaining it. Why would QGC send -1 for pitch? |
23 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solved Problem
make px4_sitl sihsim_quadx) and QGC 5.0.8 stableBisection shows #27541 rejects even basic, commonly used commands like takeoff sent by the ground station.
Solution
Claude output
Confirmed compatibility bugs (fixed)
NAV_TAKEOFF(22)param1=-1unconditionally on every guided takeoff, for all vehicle typesNAV_WAYPOINT(16)NAV_VTOL_TAKEOFF(84)NAV_VTOL_LAND(85)DO_CHANGE_SPEED(178)DO_LAND_START(189)DO_SET_ROI_WPNEXT_OFFSET(196)navigator_main.cppreads them as pitch/roll/yaw offset — this was a bug in the table independent of QGCCONDITION_GATE(4501)DO_LAND_STARTandNAV_WAYPOINTare the two I'd flag as most impactful — Landing Pattern is a standard FW/VTOL workflow, so that one alone must have broken most fixed-wing mission uploads from QGC.Checked, no issue found
NAV_LOITER_UNLIM,NAV_LOITER_TIME,NAV_RETURN_TO_LAUNCH,NAV_LAND,NAV_LOITER_TO_ALT,NAV_ROI(dead/unused by QGC),NAV_DELAY,CONDITION_DELAY/CONDITION_DISTANCE(not offered by QGC for PX4 vehicles at all),DO_SET_MODE(sent as legacySET_MODE, not validated by this table),DO_JUMP,DO_SET_HOME,DO_SET_ROI_LOCATION,DO_SET_ROI_NONE,DO_SET_ROI(unreachable for PX4), all camera/gripper/autotune/video/image commands,DO_VTOL_TRANSITION, all 5 geofence commands,NAV_RALLY_POINT,DO_WINCH(QGC has no UI for it at all).Changelog Entry
Test coverage
It fixes the takeoff at least 👀 Ideally #27541 would have been tested once before merging.
Context
Last time #26408 rejected basic commands sent from QGC 5, had to be reverted in #26626 to make PX4 usable again.