-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add coord_system kwarg to get/apply_sun_pitch_yaw and change default sign #37
Conversation
We still don't have much data to line up. With regard to a "positive yaw bias of 0.025 deg/s for 30 minutes", I thought maybe a positive bias would move us in the negative yaw direction. But I guess the sign convention could be the "bias that makes it go positive" is positive? |
I think the language is now unambiguous and clear. There is no ambiguity in what a "positive" number is, and so the "positive yaw bias" refers to the value of +0.025 deg/s that is used as input when creating command loads from an RTS. I specifically added this text to both of the docstrings to remind our future selves. |
I'm not sure what that means, but with regards to confirming a sign convention you only need one case. |
Regarding "with regards to confirming a sign convention you only need one case." sure, I just hadn't been looped in on this case. It sounds like you have the convention from the RTS which is fine. I also wasn't sure what you plotted for |
We'll need an update to sparkles test_find_er_catalog to go with this. |
I added a link to the notebook I used to make the plot in the description and here. |
For reference, the yaw bias RTS is named A_TIMED_YAWBIAS.RTS. This appears in Slack in #anomaly_response_recovery along with "positive yaw bias of 0.025 deg for 30 mins". |
Description
The current definition of yaw about the sun line matches ORviewer, but this does not match the engineering convention where +yaw is in the same sense as spacecraft body yaw.
The new default matches the engineering sense: it goes from 0 to 360, and has zero be defined as the ECI z-axis if the Sun is at exactly RA = Dec = 0.
This PR adds a keyword argument coord_system which can take the values "spacecraft" or "ORviewer", where "spacecraft" is the default.
Fixes #30
Interface impacts
Changes the sense of the
yaw
parameter. Tests for sparkles need update (sot/sparkles#206).Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
Plotted the
yaw
value around the 2024:036 NSM yaw bias maneuver using https://gist.github.com/taldcroft/1caaaa0fcddd15e56a51126c869d04e3: