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

Perturbed rotation matrix is not perturbed in linearization when small angle is used #1172

Closed
ebranlard opened this issue Jul 7, 2022 · 2 comments

Comments

@ebranlard
Copy link
Contributor

ebranlard commented Jul 7, 2022

Bug description
The Orientation matrix is not perturbed when calling the function PerturbOrientationMatrix, when useSmlAngle is used.

The code hits the following line:

call SmllRotTrans( 'linearization perturbation', angles(1), angles(2), angles(3), OrientationTmp, ErrStat=ErrStat2, ErrMsg=ErrMsg2 )

OrientationTmp should actually be returned

Expected behavior
Return the Orientation matrix directly:

call SmllRotTrans( 'linearization perturbation', angles(1), angles(2), angles(3), Orientation, ErrStat=ErrStat2, ErrMsg=ErrMsg2 )

Impacted areas
The bug was introduced in 8364b53 as part of #1050.
It's mostly affecting dev right now, and only HydroDyn linearization is affected because other modules do not use SmallAngle.

@ebranlard ebranlard self-assigned this Jul 7, 2022
@ebranlard ebranlard changed the title Perturbed rotation matrix is not perturbed in linearization when one angle is provided and small angle is used Perturbed rotation matrix is not perturbed in linearization when small angle is used Jul 7, 2022
@rafmudaf
Copy link
Collaborator

@ebranlard could you confirm that #1173 fixes this issue?

@ebranlard
Copy link
Contributor Author

Yes, it fixes the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants