Do your range. When the range is complete, call:
VL53L1_Error VL53L1_GetRangingMeasurementData(VL53L1_DEV Dev,
VL53L1_RangingMeasurementData_t *pRangingMeasurementData);
It will return a data structure with the distance and an:
FixPoint1616_t SignalRateRtnMegaCps;
/*!< Return signal rate (MCPS)\n these is a 16.16 fix point
* value, which is effectively a measure of target
* reflectance.
*/
But that is not enough. You really need the signal per second per SPAD.
and we change the number of SPADs we use depending on the return strength.
You also get:
uint16_t EffectiveSpadRtnCount;
So divide the SignalRateRtnMegaCps byEffectiveSpadRtnCount and you will get a good measure of your signal return.
- john
If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.