A method for improving the distance measurement of laser rangefinder

By dividing the measurement distance of the laser rangefinder into direct and indirect intervals, and using data screening and error correction algorithms to process high-sensitivity data, the cost and accuracy of the laser rangefinder when improving the measurement distance is solved, and the further development is achieved Accurate measurement of distance.

CN114895287BActive Publication Date: 2024-11-26ZHONGSHAN YEHUI ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210533997.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2024-11-26
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

When increasing the measurement distance, existing laser rangefinders need to increase the power and equipment cost of laser emitters, and there are too many interference signals collected under high sensitivity, resulting in insufficient measurement accuracy. The existing technology abandons some data and fails to fully utilize it. Laser sensor performance.

Method used

By dividing the measurement distance of the laser rangefinder into direct measurement intervals and indirect measurement intervals, data screening and error correction algorithms are used to process data under high sensitivity, eliminate interference signals, calculate measurement results, and achieve longer-distance measurements.

Benefits of technology

Without increasing the power of the laser transmitter and equipment cost, effectively utilize abandoned data to achieve longer-distance measurements, and the measurement distance is more accurate to meet the measurement needs of longer-distance measurements.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention discloses a method for improving the distance measurement of a laser rangefinder. The method divides the measured distance into a direct measurement interval and an indirect measurement interval according to the sensitivity of the laser sensor. For the direct measurement interval, the measurement result S is directly output. C直 For the indirect measurement interval, the data screening and error correction algorithm are used to calculate the measurement result S C间 The data used in the indirect measurement interval of the present invention is the data discarded by the laser rangefinder in the prior art. The present invention utilizes the data discarded by the laser rangefinder in the prior art through data screening and error correction algorithms. Without increasing the power of the laser transmitter and the equipment cost, it can achieve longer distance measurement and the measured distance is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a measuring instrument, in particular to a measuring method of a laser rangefinder. Background Art

[0002] The signal acquisition device of the laser rangefinder is a laser sensor. The lower the sensitivity of the laser sensor, the fewer other interference signals it will collect and the more accurate the measurement result, but the shorter the measurement distance. Conversely, the higher the sensitivity of the laser sensor, the longer the measurement distance. High sensitivity means that the laser sensor will collect more other interference signals.

[0003] In order to maintain the accuracy of the collected results, the current laser rangefinder operates in a direct measurement range that can directly measure the distance using the pulse method or the phase method. This results in a shorter measurable distance. For ultra-high sensitivity, due to excessive interference signals collected, the accuracy cannot meet the measurement error requirements. The laser rangefinder in the prior art discards this part of the data and does not fully utilize the performance of the laser sensor.

[0004] In order to meet the measurement needs at longer distances, the existing technology is to increase the power of the laser transmitter. After increasing the power of the laser transmitter, the battery capacity and circuit must also be changed to match, and the cost of the product will increase accordingly. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a method for improving the distance measurement of a laser rangefinder without increasing the power of a laser transmitter and the cost of the equipment.

[0006] The technical solution adopted by the present invention to solve its technical problem is:

[0007] A method for improving the distance measurement of a laser rangefinder. The method divides the measured distance into a direct measurement interval and an indirect measurement interval according to the sensitivity of the laser sensor. For the direct measurement interval, the measurement result S is directly output. C直 For the indirect measurement interval, the data screening and error correction algorithm are used to calculate the measurement result S C间 , calculate the measurement result S C间 The method is as follows:

[0008] Compare the single collected measurement data with the set effective measurement distance L S3 Comparison shows that the measured data falls within the effective measurement distance L S3If the measured data is within, it is considered valid and recorded as valid element X. After collecting more than two valid elements X, the valid elements X are arranged from small to large to establish a valid element array. Starting from the first valid element X1 in the valid element array, error judgment is performed on some or all valid elements, interference elements are eliminated, and real elements are retained. The error judgment method is as follows:

[0009] Compare (X i ·P1) < X i +1 < (X i P2) is not true, if true, then it is considered that the valid element X i With effective element X i +1 is a real element. If not, it is considered a smaller valid element X. i Eliminate interference elements, and so on, find at least two adjacent real elements, and then calculate the average value S of some or all real elements 均 , then the measurement result S C间 The formula is as follows:

[0010] S C间= S 均 -C;

[0011] in,

[0012] C is the error constant;

[0013] P1 is the lower limit of the error range, and P1 is a positive number less than 1;

