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

How to interpret Pitch, Yaw , Roll on the orientation feature? #419

Open
vajos opened this issue Feb 19, 2022 · 0 comments
Open

How to interpret Pitch, Yaw , Roll on the orientation feature? #419

vajos opened this issue Feb 19, 2022 · 0 comments

Comments

@vajos
Copy link

vajos commented Feb 19, 2022

https://github.com/react-native-sensors/react-native-sensors/blob/master/docs/API.md#orientation-observableqx-number-qy-number-qz-number-qw-number-pitch-number-roll-number-yaw-number-timestamp-string

The documentation there just says "pitch, roll, yaw are calculated by iOS/Android. "

When i Try to use them

console.log("Pitch: " + pitch + " " + " Roll: " + roll + " " + "Yaw: "+ yaw);

I get this values:

Untitled

I tried using radians_to_degrees for pitch roll and yaw and they are still different values to the android emulator values.

How do I get this values from your library ?

I just want to get the same values as I type into the emulator if i specify "Z-Rot: 90" I expect to get the value 90 on my App.
Or how do I Interpret this values I thought Pitch Yaw Roll are the same as X,Z,Y Rotation .
Would appreciate any help<3

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