-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
…he echo pulse duration in the callback function
…he 01bsp_us_ranging.c
…ulse is set inside hc_sr04.c
…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.
There was a problem hiding this 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).
…he echo pulse duration in the callback function
…he 01bsp_us_ranging.c
…ulse is set inside hc_sr04.c
…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.
…tps://github.com/DotBots/DotBot-firmware-fresh into 32-implement-ultrasound-ranging-01bsp_us_ranging
…_us_ranging.c file
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