[0014] P2 is the upper limit of the error range, and P2 is a positive number greater than 1;

[0015] X i is the i-th number in the valid element array, where i is a positive integer greater than or equal to 1.

[0016] The first implementation step of the above method is to set the sensitivity of the laser sensor to three levels from low to high, S1, S2, and S3, and the effective measurement distances corresponding to the sensitivities S1, S2, and S3 are defined as L S1 , L S2 , L S3 , calculate the measurement results as follows:

[0017] Direct measurement interval

[0018] (1) Set the sensitivity to S1, and the measured data falls within the effective measurement distance L S1 If the measurement data is within 100%, the measurement data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum continuous sampling is N S1 If the measurement data is still invalid, go to step (2).

[0019] (2) Switching sensitivity to S2, the measured data falls within the effective measurement distance L S2 If the measurement data is within 100%, the measurement data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum continuous sampling is N S2 If the measurement data is still invalid, go to step (3).

[0020] Indirect measurement interval

[0021] (3) Switching sensitivity to S3, the measured data falls within the effective measurement distance L S3 If the measured data is within , the measured data is considered valid, and the measured data collected for the i-th time is recorded as the valid element X i And record, then go to step (4), otherwise the measurement data is considered invalid, and the maximum continuous sampling is N S3 If the measurement data is still invalid after the test, the measurement ends and the output measurement result is measurement failure.

[0022] (4) Return to step (1), step (2) or step (3) and continue to collect valid elements X i , so that the effective element X i The number is at least 2, and then the valid elements X i Arrange from small to large, and create an element array {X1...X i}, starting from the first valid element X1 in the valid element array, perform error judgment on the valid elements, remove interference elements, and retain the real elements. The error judgment method is as follows:

[0023] Determine whether (X1·P1) < X2 < (X1·P2) is true. If so, the measurement ends and the measurement result S is output. C间 = (X1+X2) / 2-C. If not, check whether the maximum number of collections M has been reached. If not, continue to collect valid elements X. i , and so on. i-1 ·P1) < X i < (X i-1 P2) is true? If true, the measurement ends and the measurement result S is output C间 =(X i-1 +X i ) / 2-C, if it is not true, the measurement ends and the output measurement result is measurement failure; where M is the maximum number of valid element acquisition times set, and M is a positive integer greater than 3.

[0024] In the second implementation of the above method, steps (1), (2) and (3) are the same as those of the first implementation, and the difference lies in step (4). The first implementation method is that in step (4), two effective elements X are first collected. i , then calculate the measurement result S C间 , and set the maximum number of valid element collections M. Before the maximum number of collections M is reached, collect and calculate once until the calculation is completed. The second method to implement the step is to set the maximum number of valid element collections M in step (4), first collect M valid elements X, and then perform multiple calculations until the calculation is completed.

[0025] Step (4) of the second implementation is as follows:

[0026] (4) Return to step (1), step (2) or step (3) and continue to collect valid elements X i , so that the effective element X i The number of collections reaches the maximum number of collections M, and then the valid element X i Arrange from small to large, and create an element array {X1...X i}, starting from the first valid element X1 in the valid element array, perform error judgment on the valid elements, remove interference elements, and retain the real elements; the error judgment method is as follows:

[0027] Determine whether (X1·P1) < X2 < (X1·P2) is true. If so, the measurement ends and the measurement result S is output. C间 =(X1+X2) / 2-C, if it does not hold, then judge by analogy (X i-1 ·P1) < X i < (X i-1 P2) is true? If true, the measurement ends and the measurement result S is output C间 =(X i-1 +X i ) / 2-C, if it is not true, the measurement ends and the output measurement result is measurement failure; where M is the maximum number of valid element acquisition times set, and M is a positive integer greater than 3.

[0028] The beneficial effects of the present invention are as follows: the indirect measurement interval of the present invention is data discarded by the laser rangefinder in the prior art. The present invention utilizes the data discarded by the laser rangefinder in the prior art through data screening and error correction algorithms, and can achieve longer distance measurement without increasing the power of the laser transmitter and the equipment cost, and the measured distance is more accurate. DETAILED DESCRIPTION

[0029] A method for improving the distance measurement of a laser rangefinder. The method divides the measured distance into a direct measurement interval and an indirect measurement interval according to the sensitivity of the laser sensor. For the direct measurement interval, the measurement result S is directly output. C直 For the indirect measurement interval, the data screening and error correction algorithm are used to calculate the measurement result S C间 , the method is as follows:

