Skip to main content
MCesn.1
Associate
November 9, 2024
Solved

VL53L4CX no wrap check failure

  • November 9, 2024
  • 1 reply
  • 622 views

I'm using the VL43L4CX and with every measurement, I get the next range status: 

VL53LX_RANGESTATUS_RANGE_VALID_NO_WRAP_CHECK_FAIL

From the documentation, I can't find any indications of what to do in this case and how to solve it.
From the code I see that this is set when wraparound check isn't performed. This is also visible because for longer distances 3m+ I get an offset with around 3m offset.

I'm using the same code as in this example: https://www.st.com/en/embedded-software/stsw-img029.html
and I haven't changed any of the tuning parameters.

How to address this and make the algorithm perform the wraparound check?



Best answer by John E KVAM

That message is not an error - it's a warning. 

In order to detect 'radar aliasing' we need two ranges with different pulse repetition rates. So we range in pairs - but we return the result of every range to you. 

But for the first range, we don't have the other half, so we are warning you that the 'wrap check' ('radar aliasing') check has not been done. 

And it happens for the first range after a start and never again - until the next stop/start sequence. 

- john

1 reply

John E KVAM
John E KVAMBest answer
ST Employee
November 11, 2024

That message is not an error - it's a warning. 

In order to detect 'radar aliasing' we need two ranges with different pulse repetition rates. So we range in pairs - but we return the result of every range to you. 

But for the first range, we don't have the other half, so we are warning you that the 'wrap check' ('radar aliasing') check has not been done. 

And it happens for the first range after a start and never again - until the next stop/start sequence. 

- john