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

Document sensor equation fit #2

Open
Peque opened this issue Oct 17, 2018 · 0 comments
Open

Document sensor equation fit #2

Peque opened this issue Oct 17, 2018 · 0 comments

Comments

@Peque
Copy link
Member

Peque commented Oct 17, 2018

Normally:

def raw_to_distances(raw, a, b):
    return a / numpy.log(raw) - b

If the sensors are too perpendicular to the wall, reflection may change the best equation to:

def raw_to_distances(raw, a, b, c):
    return a / numpy.log(raw) - b - c * numpy.sqrt(raw)
@Peque Peque transferred this issue from another repository Dec 5, 2018
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

1 participant