[0030] Compare the single collected measurement data with the set effective measurement distance L S3 Comparison shows that the measured data falls within the effective measurement distance L S3 If the measured data is within, it is considered valid and recorded as valid element X. After collecting more than two valid elements X, the valid elements X are arranged from small to large to establish a valid element array. Starting from the first valid element X1 in the valid element array, error judgment is performed on some or all valid elements, interference elements are eliminated, and real elements are retained. The error judgment method is as follows:

[0031] Compare (X i ·P1) < X i +1 < (X i P2) is not true, if true, then it is considered that the valid element X i With effective element X i +1 is a real element. If not, it is considered a smaller valid element X. i Eliminate interference elements, and so on, find at least two adjacent real elements, and then calculate the average value S of some or all real elements 均 , then the measurement result S C间 The formula is as follows:

[0032] S C间= S 均 -C;

[0033] in,

[0034] C is the error constant;

[0035] P1 is the lower limit of the error range, and P1 is a positive number less than 1.

[0036] P2 is the upper limit of the error range, and P2 is a positive number greater than 1;

[0037] X i is the i-th number in the valid element array, where i is a positive integer greater than or equal to 1;

[0038] X1 is the first number in the valid element array.

[0039] This embodiment uses a laser rangefinder using a laser sensor named SMD packaged avalanche photodiode and model DS-LS-LCC-D500-V1 produced by Shenzhen Laser Technology Co., Ltd. as an example. The rated reverse bias voltage of the laser sensor is 100-140V. The sensitivity of the laser sensor can be changed by changing the reverse bias voltage. The reverse bias voltage used by the laser rangefinder in the prior art is 100 V and 110V. The sensitivity within this range is low and the interference signal is less. The current industry-wide common distance measurement algorithm (pulse method or phase method) can be used to obtain the measurement distance allowed by the error range. For sensitivities above 110V, due to the more interference signals, the result error obtained by the current industry-wide common distance measurement algorithm is very large. Therefore, the laser rangefinder in the prior art abandons the data collected by the sensitivity corresponding to 110-140V. The present invention really effectively utilizes the sensitivity data corresponding to 110-140V abandoned by the prior art, and increases the measured distance through data screening and error correction algorithms.

[0040] In this embodiment, the DS-LS-LCC-D500-V1 laser sensor is still used as an example to illustrate that the reverse bias voltage corresponding to the sensitivity S1 gear is set to 100V, the reverse bias voltage corresponding to the sensitivity S2 gear is set to 110V (the sensitivity S1 and sensitivity S2 intervals are the direct measurement intervals in the prior art), and the reverse bias voltage corresponding to the sensitivity S3 gear is set to 125V (sensitivity S3 is the measurement interval abandoned in the prior art); the effective measurement distance L S1 10-400 meters, effective measurement distance L S2 200-900 meters, effective measurement distance L S3 It is 600-1700 meters.

[0041] The first implementation steps of the above method are as follows:

[0042] Direct measurement interval

[0043] (1) Set the sensitivity to S1, and the measured data falls within the effective measurement distance L S1 If the distance is within (10 meters ≤ measured data ≤ 400 meters), the measured data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum number of consecutive samplings is 20 (N S1 =20), if the measured data is still invalid, go to step (2). In this step, due to the low sensitivity, this sensitivity can normally sample data within 400 meters, and the probability that the laser sensor will collect interference data is extremely low, so it is directly adopted.

[0044] (2) Switching sensitivity to S2, the measured data falls within the effective measurement distance L S2If the distance is within (200 m ≤ measured data ≤ 900 m), the measured data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum number of consecutive samplings is 20 (N S2 =20), if the measured data is still invalid, go to step (3).

[0045] In this step, due to the improvement of sensitivity, this sensitivity can collect measurement data below 1100 meters. High sensitivity means that the laser sensor will collect other interference data. If the target is within 200 meters, step (1) will measure it and will not enter step (2). Therefore, if the measurement within 200 meters is measured, it is likely to be interference data and will be ignored in this step. In the part that overlaps with step (1), that is, within the range of 200 meters to 400 meters, the measurement results of step (1) and step (2) are basically the same (within the allowable error range) and can be directly adopted. In addition, considering that due to the influence of physical factors such as the environment, the high sensitivity has a higher measurement success rate within 900 meters, so the effective measurement distance L in this step is S2 Defined as 200m-900m.

[0046] Indirect measurement interval

[0047] (3) Switching sensitivity to S3, the measured data falls within the effective measurement distance L S3 If the measurement data is within (600 m ≤ measurement data ≤ 1700 m), the measurement data is considered valid, and the measurement data collected for the i-th time is recorded as the valid element X i And record (the first record is X1, the second record is X2, and so on, the i-th record is X i , the calculation method of the i-th measurement result is the same as that in steps (1) and (2), and both can adopt the current industry common distance measurement algorithm), and then go to step (4). Otherwise, the measurement data is considered invalid. The maximum number of continuous sampling is 40 times (N S3 =40), if the measured data is still invalid, the measurement ends and the output measurement result is measurement failure (the display shows FALL, measurement failure, ----, etc.); where i is a positive integer starting from 1.

[0048] (4) Return to step (1), step (2) or step (3) (since the program runs very fast, returning to step (1), step (2) or step (3) can meet the collection requirements) and continue to collect valid elements X i , so that the effective element X i The number is at least 2, and then the valid elements X i Arrange from small to large, and create an element array {X1...X i}, starting from the first valid element X1 in the valid element array, perform error judgment on the valid elements, remove interference elements, and retain the real elements. The error judgment method is as follows:

[0049] Determine whether (X1·P1) < X2 < (X1·P2) is true. If so, the effective element X1 and the effective element X2 are considered to be real elements. The measurement is completed and the measurement result S is output. C间 = (X1+X2) / 2-C. If it does not hold, the smaller effective element X1 is considered as an interference element and is removed. Check whether the maximum number of acquisitions is 10 (M=10). If it does not reach the maximum number, continue to collect effective elements X1. i , and so on. i-1 ·P1) < X i < (X i-1 P2) is true? If true, the measurement ends and the measurement result S is output C间 =(X i-1 +X i ) / 2-C, if it is not true, the measurement ends and the output measurement result is measurement failure (X i is the data collected for the 10th time, the maximum number of collections has been reached, and the program ends); where M is the maximum number of collections of valid elements set, and M is a positive integer greater than 3. In this embodiment, P1 is the lower limit of the error range, P1 is a positive number less than 1, and the value of P1 is preferably 0.98, and P2 is the upper limit of the error range, P2 is a positive number greater than 1, and the value of P2 is preferably 1.02. The result is within the error range of ±2%, and this range can also be adjusted according to the error of the product.

[0050] Due to the influence of the transmission delay of the hardware circuit signal conversion, the calculated result will produce a positive error of 1 to 2 meters, which needs to be subtracted. Therefore, an error constant C is introduced into the calculation. In this embodiment, an intermediate value of 1 to 2 meters is taken, that is, C=1.5.

[0051] In the second implementation of the above method, steps (1), (2) and (3) are the same as those of the first implementation, and the difference lies in step (4). The first implementation method is that in step (4), two effective elements X are first collected. i , then calculate the measurement result S C间 , and set the maximum number of valid element collections M. Before the maximum number of collections M is reached, collect and calculate once until the calculation is completed. The second method to implement the step is to set the maximum number of valid element collections M in step (4), first collect M valid elements X, and then perform multiple calculations until the calculation is completed.

[0052] Step (4) of the second implementation is as follows:

[0053] (4) Return to step (1), step (2) or step (3) and continue to collect valid elements X i , so that the effective element X i The number of collections reaches the maximum number of collections M, and then the valid element X i Arrange from small to large, and create an element array {X1...X i}, starting from the first valid element X1 in the valid element array, perform error judgment on the valid elements, remove the interference elements, and retain the real elements; the error judgment method is as follows:

[0054] Determine whether (X1·P1) < X2 < (X1·P2) holds. If so, the effective elements X1 and X2 are considered to be real elements, the measurement ends, and the measurement result S is output. C间 =(X1+X2) / 2-C, if it is not true, then the smaller effective element X1 is considered as an interference element and is removed, and so on. i-1 ·P1) < X i < (X i-1 P2) is true? If true, the measurement ends and the measurement result S is output C间 =(X i-1 +X i ) / 2-C, if it does not hold, the measurement ends (X i The data collected for the 10th time has been compared and the program ends). The output measurement result is measurement failure; where M is the maximum number of valid element collections set, and M is a positive integer greater than 3.

