budryerson / TFMini-Plus

Arduino library for the Benewake TFMini-Plus and TFMini-S LiDAR distance sensors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Max Distance

DConcord opened this issue · comments

First, thanks for your work on this library!

I'm replacing a TFMini with a TFMini plus. The TFMini would return a value of 65535 if the object was out of range, but the TFMini plus seems to return a value of 0, which is not super helpful in determining whether I'm dealing with an error in reading or just out of range. Is there a good way to differentiate?

thanks!

I think that the strength of the returned signal might help differentiate between an error and a distance that's out of range. Also the immediately adjacent readings can provide helpful clues.