T
T
Toasts2016-02-01 23:13:50
Mathematics
Toasts, 2016-02-01 23:13:50

How to get angle from quaternion?

Hello.
There is an accelerometer sensor with a gyroscope (MPU-6050). Through the library I can get a quaternion. But I need a tilt angle along one of the axes, which would not depend on other angles. Can it be found at all?
I did the calculations like this: quaternion - > rotation matrix ->
euler angles and yaw pitch roll

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andryukha, 2016-02-02
@syrov

Here is craternion->matrix, quaternion->Euler
https://en.wikipedia.org/wiki/Conversion_between_q...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question