0

VL53L0X Time of Flight Distance Sensor
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: VL53L0X Time of Flight Distance Sensor

by adafruit_support_carter on Wed Apr 25, 2018 10:38 am

lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!
what does false do here?

It's a debug flag:
https://github.com/adafruit/Adafruit_VL ... 3L0X.h#L48

if (measure.RangeStatus != 4) { // phase failures have incorrect data
why does it have to be != 4?

It's checking to make sure there is no phase failure on the measurement, which would be a value of 4.
https://github.com/adafruit/Adafruit_VL ... s.cpp#L224
https://github.com/adafruit/Adafruit_VL ... ngs.h#L201

adafruit_support_carter
 
Posts: 12726
Joined: Tue Nov 29, 2016 2:45 pm

Re: VL53L0X Time of Flight Distance Sensor

by AlexSneedMiller on Fri Jun 14, 2019 2:48 pm

Are there other docs for this board that give a high level overview of best practices for ranging, calibrating, checking for errors, etc? Or does everyone just manually go through the library and check the datasheet (https://www.st.com/resource/en/datasheet/vl53l0x.pdf)?

AlexSneedMiller
 
Posts: 9
Joined: Tue Mar 04, 2014 10:34 am

Re: VL53L0X Time of Flight Distance Sensor

by adafruit2 on Fri Jun 14, 2019 3:23 pm

all we have are the docs ST provides !

adafruit2
Site Admin
 
Posts: 18599
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.