RTL with compass only arduplane

I have a twin plane with gps and fpv camera.
My fight controller is MATEKSYS H743-WING
I want the add an extra RTL mode that when the vehicle losses both GPS and Control (radio link) it flies back home with the Compass (I know it’s not accurate but it’s better then nothing).

I tried but didn’t find a way to do it.
I saw there was an option for “dead reckoning” RTL, but from what I understand it’s only with inertial measurements.

Also another thing is if I only lose GPS I don’t want it to start the RTL. Only without GPS and Control.
Does anyone have an idea?
Thank you very much.