Title: An adaptive autopilot for ships