Skip to content

Should invert signs plus minus! #16

@jonesab

Description

@jonesab

Hi @Grahldg ,
I was testing ROI functions and I've noticed a small bug in the conversions (lines 311 and 313) from getUserRoi().
roi->topLeftY = (2 * row - height) >> 1; roi->bottomRightY = (2 * row + height) >> 1;

Checked the equivalent function within the API (file vl53l1_api.c), so the lines mentionned above should be as following:
roi->topLeftY = (2 * row + height) >> 1; roi->bottomRightY = (2 * row - height) >> 1;
Cheers,

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