fix(navigator): keep a VTOL in multicopter mode through mission RTL [1.18] - #28538
Merged
Conversation
…X4#28399) * fix(navigator): preserve VTOL mode in direct mission RTL Remove the unconditional multicopter-to-fixed-wing transition from direct mission-land RTL so the return uses the VTOL mode active when RTL starts. This allows an MC-mode vehicle to proceed through the mission landing sequence instead of becoming stuck after an unnecessary forward transition. Add module-level and MAVSDK SITL regressions covering an airborne multicopter-mode VTOL with a planned mission landing. Refs PX4#27817 Refs PX4#24323 Assisted-by: Codex:gpt-5 Signed-off-by: Saibernard Yogendran <bernie97@seas.upenn.edu> * fix(navigator): drop the fixed wing transition from the fast RTL modes too The fast and the reverse mission RTL carried the same request for a transition to fixed wing as the direct mission land RTL. The VTOL attitude controller rejects that command during RTL, so a VTOL in multicopter mode waited on it forever instead of flying the mission. Remove both. A VTOL in multicopter mode now flies the mission RTL as a multicopter, the same as direct RTL does. Reported in PX4#24323. Two unit tests pin the active item to a waypoint for a VTOL in multicopter mode, and two MAVSDK cases fly it on the standard VTOL in SIH: the mission landing and the reverse mission both stay in multicopter mode to touchdown, within 5 m of the land item and of home. Assisted-by: Claude:claude-fable-5 Signed-off-by: Saibernard Yogendran <bernie97@seas.upenn.edu> --------- Signed-off-by: Saibernard Yogendran <bernie97@seas.upenn.edu> (cherry picked from commit 290f56d)
Contributor
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: -176 byte (-0.01 %)]px4_fmu-v6x [Total VM Diff: -184 byte (-0.01 %)]Updated: 2026-09-04T02:52:50 |
mbjd
approved these changes
Sep 4, 2026
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.
Backport of #28399 to
release/1.18, adapted for the branch.Mission RTL forced a VTOL flying as a multicopter into fixed-wing mode at return altitude, and the vehicle could stay armed instead of starting the landing sequence. The navigator change is the same as on main. The tests are adapted to the test code on this branch.