Open anaam-wingxpand opened 1 month ago
This is similar to https://github.com/PX4/PX4-Autopilot/issues/23340
In the v1.15.0-beta2 release, the SITL plane returns to the correct home position and actually lands with RTL_TYPE = 2.
However, it still completely ignores the Return to Launch settings. It always lands, and does not change altitude or loiter.
We won't patch 1.14 anymore, and it's fixed in v1.15.
ignores the Return to Launch settings.
Which settings? RTL_LAND_DELAY?
@sfuhrer yes, it ignores RTL_LAND_DELAY and RTL_DESCEND_ALT.
@sfuhrer yes, it ignores RTL_LAND_DELAY and RTL_DESCEND_ALT.
This is actually expected if the RTL destination is a mission landing. The RTL_LAND_DELAY and RTL_DESCEND_ALT parameters are only used for the RTL to Home (without mission landing). What's the use case for you, why do you want to configure a delay and descend?
@sfuhrer yes, it ignores RTL_LAND_DELAY and RTL_DESCEND_ALT.
This is actually expected if the RTL destination is a mission landing. The RTL_LAND_DELAY and RTL_DESCEND_ALT parameters are only used for the RTL to Home (without mission landing). What's the use case for you, why do you want to configure a delay and descend?
I'm saying that when RTL_TYPE = 2 and it RTLs to Home (without mission landing), it ignores RTL_LAND_DELAY and RTL_DESCEND_ALT. It immediately lands at home. This is unexpected behavior, because as you said, it should be using the delay and descend parameters in this case.
Ah okay all clear now, and yes, I can reproduce. RTL_LAND_DELAY and RTL_DESCEND_ALT are not implemented in the reverse mission RTL, though I get that you would want them (e.g. for fixed-wing you do not want to land but keep it loitering around Home). @KonradRudin we'd need to add some more logic around here I guess. As it for the reverse mission should do the same logic as for the RTL_direct I wonder if we can use a shared library for both.
Describe the bug
If RTL_TYPE = 2 and there is no mission landing waypoint, the SITL plane returns to a random point near Takeoff and tries to land but fails. This ignores the true Home position, and ignores the Return to Launch settings that say to loiter. Furthermore, it fails to land, continuously flying at 0 m altitude.
To Reproduce
make px4_sitl gz_rc_cessna
Expected behavior
The SITL plane should either land successfully or wait (depending on the Return to Launch settings) at Home. In my case, Home was the Launch waypoint, where the plane had spawned at. This is the home that the plane would return to with other RTL_TYPEs.
Screenshot / Media
Note the incorrect home point, and the plane failing to land and continuously flying.
Flight Log
https://review.px4.io/plot_app?log=911929cb-52db-444f-93e6-3c969b94ba5d
Software Version
v1.14
Flight controller
N/A (SITL)
Vehicle type
None
How are the different components wired up (including port information)
No response
Additional context
No response