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

Failing LPS25H temperature self reading #152

Closed
CarlosRDomin opened this issue Sep 27, 2016 · 2 comments
Closed

Failing LPS25H temperature self reading #152

CarlosRDomin opened this issue Sep 27, 2016 · 2 comments
Milestone

Comments

@CarlosRDomin
Copy link

CarlosRDomin commented Sep 27, 2016

[I see there was a commit 6 days ago (da09442) which is supposed to fix this issue, however it still happens to me].
The issue is the following: sometimes, when I power up my CrazyFlies, some of them start blinking the red led (the one on M1's arm) 4 times in a row, which means an error occurred. When I connect to them using the cfclient and read the console output, last line says:

LPS25H: Self test temperature [FAIL]. low: -20.0, high: 80.0, measured: -22.49

Some other times, surprisingly, I get the following:

LPS25H: Self test temperature [FAIL]. low: -20.0, high: 80.0, measured: 89.90

Any idea of what could be the cause? Temperature in my lab is usually around 20-30ºC. Is it a problem with the moving average filter (maybe an initialization issue)? Is the LPS25H_LSB_PER_CELSIUS constant off?

Please let me know if there's any further testing/debugging that can help you guys out :)

@tobbeanton
Copy link
Member

Are you sure you running the latest code? This is typically what happened, getting random temperature data because the temp data was read from the pressure register instead of the temp register (pressure register wraps around when FIFO is activated). Have you tried with code before the sensor reading change? Might be a sensor issue (but most likely still a bug)

@CarlosRDomin
Copy link
Author

My bad, re-flashed the firmware (thought I had after pulling the latest commit, but I guess I hadn't) and problem is solved, temperature is now in the 20-35ºC range as expected :)

@krichardsson krichardsson modified the milestone: Next version Nov 28, 2016
cafeciaojoe pushed a commit to cafeciaojoe/crazyflie-firmware that referenced this issue Sep 27, 2024
Added slight modification to use the COLOR_BLUE constant to get the same color as in the battery bar for instance. A nice next step would be to get the color from the OS instead of using a constant.

Closes bitcraze#152
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

No branches or pull requests

3 participants