Skip to content

[BugFix] Error in Quaternion_to_DCM calculation#3355

Merged
andrew-platt merged 1 commit into
OpenFAST:rc-5.0.1from
andrew-platt:b/Quat_to_DCM_typo
Jun 3, 2026
Merged

[BugFix] Error in Quaternion_to_DCM calculation#3355
andrew-platt merged 1 commit into
OpenFAST:rc-5.0.1from
andrew-platt:b/Quat_to_DCM_typo

Conversation

@andrew-platt
Copy link
Copy Markdown
Collaborator

Ready to merge

Feature or improvement description

Part of the third term in the calculation was incorrect.

Related issue, if one exists
This was reported by Alban.Leroyer on the forum here: https://forums.nlr.gov/t/beamdyn-questions/9518/3

Impacted areas of the software
This routine has not been used since it was added in 2014, so no results will be affected.

Generative AI usage
Calculation checked by: Google Gemini gemini@google.com

Test results, if applicable
None

The third term in the calculation was incorrect.  This routine has not been used since it was added in 2014, so no results will be affected.

This was reported on the forum here: https://forums.nlr.gov/t/beamdyn-questions/9518/3
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes an incorrect term in the quaternion-to-direction-cosine-matrix (DCM) conversion that previously squared the wrong quaternion component.

Changes:

  • Corrected the q3q3 term to use q%v(3) instead of q%v(2) in Quaternion_to_DCM.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrew-platt andrew-platt merged commit 2b138a1 into OpenFAST:rc-5.0.1 Jun 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants