VL53L5/VL53L8 Histogram, Multi-target Nearest and Strongest detection order, peak thresholding
I am experimenting with the VL53L5/VL53L8 sensors.
For multi-target there are the options of target order of strongest and nearest. This is not a difficult concept.
However, I am curious about the algorithm for detecting the peaks in the histogram. I assume there must be some thresholding, so small peaks caused by noise(?) are ignored. I can't see a way to set the threshold, however I see this being difficult, better different thresholds work for different ambient light levels, light noise levels etc...
After some quick experiments, I haven't seen any problems. Using nearest rather than strongest target order, may be more sensitive to noise conditions. Any thoughts?
