Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented May 4, 2023

An issue came up in a TEAMER award that uses two cables with spherical joints on all ends. The device motion causes the spherical joints to continuous rotate, causing an increasingly large angular position. This should be allowed to happen with a spherical joint, but our current quaternion2EulXYZ function will break if the quaternion value becomes too large.

This PR normalizes the quaternion of any angular rotation in Simulink so that it can be robustly converted to Euler angles.

@akeeste akeeste requested a review from dav-og May 4, 2023 16:58
@akeeste akeeste added Constraint Class Constraint Class (constraintClass.m) Library updates to the WEC-Sim Library and removed Library updates to the WEC-Sim Library labels May 4, 2023
@akeeste
Copy link
Contributor Author

akeeste commented May 4, 2023

@dav-og I believe you've worked with the quaternion convention before. Will this normalization have any unexpected consequences?

@dav-og
Copy link
Contributor

dav-og commented May 10, 2023

@dav-og I believe you've worked with the quaternion convention before. Will this normalization have any unexpected consequences?

Not to my knowledge 👍

@dav-og dav-og merged commit 5663b82 into WEC-Sim:dev May 10, 2023
@akeeste akeeste deleted the quaternion_fix branch June 2, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Constraint Class Constraint Class (constraintClass.m)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants