question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quaternion transformation to Roll-Pitch-Yaw angles

See original GitHub issue

When you see the gyroscope integration, you can see that the Y-axis spins 1 negative turn then 1 positive turn. When you see the estimated and reference orientation, the Yaw simply doesn’t follow that. I agree reference Yaw and reconstructed Yaw are similar because their quaternions are very very close. the problem isn’t about ±2pi. The problem comes that the to_angles()conversion doesn’t get you the real movement.

_Originally posted by @anisghaoui in https://github.com/Mayitzin/ahrs/discussions/20#discussioncomment-371173_

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
tt7533commented, Jun 6, 2021

Taking code sample from the documentation

attitude = ahrs.filters.Madgwick(acc=acc_data, gyr=gyro_data)
attitude.Q

How to convert from quaternion into yaw/pitch/roll angles?

1reaction
aayushsinglacommented, May 4, 2021

No, I switched to a different approach due to the approaching deadlines. This is still unsolved.

do we have any update on this weirdness?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extracting Yaw from a Quaternion - Stack Overflow
The reason is that 'yaw' is typically defined as rotation around the world's 'up' axis. But pitch and roll are defined relative to...
Read more >
Conversion between quaternions and Euler angles - Wikipedia
Spatial rotations in three dimensions can be parametrized using both Euler angles and unit ... Quaternion ToQuaternion(double roll, double pitch, double yaw) //...
Read more >
finding pitch/roll/yaw from Quaternions - Unity Answers
I'm using YEI 3-Space Sensor which gives me x,y,z,w Quaternions. Converting that to Euler angles is done by assigning Quaternions to an ...
Read more >
How to convert Euler angles to Quaternions and get the same ...
The formula seems to have been derived this way: First, roll around the world x axis. The quaternion for this is qx,α=cosα2+(sinα2)i.
Read more >
1 Quaternions and Rotations - University of Southern California
Euler angles. – roll, pitch, yaw. – no redundancy (good). – gimbal lock singularities. • Quaternions. – generally considered the “best” representation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found