-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
MNT: Encapsulate quaternion conversions #537
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #537 +/- ##
===========================================
+ Coverage 72.32% 72.34% +0.01%
===========================================
Files 56 56
Lines 9389 9393 +4
===========================================
+ Hits 6791 6795 +4
Misses 2598 2598 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation helps, but I have a minor issue with the naming schema of the created functions.
You certainly have more experience on quaternions than I, so I would like to hear your opinion:
-
Except the
precession
one, the names end up with the angle naming convention used for RocketPy (phi
,theta
). -
I know this is a common angle convention, but I am not sure of it is universal. So I believe it would be better to name them after their "physical angle", such as
precession
andnutation
.
You have a good point. Can you please re-review it? |
Pull request type
Checklist
black rocketpy/ tests/
) has passed locallypytest --runslow
) have passed locallyCHANGELOG.md
has been updated (if relevant)Current behavior
We take quaternions (euler parameters) and calculate euler angles inside the flight class, but this code cannot be reused in other applications.
New behavior
Breaking change
Additional information
This is going to be quite useful for the
rocketpy.simulation.FlightDataImporter
class.