Update RTL 's home postion for a moving base rtl


I’m flying a copter from a moving boat, and I want the copter to return back to the last boat’s location after losing a the signal and not to the launch point, the idea is to override RTL’s launch coordinates with coordinates coming from the boat, is there an already implemented solution for it? or do i need to apply changes to code to override the coordinates?

PS: i’m planning on sending Boat’s coordinates via telemetry.

Thank you in advance

i have the similar need for surveiance drones in ships. some news about this function? there is an option in mavproxy that allows moving home, but i dont know how works