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

The optimizer holds a copy of the flight plan so it must be recreated whenever burns get added/deleted. #3790

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Nov 1, 2023

That's in addition to being recreated when the optimization parameters change.

Fixes parts of #3789.

Func<int, BurnEditor> get_burn_at_index) {
adapter_ = adapter;
vessel_ = vessel;
initial_time_ = initial_time;
this.index = index;
Copy link
Member

Choose a reason for hiding this comment

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

Where is this set now?

Copy link
Member Author

Choose a reason for hiding this comment

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

As discussed offline, every construction of a BurnEditor in the flight planner should be followed by a call to UpdateAfterBurnEditorInsertionDeletion which sets the index. This a more systematic API than setting the index sometimes at construction and sometimes later.

@eggrobin eggrobin added the LGTM label Nov 4, 2023
@pleroy pleroy merged commit 53cfea5 into mockingbirdnest:Wilkinson Nov 4, 2023
@pleroy pleroy added the verified The fix has been verified in game. label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM verified The fix has been verified in game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants