Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_RangeFinder: benewake tfmini always provide cm distances #9864

Merged
merged 1 commit into from
Nov 20, 2018

Conversation

rmackay9
Copy link
Contributor

Fourth time lucky?

Another small fix to the Benewake TFmini driver. Somehow I misunderstood the data sheet regarding "mode 2" (short distance mode) and thought that in this mode the distances were provided in millimeters. In fact, the sensor always provides the distance in cm.

In case it matters, there are apparently two versions of the firmware for the Benewake TFmini lidar, and the version that I have never goes into "mode 2" which somewhat explains why I never noticed the problem during testing.

a misunderstanding of the datasheet led to the mistaken idea that while in short-range-mode the distances were returned in millimeters
@OXINARF
Copy link
Member

OXINARF commented Nov 20, 2018

I guess I've misunderstood the datasheet too then, because I read it when I reviewed your initial work on the driver and I'm sure I understood that mm difference too. I don't have the datasheet anymore to re-check it though, but if our understanding was wrong, then PR LGTM.

@rmackay9 rmackay9 merged commit 6816262 into ArduPilot:master Nov 20, 2018
@rmackay9
Copy link
Contributor Author

Great, thanks for the review, merged!

@rmackay9 rmackay9 deleted the benewake-fix3 branch November 20, 2018 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants