added digital sonar code