Because ultrasonic distance measurement system of temperature compensation is single and do not achieve high precision ultrasonic ranging in bad environment,this paper designed two kinds of standard baffle and used this method to achieve high precision ultrasonic distance measurement.It measured the propagation time of unit distance and the time of measured distance,accurate distance can be calculated according to a two time ratio.The experimental results show that the ranging system can realize high precision ranging in harsh environment.