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

feat: make the propagator maintain the frame and size of the input State #246

Merged
merged 6 commits into from
Oct 17, 2023

Conversation

kyle-cochran
Copy link
Contributor

Currently, the propagator converts any input state into the correct dimensions and Frame to propagate.

This is fine, but get's confusing when you pass in a higher dimensional State in ITRF and get back a lower dimensional one in GCRF.

This MR introduces a layer that transforms the input/output State to/from the State that the numerical solver uses using the new StateBuilder class.

Copy link
Contributor

@vishwa2710 vishwa2710 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Mostly nits, 1 question on tolerance.
Can you run make format once I feel like some of the formatting changed and it didn't change for me locally so it feels kinda strange O_o

Co-authored-by: Vishwa Shah <vishwa2710@gmail.com>
Copy link
Contributor

@phc1990 phc1990 left a comment

Choose a reason for hiding this comment

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

Looks great : )
Left a comment on StateBuilder creation safety.

Copy link
Contributor

@phc1990 phc1990 left a comment

Choose a reason for hiding this comment

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

LGTM, just blocked by pipeline atm.

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #246 (c0fc095) into main (8dc35fa) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
+ Coverage   83.64%   83.67%   +0.02%     
==========================================
  Files          66       66              
  Lines        5639     5647       +8     
==========================================
+ Hits         4717     4725       +8     
  Misses        922      922              
Files Coverage Δ
...trodynamics/Trajectory/Orbit/Models/Propagated.cpp 85.18% <100.00%> (+0.09%) ⬆️
...aceToolkit/Astrodynamics/Trajectory/Propagator.cpp 95.00% <100.00%> (+0.26%) ⬆️

@kyle-cochran kyle-cochran merged commit 7c1420a into main Oct 17, 2023
@kyle-cochran kyle-cochran deleted the users/kyle/propagator-respect-input-state branch October 17, 2023 22:10
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.

3 participants