2022-07-20 07:28 AM
I am started to work with the sensor, and when I tried to calibrate based on the documentations I fond that I when i use the SetTimingRange function (as shown ind the high accuracy example ).I tried to error check with the GetTimingRange function and I always got back the same result(14). It looks like the SetTimingRange function does not have any effect on the sensor.
2022-08-02 04:33 PM
I'm going to guess you meant the function:
VL53L4CD_ERROR VL53L4CD_SetTimingBudgetInMs(
uint16_t dev,
uint32_t timing_budget_ms)
It's the only reference to Timing in the code.
I'm also going to guess that you got a status of 14, meaning something went wrong with your code.
And it's not the value of the timing_budget, but the fact that the read failed.
If I'm wrong, could you submit that little bit of code that is bothering you?