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

Quaternion Euler/Euler123 issues #5

Open
mungewell opened this issue Nov 13, 2018 · 1 comment
Open

Quaternion Euler/Euler123 issues #5

mungewell opened this issue Nov 13, 2018 · 1 comment

Comments

@mungewell
Copy link

Hi,
Looks like there is a coding error with Euler123 output, setting different initiation and outputing without updating AHRS gives invalid data

refq = Quaternion(1,0,0,0) # look front
Euler:  (0.0, 0.0, 0.0)
Eu123:  (0.0, 0.0, 0.0)
Quat:   [1 0 0 0]

refq = Quaternion.from_angle_axis(np.pi/2,0,0,1) # look front, sideways
Euler:  (0, 1.5707963267948966, 0.0)
Eu123:  (-0.0, 0.0, 1.5707963267948963)
Quat:   [ 0.70710678  0.          0.          0.70710678]

refq = Quaternion.from_angle_axis(np.pi/2,1,0,0) # look up
Euler:  (1.5707963267948963, 0.0, 0.0)
Eu123:  (1.5707963267948963, 1.5707963267948966, -0.0)
Quat:   [ 0.70710678  0.70710678  0.          0.        ]

refq = Quaternion.from_angle_axis(np.pi/2,0,1,0) # look right
Euler:  (0.0, 0.0, 1.5707963267948963)
Eu123:  (-0.0, 0.0, -0.0)
Quat:   [ 0.70710678  0.          0.70710678  0.        ]

Also discussed here:
RiftCat/vridge-api#17

@hippoly-bot
Copy link

I agree, still not solved..

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

2 participants