Hi Guy,
Your observations are consistent with Peter's and my observations:
When these particular LIDAR units are operated beyond their working range, the PWM values are random noise.
I note that you maximum range was about 5 meters. For Peter's flights the range was much larger than that. Beyond about 20 meters, the PWM values were random.
I have been tracking the development of this particular LIDAR unit and have samples of all 4 versions:
Version 1: the initial kickstarter version.
Version 2: improved version.
Version 3. further improvements.
Version 3hp: "version 3 high performance".
Each new version was an improvement in performance over the previous.
However, the "PWM signature" for the case of out of range for each version is slightly different. Based on the signature of the latest version I was able to come up with an algorithm to detect an out of range situation.
In principle, the situation would be simpler with the I2C interface, because an out-of-range situation is explicitly identified in that case.
In Peter's case, he has been using LIDAR for fixed wing operation with range values between ground and 100 meters.
In my case, I have been using LIDAR for both fixed wing up to 100 meters, and for quad copter up to a few meters. I observe the noise that Peter reports when I use LIDAR for fixed wing, and I observe the sort of behavior that you report for quad copter operation.
By the way, I have observed LIDAR "out of range" behavior for "point blank" range.
If you have the time and interest, it would be useful to me if you would point your LIDAR at the sky and report your observations.
Best regards,
Bill