Speed and heading control-based collision avoidance for a ship towing system