Ran into an unexpected behavior last week while executing a mission. I planned a simple mission…
- Takeoff (w/ lat/lon A)
- Waypoint (w/ lat/lon B)
- Land (w/ lat/lon C)
It executed #1, then #2 and then began #3 as expected… as my vehicle was descending in it’s LAND procedure, at around 10m from the ground, the battery fell below it’s failsafe limit and it switched into RTL… which then took the vehicle up to its RTL altitude, moved to it’s home location and landed. No crash (which is ALWAYS good), but I would have expected it to just complete its LAND action since that was the quickest most direct path to get the vehicle to the ground safely. I guess I thought there would be some sort of condition in the code to check if the vehicle was already in a LAND mode (w/ and alt of zero) prior to executing RTL? Is there a flag or bit that I can set to enable this sort of behavior?