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

32 implement ultrasound ranging 01bsp us ranging #37

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

Conversation

trifuns
Copy link
Contributor

@trifuns trifuns commented Jun 15, 2022

This PR implements the HC-SR04 ultrasound sensor driver.
The project initializes US and starts the ranging implemented using PPI in the driver. The value of the ECHO pin from the US sensor is passed to a callback in the main project file.

Solves #32

@trifuns trifuns linked an issue Jun 15, 2022 that may be closed by this pull request
Copy link
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

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

This is a first round of reviews with some general comments on the bsp function names (why just us and not hc_sr04.h). I also tried to chase all empty lines that can be removed :).

I'll do another pass of review later. It would be nice to explain the general idea behind the us ranging (in a README or doxygen comment).

trifuns added 18 commits June 21, 2022 12:06
…he echo pulse duration in the callback function
…d. This project calls the US driver, initializes US and starts the ranging implemented using PPI. The value of the ECHO pin from the US sensor is passed to a callback us_callback in the us_reading parameter.
@aabadie aabadie changed the base branch from develop to main November 28, 2022 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Ultrasound ranging 01bsp_us_ranging
2 participants