-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
base: main
Are you sure you want to change the base?
Conversation
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)
@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 |
pos_sp_triplet->previous = pos_sp_triplet->current; | ||
} | ||
|
||
pos_sp_triplet->previous = pos_sp_triplet->current; |
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.
I think this would need to consider other cases within handleLanding() that manipulate pos_sp_triplet->previous?
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.
That may be true, but if so then mission.cpp
suffers the same concern. Since mission.cpp
is much more thoroughly flight tested I've gone with duplicating its approach in d3214f9 which at least accounts for the case that the wp doesn't get updated
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 |
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