Skip to main content
BLuka.1
Visitor II
July 20, 2022
Question

Vl53L4CD ULD SetTimingRange not works

  • July 20, 2022
  • 1 reply
  • 730 views

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.

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
August 2, 2022

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