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 for getting absolute acceleration. #17

Closed
BravoJason opened this issue Jul 11, 2018 · 2 comments
Closed

Question for getting absolute acceleration. #17

BravoJason opened this issue Jul 11, 2018 · 2 comments

Comments

@BravoJason
Copy link

BravoJason commented Jul 11, 2018

I have a question for get absolute acceleration in KalmanLocationService class.

In onSensorChanged callback function:
android.opengl.Matrix.multiplyMV(absAcceleration, 0, rotationMatrixInv, 0, linearAcceleration, 0);
The question is that when the user hold the phone moving, I think apart we need to do rotate from the device coordinate to global coordinate and we also need to do projection in each global coordinate axis.

But for our code, I only see the rotation code and I didn't see the projection code.

Could you tell me is there any misunderstanding of the code?

@BravoJason BravoJason changed the title Question for get absolute acceleration. Question for getting absolute acceleration. Jul 11, 2018
@BravoJason
Copy link
Author

You are right.

When we use the rotation matrix to rotate the vector, it will rotate the coordinate system.

It needn't to do projection.

@Lezh1k
Copy link
Collaborator

Lezh1k commented Jul 11, 2018

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

2 participants