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

getGravity()-function returns X-Value in all three axes. #107

Open
thire66 opened this issue Apr 7, 2024 · 0 comments
Open

getGravity()-function returns X-Value in all three axes. #107

thire66 opened this issue Apr 7, 2024 · 0 comments

Comments

@thire66
Copy link

thire66 commented Apr 7, 2024

Please correct the getGravity()-function.
It currently returns the X value in all three axes.

//Gets the full gravity vector
//x,y,z output floats
void BNO080::getGravity(float &x, float &y, float &z, uint8_t &accuracy)
{
	x = qToFloat(gravityX, gravity_Q1);
	y = qToFloat(gravityX, gravity_Q1);
	z = qToFloat(gravityX, gravity_Q1);
	accuracy = gravityAccuracy;
}
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