Modeling and Control of a Variable-Length AUV