2025-01-14 03:55 AM - last edited on 2025-01-14 08:02 AM by Peter BENSCH
Hi,
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