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

Improvement suggestion to use the accelerator vector length #1

Open
milansismanovic opened this issue Oct 9, 2020 · 0 comments
Open

Comments

@milansismanovic
Copy link

Currently the shot is detected like this:
GyroMeasure.cpp(49): gMax = max(max(gyro_acc_x, gyro_acc_y), gyro_acc_z);

Suggest to do this to detect all acting g-forces in case the gyro is not aligned:
GyroMeasure.cpp(49): gMax = sqrt(gyro_acc_x*gyro_acc_x+gyro_acc_y*gyro_acc_y+ gyro_acc_z*gyro_acc_z);

Great work! Inspired by this, I am going for the route to connect with a mobile using bluetooth.

Here's my humble start: https://github.com/milansismanovic/shot-counter

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

1 participant