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

calibrateAccel #29

Closed
lxzrv opened this issue Jun 12, 2018 · 2 comments
Closed

calibrateAccel #29

lxzrv opened this issue Jun 12, 2018 · 2 comments

Comments

@lxzrv
Copy link

lxzrv commented Jun 12, 2018

Is it works? It's every time show me that bias is 0, and scale is 1. But i can read peak 10.7mss on X and min -9.0 or another => real bias ~ -0.9. I checked sourses, but i can't find something wrong.

@flybrianfly
Copy link
Contributor

Yes, make sure that you are running calibrateAccel 6 times total, once in each axis (+/-). The method is using the gravity vector as input to compute scale factor, which is why this is necessary.

@lxzrv
Copy link
Author

lxzrv commented Jun 12, 2018

Thank you so much, my English don't pretty good and I looked once again at the code and understood, that it should be run at least 6 times to calculate all biases, I wrote some useful lines in your code (it helped me) to print values of measuring when pass the loop with (_numSamples).
In my opinion your library is the most understandable, easy, but powerful. Thanks.

@lxzrv lxzrv closed this as completed Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants