cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L4CX no wrap check failure

MCesn.1
Associate II

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?



1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

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


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.

View solution in original post

1 REPLY 1
John E KVAM
ST Employee

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


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.