Help with autonomous boat senior project

Hi everyone I’m currently in my senior year of college and have an on going senior project to create an autonomous recovery vehicle. Im in charge of the autonomy system and wanted to incorporate a currents map into our system. The idea is to upload a portion of a currents map of the area of operation. the vehicle will know our location and look at the currents as vectors and the boat will find the shortest distance to get to a current headed towards us. Once the boat is in that current it will turn to the home direction and ride the current.

Any ideas on how to do this using mission planner ? Im guessing I would have to develop my own lua script ?