Reverse on a skid steer rover with lua script

Hello everyone, how are you doing?

I’m starting a project with a skid steer rover using a lua script for the navigation. My goal is to move the rover forward in a straight line until i reach a certain destination, and then, return to the starting point in reverse. Is it possible to do this in guided mode using something similar to the local NED commands?

Thanks in advance!

FYI: I actually tried doing the reverse navigation using the local NED command with the negative values, but the rover makes a turn before returning to the starting point.