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

SNS - Laser Triangulation Sensor #76

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

Conversation

Aux1r
Copy link
Contributor

@Aux1r Aux1r commented Feb 9, 2025

starting laser triang sensor

Copy link

linear bot commented Feb 9, 2025

@Aux1r Aux1r changed the title init commit SNS - Implement Laser Triangulation Feb 9, 2025
@Aux1r Aux1r changed the title SNS - Implement Laser Triangulation SNS - Laser Triangulation Sensor Feb 9, 2025
@Aux1r Aux1r requested a review from davidbeechey February 9, 2025 13:37
@mostafam99 mostafam99 marked this pull request as ready for review February 9, 2025 13:44
@mostafam99 mostafam99 requested a review from H-Allen as a code owner February 9, 2025 13:44
@davidbeechey davidbeechey added the needs reviews Needs reviews, otherwise finished label Feb 9, 2025
/// the MEASURE_RANGE and BASE_DISTANCE values accordingly. You can find different configuration settings
/// in the data sheet.
pub fn read(&mut self) -> SensorValueRange<f32> {
let current = self.adc.read_value() as f32;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to convert to current also here

@davidbeechey davidbeechey added needs testing Needs testing in the lab before merging and removed needs reviews Needs reviews, otherwise finished labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs testing Needs testing in the lab before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants