Skip to content
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: cone: never climb more than to RTL_RETURN_ALT #23558

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Aug 16, 2024

This is to prevent that a large NAV_ACC_RAD leads to very high return altitudes.

At some point we should reconsider the cone logic, seems unnecessary complicated.

Changelog Entry

For release notes:

Bugfix: RTL: cone: never climb more than to RTL_RETURN_ALT

This is to prevent that a large NAV_ACC_RAD leads to very high return altitudes.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer sfuhrer requested a review from bresch August 16, 2024 14:54
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should maybe review the logic

@ryanjAA
Copy link
Contributor

ryanjAA commented Aug 18, 2024

As a frequent RTL user, Im a big fan of this and the @bresch comment that it's overly complicated.

@sfuhrer sfuhrer merged commit 435e966 into main Aug 19, 2024
95 of 96 checks passed
@sfuhrer sfuhrer deleted the pr-rtl-cone-limit-max-alt-main branch August 19, 2024 05:51
@hamishwillee
Copy link
Contributor

As a frequent RTL user, Im a big fan of this and the @bresch comment that it's overly complicated.

@ryanjAA Just consider yourself lucky that you didn't have to document it :-( https://docs.px4.io/main/en/flight_modes/return.html#minimum-return-altitude

@ryanjAA
Copy link
Contributor

ryanjAA commented Aug 21, 2024

@hamishwillee haha so true. You probably understand it better than anyone at this point. I always look at that page and just sigh everytime I have to think about changing the default or need to test it. Writing it would have been way more brutal… 😬

vertiq-jordan pushed a commit to iq-motion-control/PX4-Autopilot that referenced this pull request Aug 21, 2024
This is to prevent that a large NAV_ACC_RAD leads to very high return altitudes.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@hamishwillee
Copy link
Contributor

The simple version of the theory is that if there is a more-or-less clear area around your landing target and your return is triggered within this area, then there is no need to ascent to the default return height in order to get safely to the landing point. The cone defines the safe height over the areas around the landing point. If you are above the cone you're safe, so you just fly back at your current height. If you're below the cone you're too low, so you ascend to the intersection with the cone and then return.

It kind of makes sense but I doubt anyone uses it because they wouldn't think about it.
I would use it if there was a 3d visualization tool for setting it that you could apply at the field and see the obstacles.

I recall a discussion with RomanB about an alternative, defining segments around a VTOL landing point that are know to offer a clear path. Again, that is more likely to be used because AMC has a visualisation tool for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants