inav icon indicating copy to clipboard operation
inav copied to clipboard

Combine NAV_RTH_MAX_ALT and NAV_RTH_AT_LEAST_ALT modes

Open Pavel-DV opened this issue 5 years ago • 6 comments

Current Behavior

The "nav_rth_alt_mode = MAX" mode is ignoring nav_rth_altitude value.

Desired Behavior

There should be a mode that takes the maximum flight altitude, and compares it to the maximum predefined altitude, and uses the maximum one.

Suggested Solution

Add a new mode that is similar to the above mode, but does not ignore the nav_rth_altitude value. For example, as a combination of two modes: NAV_RTH_MAX_ALT and NAV_RTH_AT_LEAST_ALT, when the highest possible altitude is used, for the greatest flight safety.

Who does this impact? Who is this for?

For those who fly at low altitude and sometimes fly around obstacles from the side, as well as in some cases fly around higher obstacles from above.

Pavel-DV avatar Jul 30 '21 00:07 Pavel-DV

Easier to just change MAX so it respects the nav_rth_altitude value rather than have another RTH mode. If you want MAX to work down to takeoff altitude, just set nav_rth_altitude to 0.

breadoven avatar Jul 30 '21 08:07 breadoven

@breadoven I agree. This option would suit me. I would like the developers to hear us and make such an improvement. I think this is easy enough to implement.

Pavel-DV avatar Jul 31 '21 03:07 Pavel-DV

This should work, but I need to test it. https://github.com/MrD-RC/inav/tree/let-max-rth-mode-consider-altitude

MrD-RC avatar Jul 31 '21 20:07 MrD-RC

@MrD-RC I'm not sure but isn't the home position offset already taken into account in the RTH altitude itself?

avsaase avatar Jul 31 '21 21:07 avsaase

@avsaase it doesn't appear to be, based on the other RTH methods. If you look at the other methods, AT_LEAST for example; they all take the home altitude in to consideration.

MrD-RC avatar Aug 01 '21 10:08 MrD-RC

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar Jan 09 '22 03:01 stale[bot]