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 check alt_max before using #8272
Conversation
src/modules/navigator/rtl.cpp
Outdated
|
||
static constexpr float DELAY_SIGMA = 0.01f; | ||
using math::max; |
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.
probably you can't take away #include <mathlib/mathlib.h>
and use the function defined in it...
or is it still in the include chain?
d60edd7
to
a9ed78e
Compare
In a quick test the climb issue and multiple RTL in the same flight strangeness seem to be resolved, but there are many edge cases - https://logs.px4.io/plot_app?log=49ec4967-a06d-4115-8470-02287cd2c01e |
it looks ok, but the get_rtl_function is not really needed anymore. The point is that the altitude limit with -1 was introduced, but rtl pr was never merged, which resulted in a conflict. |
a9ed78e
to
9b37d1e
Compare
Updated to remove get_rtl_altitude(). |
9b37d1e
to
36f4717
Compare
Partial fix for #8257.