How to store the vehicle position on the SD card to return on the same way

hello, I need to store the vehicle position on the sd card, and when I switch to my custom flight mode, the vehicle return to me on the same way

It is called Smart RTL. It will do what you want with the exception of skipping loops you did. It flies where it thinks it is safe to by virtue of having previously flown there.

2 Likes