-
Notifications
You must be signed in to change notification settings - Fork 6
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
updateInertialGestures() causes ESP32 crash if the gyrobuffers are empty #3
Comments
Sure thing! We can talk more about that IRL today, but I plan to revisit the puara-gestures library next week. I plan to initialize the class with default internal variables (0.0 for the sensor data holders and Also, there's some code cleaning to do. We can push a quick fix today afternoon. |
@aburt2 , I believe this is already fixed. Please let me know if not. I'll leave this open for now. |
Okay @edumeneses , I'll test this tomorrow |
@edumeneses it is Still an issue with the latest T-Stick firmware |
Thanks for taking the time to check. I'll add it to the lists to review in the code. I started touching on that earlier this week. |
One year later, and we are advancing on the refactoring (in the development branch). I will leave this issue open but it should be fixed upon the next release. This is to be tested and the issued close by then. |
I was testing with making a better sensor manager for the T-Stick (one that won't try to read from sensors that haven't responded) and while testing I've noticed that if you haven't set any gyroscope values using
setGyroscopeValues
and call theupdateInertialGestures()
method it causes the ESP32 to crash with the following error message.@edumeneses is it possible to have the function either print out a warning when the
gyroBuffers
are empty or initialise puara-gestures with zeros in thegyroBuffers
Tested on Tinypico with T-stick firmware (commenting out lines 420 - 426)
The text was updated successfully, but these errors were encountered: