Variable-depth sonar