Closed aburt2 closed 1 year ago
jabX
. Also, you might already noticed that the jabThreshold
is not applied to Y and Z (also a mistake).This part of the function would benefit from a review.
Second question, is there any reason we only use the gyroBuffers
and not any accelerometer data for jabs and shakes
Closing this issue as we already discussed in person. In a nutshell:
For shakes, gyro seems a good choice as it allows a simpler implementation, as well as the fact it zeroes when static heps.
For jabs, that was a wrong decision. @aburt2's PR adds a function to use accelerometer data for jabs. In a future revision, the plan is to leave the function generic and plug the type of data
Hey @edumeneses just have some questions about the logic of the jab extractor, in the x direction.
https://github.com/Puara/puara-gestures/blob/34f3e525c3269390c335f23a96282afbec27d884/puara_gestures.cpp#L53-L73