Skip to content

Distance Sensor not working #28

@dblanding

Description

@dblanding

It used to work, but now it doesn't.
When I say it used to work, I mean that it worked (and still works) with the 32-bit Lite OS and the 64-bit Lite OS.
When I say that now it doesn't, I mean that it doesn't work with the 64-bit Full OS.

Image

I click on start distance data but I don't get any distance_mm values.

Image

The sensor (kind of) works. The first time I run robotpython robot/tests/test_distance_sensor.py, it just prints "Initializing distance sensor...".

If I close that ssh session and try again, it works:

doug@raspi4:~ $ robotpython robot/tests/test_distance_sensor.py
Initializing distance sensor...
Setting distance sensor resolution and frequency
Starting distance sensor ranging
71 75
73 72
74 71
71 73
74 72
76 71
75 71
74 73
72 75
74 73
74 72
72 71
76 75

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