Update RTL 's home postion for a moving base rtl

Hello,

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