-
Notifications
You must be signed in to change notification settings - Fork 83
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
Finder for sub-satellite point eclipse related events #26
base: develop
Are you sure you want to change the base?
Conversation
final Vector3D psat = s.getPVCoordinates(occulting.getBodyFrame()).getPosition(); | ||
Vector3D psat = null; | ||
if (subSatellitePoint) { | ||
Frame inertialFrame = FramesFactory.getEME2000(); |
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 inertial frame should be extracted from SpacecraftState rather than hard-coded to EME2000.
Otherwise, the s.getPVCoordinates().getPosition() in the following line will be inconsistent.
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.
I fixed it.
Hi, thanks for the PR. |
Could also it be possible to add some unit test for the feature? |
Interesting feature and good first cut at the implementation. I think this makes the eclipse class too complex, it would be better as a separate class. Extracting an abstract super class would make sense since there is significant overlap in the code. Another option would be to use a The |
One method withSubSatellitePoint() was added instead withUmbraSSP and withPenumbraSSP methods. Unit test was added for the method withSubSatellitePoint().
No description provided.