Skip to content

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

Description

@thire66

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions