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

MS5611 Driver Update #52

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

MS5611 Driver Update #52

wants to merge 15 commits into from

Conversation

FolaFatola
Copy link

@FolaFatola FolaFatola commented May 6, 2024

What manual tests were used to validate the code?
Temperature, pressure and altitude values were printed to the UART. For the altitude, the barometer was raised a few meters and measurements were observed. For temperature, values were compared to local thermometer. The pressure was compared to the pressure of the city I was in (googled).
image
image

Testing for failures:
The measurements in this driver return a bool - true if no communication errors occur and false if they do occur
image

If HAL_SPI_TransmitReceive_IT doesn't HAL_OK, communication_success_ is assigned the value false. To test if that would cause if that would cause the get functions to return false (getPressure, getTemperature, etc), I would assign communication_success_ false and check the results.

Forced failure example #1:
image

Forced failure example #2:
image

Results:
image

Test loop:
image

What unit tests were used to validate the code?

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.

None yet

1 participant