[0055] In this step, the ultra-high sensitivity can ideally measure a distance of 1700 meters. However, due to its very high sensitivity, it is extremely easy to be interfered with and outputs data within 600 meters. Therefore, all data within 600 meters are uniformly judged to be invalid (for the part overlapping with step (2), that is, within the range of 600 meters ≤ SC ≤ 900 meters, it can be directly adopted). The rangefinder is calibrated to measure the farthest distance of 1600 meters, so data above 1700 meters are judged invalid.

[0056] Due to the characteristic of laser sensor, when the sensitivity is too high, it is easy to have erroneous data when the distance is too close, and there are fewer erroneous data when the distance is too far. According to this characteristic, we first measure from low sensitivity and then gradually increase the sensitivity. When the measurement of the lower sensitivity fails, it proves that the target distance is not within the measurement range of this sensitivity. Therefore, the data measured by the higher sensitivity should exclude the range data that can be measured 100% by the lower sensitivity, but should include the range where the lower sensitivity has a probability of failing to measure. Steps 1, 2, and 3 are to preliminarily screen out some data based on this characteristic, and these data are not all correct data; because in the screened data, the erroneous data are randomly and discretely distributed, and the correct data are very close, using this characteristic, we need to sort the data from small to large first, and then compare the two adjacent data (valid elements). If the error of the two data exceeds the allowable range of ±2%, the two data are very close, and the correct data with a high probability is the final result, which can meet the requirements of the current measurement standards.

[0057] The above examples are based on the average value S of two real elements. 均 For example, if you think that two very close data are not accurate enough, you can further compare the two adjacent data and collect more data that meet (X i ·P1) < X i+1 <(X i ·P2) real elements, the average value of multiple real elements minus the error constant is the final result. The more real element data involved in the average value, the more accurate the measurement result.

[0058] At present, the price of more professional laser rangefinders (laser rangefinder telescopes) with a nominal range of 1500 meters on the market is generally more than twice that of laser rangefinders with a nominal range of 800 meters. By using the method of the present invention to perform software modification on the laser rangefinder with a nominal range of 800 meters without increasing the power of the laser transmitter (laser pulse diode power), the effective measurement distance can reach more than 1500 meters, and the increased cost of the software modification part is insignificant after being allocated to the product. Obviously, the present invention utilizes the data discarded by the laser rangefinder in the prior art through data screening and error correction algorithms, and can achieve longer distance measurement without increasing the power of the laser transmitter and the equipment cost, and the measured distance is more accurate.

[0059] The above implementation modes cannot limit the protection scope of the present invention. The equivalent modifications and changes made by those skilled in the art without departing from the overall concept of the present invention are still within the scope of the present invention.

Claims

1. A method for improving the distance measurement of a laser rangefinder, characterized in that According to the sensitivity of the laser sensor, this method divides the measured distance into a direct measurement interval and an indirect measurement interval. For the direct measurement interval, the measurement result S is directly output. C直 For the indirect measurement interval, the data screening and error correction algorithm are used to calculate the measurement result S C间 , calculate the measurement result S C间 The method is as follows: Compare the single collected measurement data with the set effective measurement distance L S3 Comparison shows that the measured data falls within the effective measurement distance L S3 If the measured data is within, it is considered valid and recorded as valid element X. After collecting more than two valid elements X, the valid elements X are arranged from small to large to establish a valid element array. Starting from the first valid element X1 in the valid element array, error judgment is performed on some or all valid elements, interference elements are eliminated, and real elements are retained. The error judgment method is as follows: Compare (X i ·P1) < X i +1 < (X i P2) is not true, if true, then it is considered that the valid element X i With effective element X i +1 is a real element. If not, it is considered a smaller valid element X. i Eliminate interference elements, and so on, find at least two adjacent real elements, and then calculate the average value S of some or all real elements 均 , then the measurement result S C间 The formula is as follows: S C间= S 均 -C; in, C is the error constant; P1 is the lower limit of the error range, and P1 is a positive number less than 1; P2 is the upper limit of the error range, and P2 is a positive number greater than 1; X i is the i-th number in the valid element array, where i is a positive integer greater than or equal to 1.

