garmin / LIDARLite_Arduino_Library

High-performance optical distance sensing.
Apache License 2.0
181 stars 84 forks source link

LidarLite V4 LED - Signal Quality I2C #20

Open zarmomin opened 4 years ago

zarmomin commented 4 years ago

On the V3 and V3 HP versions you can read 0x0c, 0x0d and 0x0e over i2c to compute signal strength and detect invalid measurements.

However, when the V4 LED is near its maximum range it just returns garbage without any indication that the signal is terrible. Is there a way to capture signal quality or detect failure on the V4?

jmseitz commented 4 years ago

Unfortunately, the data in those corresponding registers of the v3 and the v3HP are not available for read in the v4. However, a near future firmware update will improve signal threshold detection so that low level signals are more often rejected.