Ultrasonic range system on pan-tilt mechanisms