Currently the firmware caches a single LiDAR Lite reading and returns it on every I2C read. Taking N truly independent readings from the library requires the firmware to retrigger the LiDAR Lite on demand for each shot.
Add a trigger mechanism (e.g. a writable bit in the config register at 0x0B) that the library can use to request a new measurement before reading. The ready flag at 0x00 bit 0 should clear during acquisition and set when the new value is available.
This is a prerequisite for the library-side multi-reading stats redesign — see NorthernWidget/Apis_Library#2.
Currently the firmware caches a single LiDAR Lite reading and returns it on every I2C read. Taking N truly independent readings from the library requires the firmware to retrigger the LiDAR Lite on demand for each shot.
Add a trigger mechanism (e.g. a writable bit in the config register at
0x0B) that the library can use to request a new measurement before reading. The ready flag at0x00bit 0 should clear during acquisition and set when the new value is available.This is a prerequisite for the library-side multi-reading stats redesign — see NorthernWidget/Apis_Library#2.