Skip to content

Android | Use geomagnetic rotation sensor as fallback#38

Merged
hemanthrajv merged 1 commit intohemanthrajv:masterfrom
Xennis:feat/fallback-to-magnetic-sensor
Jul 27, 2020
Merged

Android | Use geomagnetic rotation sensor as fallback#38
hemanthrajv merged 1 commit intohemanthrajv:masterfrom
Xennis:feat/fallback-to-magnetic-sensor

Conversation

@Xennis
Copy link
Copy Markdown
Contributor

@Xennis Xennis commented Jul 26, 2020

If the TYPE_ROTATION_VECTOR is not available (e.g. on cheaper or older Android devices)
use TYPE_GEOMAGNETIC_ROTATION_VECTOR as fallback. That's increases the support for
more Android devices.

TYPE_GEOMAGNETIC_ROTATION_VECTOR is:

Similar to TYPE_ROTATION_VECTOR, but using a magnetometer instead of using a gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't use the gyroscope. However, it is more noisy and will work best outdoors.

If the TYPE_ROTATION_VECTOR is not available (e.g. on cheaper or older Android devices)
use TYPE_GEOMAGNETIC_ROTATION_VECTOR as fallback. That's increases the support for
more Android devices.
@hemanthrajv hemanthrajv merged commit 4f10681 into hemanthrajv:master Jul 27, 2020
@Xennis
Copy link
Copy Markdown
Contributor Author

Xennis commented Aug 1, 2020

@hemanthrajv can you please release a new version with that change?

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.

2 participants