cancel
Showing results for 
Search instead for 
Did you mean: 

Vl53L4CD ULD SetTimingRange not works

BLuka.1
Associate

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.

1 REPLY 1
John E KVAM
ST Employee

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?

  • 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.