2. The measuring method according to claim 1, characterized in that The sensitivity of the laser sensor is set to S1, S2, and S3 from low to high. The effective measurement distances corresponding to the sensitivities S1, S2, and S3 are defined as L S1 , L S2 , L S3 , calculate the measurement results as follows: Direct measurement interval (1) Set the sensitivity to S1, and the measured data falls within the effective measurement distance L S1 If the measurement data is within 100%, the measurement data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum continuous sampling is N S1 If the measurement data is still invalid, go to step (2); (2) Switching sensitivity to S2, the measured data falls within the effective measurement distance L S2 If the measurement data is within , the measurement data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum continuous sampling is N S2 If the measurement data is still invalid, go to step (3); Indirect measurement interval (3) Switching sensitivity to S3, the measured data falls within the effective measurement distance L S3 If the measured data is within , the measured data is considered valid, and the measured data collected for the i-th time is recorded as the valid element X i And record, then go to step (4), otherwise the measurement data is considered invalid, and the maximum continuous sampling is N S3 If the measured data is still invalid after the test, the measurement ends and the output measurement result is measurement failure. (4) Return to step (1), step (2) or step (3) and continue to collect valid elements X i , so that the effective element X i The number is at least 2, and then the valid elements X i Arrange from small to large, and create an element array {X1...X i }, starting from the first valid element X1 in the valid element array, perform error judgment on the valid elements, remove the interference elements, and retain the real elements; the error judgment method is as follows: Determine whether (X1·P1) < X2 < (X1·P2) is true. If so, the measurement ends and the measurement result S is output. C间 = (X1+X2) / 2-C. If not, check whether the maximum number of collections M has been reached. If not, continue to collect valid elements X. i , and so on. i-1 ·P1) < X i < (X i-1 P2) is true? If true, the measurement ends and the measurement result S is output C间 =(X i-1 +X i ) / 2-C, if it is not true, the measurement ends and the output measurement result is measurement failure; where M is the maximum number of valid element acquisition times set, and M is a positive integer greater than 3.

3. The measuring method according to claim 1, characterized in that The sensitivity of the laser sensor is set to S1, S2, and S3 from low to high. The effective measurement distances corresponding to the sensitivities S1, S2, and S3 are defined as L S1 , L S2 , L S3 , calculate the measurement results as follows: Direct measurement interval (1) Set the sensitivity to S1, and the measured data falls within the effective measurement distance L S1 If the measurement data is within , the measurement data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum continuous sampling is N S1 If the measurement data is still invalid, go to step (2); (2) Switching sensitivity to S2, the measured data falls within the effective measurement distance L S2 If the measurement data is within , the measurement data is considered valid, the measurement is completed, and the measurement result S is output. C直 Otherwise, the measured data is considered invalid. The maximum continuous sampling is N S2 If the measurement data is still invalid, go to step (3); Indirect measurement interval (3) Switching sensitivity to S3, the measured data falls within the effective measurement distance L S3 If the measured data is within , the measured data is considered valid, and the measured data collected for the i-th time is recorded as the valid element X i And record, then go to step (4), otherwise the measurement data is considered invalid, and the maximum continuous sampling is N S3 If the measured data is still invalid after the test, the measurement ends and the output measurement result is measurement failure. (4) Return to step (1), step (2) or step (3) and continue to collect valid elements X i , so that the effective element X i The number of collections reaches the maximum number of collections M, and then the valid element X i Arrange from small to large, and create an element array {X1...X i }, starting from the first valid element X1 in the valid element array, perform error judgment on the valid elements, remove the interference elements, and retain the real elements; the error judgment method is as follows: Determine whether (X1·P1) < X2 < (X1·P2) is true. If so, the measurement ends and the measurement result S is output. C间 =(X1+X2) / 2-C, if it does not hold, then judge by analogy (X i-1 ·P1) < X i < (X i-1 P2) is true? If true, the measurement ends and the measurement result S is output C间 =(X i-1 +X i ) / 2-C, if it is not true, the measurement ends and the output measurement result is measurement failure; where M is the maximum number of valid element acquisition times set, and M is a positive integer greater than 3.

4. The measuring method according to claim 1, 2 or 3, characterized in that The value of P1 is 0.98, and the value of P2 is 1.

02.

5. The measuring method according to claim 1, 2 or 3, characterized in that The C value is 1.

5.

6. The measuring method according to claim 2 or 3, characterized in that The value of M is 10.

7. The measuring method according to claim 2 or 3, characterized in that The N S1 The value is 20, the N S2 The value is 20, the N S3 The value is 40.