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

driver: sensor: st: vl53l1x: autonomous mode #83795

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fouge
Copy link
Contributor

@fouge fouge commented Jan 10, 2025

new autonomous mode allows to set a constant inter-measurement period.
Once enabled, the sensor_fetch operation does nothing, and sensor_get
does not wait for a measurement to be ready but simply reads the one available.
Autonomous mode differs from the default ranging mode.

instead of constantly enabling the interrupt when fetching a new sample,
 and never disabling it after the first sample has been fetched, it is
 simpler to enable the interrupt when it's being configured.

Signed-off-by: Cyril Fougeray <cyril.fougeray@toolsforhumanity.com>
@zephyrbot zephyrbot added the area: Sensors Sensors label Jan 10, 2025
@fouge fouge force-pushed the worldcoin/vl53l1x-autonomous-mode branch 2 times, most recently from 26fadc3 to 46f21d9 Compare January 14, 2025 09:59
new autonomous mode allows to set a constant inter-measurement period.
once enabled, sensor_fetch operation does nothing, and sensor_get
does not wait for a measurement to be ready but simply reads the one
available.
Autonomous mode differs from the default ranging mode.

Signed-off-by: Cyril Fougeray <cyril.fougeray@toolsforhumanity.com>
@fouge fouge force-pushed the worldcoin/vl53l1x-autonomous-mode branch from 46f21d9 to 1594464 Compare January 14, 2025 15:59
@MaureenHelm
Copy link
Member

@avisconti can you take a look?

@avisconti
Copy link
Collaborator

@avisconti can you take a look?

I'll try in the next days.. Adding also @erwango for moral support...

@avisconti avisconti requested a review from erwango January 24, 2025 16:31
@yperess yperess removed their request for review January 24, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants