Skip to content

LIDARLite v4 LED Library - max measurement 255cm #19

Description

@paw1682

I am new to Arduino programming and playing around with a Sparkfun Redboard Artemis nano connected to a LIDARLite v4 LED via the Qwiik connector. When running the GetDistance example I noticed I could not obtain a measurement over 255cm. It would jump back to low measurments like 1cm. I noticed the in the library that the getDistance function was only declared as uint8_t (8bit). Thus the reason for the max value of 255. I changed the getDistance funtion declaration to unit16_t in both the LIDARLite_v4LED.h and the .cpp library files and now I am able to get measurements over 255cm.
Attached are the updated files.
LIDARLite_v4LED.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions