-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
RTL: change when to set a heading setpoint, generally leave it up to executer #22731
Conversation
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.
Nice. Thanks for this generally nice improvement!
The only question I have is about this DestinationPosition dest
which contains a yaw. As I read it this was supposed to contain the actual heading setpoint and I would have probably gone back to this. But if we have a separate heading_sp
then I'd suggest only having one way. Or make it very clear when to use which.
…the executer -remove RTL_HDG_MD -only set heading setpoint in Navigator::RTL once above landing point, or when RTL is triggered close to it -never set a heading during RTL if weather vane is enabled Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
f6945d7
to
4f16ade
Compare
@sfuhrer I rebased and added a commit which I'd presume does the same without the duplication in the interface. Did I overlook something? |
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
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.
Much clearer 👍
Co-authored-by: Matthias Grob <maetugr@gmail.com>
Solved Problem
VTOLs yawing to the home position heading when descending in hover during RTL instead of weather-vaning.
Solution
Continue with what was started in #22532:
RTL_HDG_MD
(necessity of it hasn't been proven and it interferes with the here proposed solution)Navigator::RTL
once above landing point, or when RTL is triggered close to itChangelog Entry
For release notes:
Test coverage
SITL tested.
Context
This is how a normal RTL with a MC looks like (the behavior doesn't change with this PR):
AMC_RTL_new_behavior.mp4