garmin / LIDARLite_Arduino_Library

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

Repeated read distance write repeated acquire #8

Open PiStuffing opened 6 years ago

PiStuffing commented 6 years ago

In the v3, by setting register 0x11 (OUTER_LOOP_COUNT) to 0xFF, registers 0x0F and 0x10 could be read on demand to get the latest distance. This is not supported in the v3HP as far as I can see. While this might not matter in a firmware device (i.e. Arduino), this is a significant problem for an O/S like a Raspberry Pi Linux. Is there a way to get the latest on-demand distance value without the write acquire, read status, read distance?