It's weird that this isn't already the case. We do it with airplanes, and surely that's much harder simply by virtue of needing to consider three dimensions. I can't imagine it would be difficult to automate steering a ship across the open ocean. You could build something basic and just make the captain handle all the iffy stuff.