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

Truncate RotationVector in SensorInterpreter to avoid Samsung getRotationMatrixFromVector bug #18

Merged
merged 1 commit into from
Oct 13, 2015

Conversation

nvanbenschoten
Copy link
Owner

Fix for #16

SensorEvents' RotationVectors are now truncated to a maximum of 4 elements to avoid an IllegalArgumentException being thrown when the rotation vector (Not R, event though the exception says so!) is more than 4 elements on certain Samsung models. This fix was inspired by Chrome's DeviceMotionAndOrientation.

nvanbenschoten added a commit that referenced this pull request Oct 13, 2015
Truncate RotationVector in SensorInterpreter to avoid Samsung getRotationMatrixFromVector bug
@nvanbenschoten nvanbenschoten merged commit c20594b into master Oct 13, 2015
@nvanbenschoten nvanbenschoten deleted the samsung-bug branch October 13, 2015 05:31
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

Successfully merging this pull request may close these issues.

1 participant