Skip to content

Document sensor equation fit #2

Description

@Peque

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions