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

Split EllipticalOrbit and HyperbolicOrbit classes #1937

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

ajtribick
Copy link
Collaborator

@ajtribick ajtribick commented Oct 15, 2023

  • Store semimajor axis instead of pericenterDistance in EllipticalOrbit
  • Store semiminor axis to avoid some sqrt calls during evaluation
  • Support zero and negative mean anomaly in hyperbolic orbits
  • Fix velocity calculation for hyperbolic orbits
  • Consolidate state vector to orbital elements calculations
  • Extend orbital elements calculation to support hyperbolic orbits
  • Add tests for orbital elements calculations
  • Fix hyperbolic orbital elements display in Qt info panel

Hyperbolic orbits now have the orbit line plotted (currently out to 1000 au or twice the pericenter distance, whichever is further). The eccentric anomaly calculation no longer attempts to take the logarithm of negative mean anomaly angles.

@ajtribick ajtribick force-pushed the fix-hyperbolic branch 4 times, most recently from ab08736 to 73ce5c0 Compare October 16, 2023 21:43
@ajtribick ajtribick marked this pull request as ready for review October 16, 2023 22:23
@ajtribick ajtribick requested a review from a team October 16, 2023 22:23
- Store semimajor axis instead of pericenterDistance in EllipticalOrbit
- Store semiminor axis to avoid some sqrt calls during evaluation
- Support zero and negative mean anomaly in hyperbolic orbits
- Fix velocity calculation for hyperbolic orbits
- Consolidate state vector to orbital elements calculations
- Extend orbital elements calculation to support hyperbolic orbits
- Add tests for orbital elements calculations
- Fix hyperbolic orbital elements display in Qt info panel
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.5% 0.5% Duplication

@ajtribick ajtribick merged commit b5242e1 into CelestiaProject:master Oct 17, 2023
11 checks passed
@ajtribick ajtribick deleted the fix-hyperbolic branch October 17, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants