garmin / LIDARLite_Arduino_Library

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

LIDAR-Lite v3HP second peak data? #18

Open drbrodie opened 4 years ago

drbrodie commented 4 years ago

I want to move Arduino code from the v3 to the v3HP. On the v3 I have been using the 0x4c register PEAK_BCK to get the second peak data but this register is not listed as available for the v3HP. Are the 0x26 and 0x27 peak stack registers the v3HP’s equivalent and how would one interpret the data? My interest is in identifying reflection / penetration of glass surfaces. If you can suggest data registers available on the v3HP to aid in this please let me know.

jmseitz commented 4 years ago

There is a new function available in the v3HP library and some brief example code that illustrates how to utilize the peak stack registers at 0x26 and 0x27 to get the data that you may be after.