-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Fix position setpoint update logic in Mission RTL #25600
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
Conversation
|
@sfuhrer Saw you reviewed the PR which likely introduced this behavior, if you want to see this proposed fix. @KonradRudin interested in your feedback too |
|
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/px4-dev-call-sep-24-2025-team-sync-and-community-q-a/47494/1 |
|
New log for change to match |
|
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/px4-dev-call-oct-15-2025-team-sync-and-community-q-a/47650/1 |
|
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/px4-dev-call-oct-22-2025-team-sync-and-community-q-a/47712/2 |
|
@msberk we discussed this on the dev call last week. I wasn't able to reproduce in sim. If you can provide a plan file and steps to reproduce so that I can verify I will be happy to merge the bug fix. |
|
@sfuhrer done @dakejahl I was just getting this back up and running to make a plan when I saw Silvan's message - any need still for this? Plan which reproduces in following steps on
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This aligns setActiveMissionItems() in rtl_direct_mission_land.cpp and in rtl_mission_fast.cpp with what was already in mission.cpp. It probably was on oversight when the RTL restructure happened. The FW landing requires the previous waypoint to be correctly set, that's why it was only noticeable there.
I've tested with RTL_TYPE 1 and 2 for FW, VTOL and MC, all looked correct now that fix.
Currently, when proceeding to the landing point the previous setpoint is not updated, which results in an unexpected and off course landing pattern in fixed wing. (see PX4#25436)
Signed-off-by: Silvan <[email protected]>
a291e00 to
02e1f3c
Compare
|
@msberk can you port it to release/1.16 as well? |
…t correctly (#25600) This aligns setActiveMissionItems() in rtl_direct_mission_land.cpp and in rtl_mission_fast.cpp with what was already in mission.cpp. It probably was on oversight when the RTL restructure happened. The FW landing requires the previous waypoint to be correctly set, that's why it was only noticeable there. * Fix position setpoint update logic in Mission RTL Currently, when proceeding to the landing point the previous setpoint is not updated, which results in an unexpected and off course landing pattern in fixed wing. (see #25436) * Change to work more like `mission.cpp` * Fix rtl_direct_misssion_land formatting for style guide * rtl_mission_fast: fix FW landing by setting previous wp in landing Signed-off-by: Silvan <[email protected]> --------- Signed-off-by: Silvan <[email protected]> Co-authored-by: Silvan <[email protected]>
Solved Problem
Currently, when proceeding to the landing point the previous setpoint is not updated, which results in an unexpected and off course landing pattern in fixed wing.
Fixes #25436
Solution
Move position setpoint logic outside of conditional so it is applied even when it is a landing waypoint
Changelog Entry
For release notes:
Test coverage
Context
#25436