cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L1X when to trust readings?

will3
Associate II

Hi,

 

typedef struct {
uint8_t Status; /*!< ResultStatus */
uint16_t Distance; /*!< ResultDistance */
uint16_t Ambient; /*!< ResultAmbient */
uint16_t SigPerSPAD;/*!< ResultSignalPerSPAD */
uint16_t NumSPADs; /*!< ResultNumSPADs */
} VL53L1X_Result_t;

We have cases when the Sensor Status result is non zero.  When it is it is usually a 3 or 255:

#define RANGE_ERROR_DISTANCE_BELOW_DETECTION_THRESHOLD 0x03
#define RANGE_ERROR_OTHER 0xFF

I asked about these in a different post but now I have a somewhat different perhaps more general question.  If the Status returns a non zero in any case should the Distance be disregarded -- in all cases? Or,  are there certain non zero Status conditions where we should "trust" the Distance versus not "trust" the Distance (reading) returned?

As usual thank you,

Will

 

 

0 REPLIES 0