Combine NAV_RTH_MAX_ALT and NAV_RTH_AT_LEAST_ALT modes
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.
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 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.
This should work, but I need to test it. https://github.com/MrD-RC/inav/tree/let-max-rth-mode-consider-altitude
@MrD-RC I'm not sure but isn't the home position offset already taken into account in the RTH altitude itself?
@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.
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.