-
Notifications
You must be signed in to change notification settings - Fork 30
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
Limited reading performance due to strange delay(40)
in code
#13
Comments
pretty sure we got it from bosch's official self-test code :/ |
Just as a follow up to this - has there been any resolution. Reason. I was testing on a Teensy 4.0 and getting a "Failed to perform reading :(" error. I came across this and commented out the delay(40) and it magically started working. Guess its time to read the manual. |
Sorry no, not yet
… On Jan 6, 2021, at 5:29 PM, Mike S ***@***.***> wrote:
Just as a follow up to this - has there been any resolution.
Reason. I was testing on a Teensy 4.0 and getting a "Failed to perform reading :(" error. I came across this and commented out the delay(40) and it magically started working. Guess its time to read the manual.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAHALMEKQSWCSSFBQVA5VHTSYTP47ANCNFSM4VR6VA5A>.
|
Thanks for the reply. Just for reference I did try the sketch on the Uno, Due, Mega and a Teensy 3.5 with the delay(40) removed and it seemed to work with an issue. |
can someone please submit a PR? we'd review and merge! |
Thanks for incorporating the change. |
Thanks @mjs513 ... I wasn't going to be able to get to this until tomorrow. I will close this now. |
thanks all! |
Thanks for all you do, you really do make great hardware/software!
I am trying to read the pressure sensor at ~200Hz with some other sensors and set it as:
However, when I execute
bmp.performReading()
, the performance is no where near ~200Hz unless I comment this performRead out. Looking at this function in github here, there is adelay(40)
for some reason. This delay would limit the reading to no more than 25Hz ... why? The sensor is capable of faster performance, not sure why you are hamstringing it like this ... maybe there is a more efficient way to do this?Thanks again!
The text was updated successfully, but these errors were encountered: