A method of measuring a location of an object by using an ultrasonic distance sensor, the ultrasonic distance sensor comprising a signal generator, a gating switch, a transmitter, a receiver, and a signal processor, the method comprising:
- generating, by using the signal generator, a continuous ultrasonic signal array that is frequency modulated;
- performing, by using the gating switch, time gating to allow part of ultrasonic signals in the continuous ultrasonic signal array to pass through the gating switch;
- emitting, by using the transmitter, ultrasonic signals, which are allowed to pass through the gating switch, toward an object;
- receiving, by using the receiver, an echo signal reflected from the object;
- and
- measuring, by using the signal processor, a location of the object by using the echo signal.