Adaptive diving