You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are the considerations for having a busy loop timeout of 500ms? Isn't this long enough to potentially interfere with other ImpOS functions? I realize that this method may give better accuracy, but how bad would it be to rely on an interrupt and callback instead?
I was thinking of implementing it along the lines of
But given that the range of the HC-SR04 is not more than 4 meters, my calculation says that the timeout value should only need to be something like 25ms.
The text was updated successfully, but these errors were encountered:
I've done a few experiments today, relying entirely on callbacks rather than busy loops. It "sort of" works, but my experimental/exploratory code is quite messy and there are a few unresolved problems. In particular, the instrumentation to watch how it's working is interfering with the ability to catch events on the 100-microsecond scale. Thank you for the invitation to contribute. I'll keep working on this until I have something worth showing.
What are the considerations for having a busy loop timeout of 500ms? Isn't this long enough to potentially interfere with other ImpOS functions? I realize that this method may give better accuracy, but how bad would it be to rely on an interrupt and callback instead?
I was thinking of implementing it along the lines of
https://gist.github.com/cat-haines/5492082
But given that the range of the HC-SR04 is not more than 4 meters, my calculation says that the timeout value should only need to be something like 25ms.
The text was updated successfully, but these errors were encountered: