Guidance and control of an autonomous underwater vehicle