How do I read the distance of the closest detected object instead of an average distance of all detected objects with the VL53L1X?
Greetings.
If I point the sensor at a wall and then slowly move my hand into the sensor's viewing area, the sensor gradually changes its reported range from the distance to the wall to the distance to my hand as shown in this graph.
Is it possible to set up the sensor to immediately report my hand's true distance as soon as it is detected instead of reporting a false distance until it has been fully moved in front of the sensor?
Here is my API setup code:
VL53L1X_SensorInit( 0 );
VL53L1X_SetTimingBudgetInMs( 0, 20 ); // 20ms sample time
VL53L1X_SetInterMeasurementInMs( 0, 20 ); // Sample every 20ms
VL53L1X_StartRanging( 0 );Thank you
Scott Wild
