I bought the sensor VL53L1X and I’m surprised for the poor or NULL information about the configuration registers.
My proposal is configure the sensor in short range (up to 1.3m of detection) and with a maximum number of samples per second (every 15 or 20ms). Also it is very important to reduce at maximum the code size.
The idea is delete complex functions as the setMeasurementTimingBudget(…), calcMacroPeriod(…), timeoutMicrosecondsToMclks(…).
Somebody can help me to config the sensor with the minimum code?