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

IR module returns opposite distance value #115

Closed
dajeong012 opened this issue Mar 6, 2020 · 1 comment
Closed

IR module returns opposite distance value #115

dajeong012 opened this issue Mar 6, 2020 · 1 comment

Comments

@dajeong012
Copy link

dajeong012 commented Mar 6, 2020

  • pyMODI version: 0.7.1
  • Python version: 3.7.4
  • Operating System: macOS Catalina 10.15.3

Description

"ir.get_distance()" returns greater value when object gets closer.

What I Did

if ir.get_distance() > 30: led.set_on()

What I Expected

Returned distance value should be less when object gets closer.

@94929
Copy link
Contributor

94929 commented Mar 6, 2020

Thanks for reporting the issue.

The function has now been renamed to get_proximity for clarity and will be updated in the next version, 0.8.0.

@94929 94929 closed this as completed Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants