Modified the sample and min/max range for sonar