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

question regarding the source code and the documentation #39

Open
Umme3 opened this issue Dec 22, 2022 · 0 comments
Open

question regarding the source code and the documentation #39

Umme3 opened this issue Dec 22, 2022 · 0 comments

Comments

@Umme3
Copy link

Umme3 commented Dec 22, 2022

Why is the source code like this
angleAccX = atan2(accY, sgZ * sqrt(accZ * accZ + accX * accX)) * RAD_2_DEG; // [-180,+180] deg
angleAccY = - atan2(accX, sqrt(accZ * accZ + accY * accY)) * RAD_2_DEG; // [- 90,+ 90] deg

when in the documentation, it is written as the following?
angleAccX = atan2(sgZ *accY, sqrt(accZ *accZ + accX *accX)) * RAD_2_DEG; // [-180,+180] deg
angleAccY = atan2(accX, sqrt(accZ *accZ + accY *accY)) * RAD_2_DEG; // [- 90,+ 90] deg

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