Skip to content

Implemented a cumulative summation of dV#2185

Open
joal22za wants to merge 2 commits into
MuMech:devfrom
joal22za:dev
Open

Implemented a cumulative summation of dV#2185
joal22za wants to merge 2 commits into
MuMech:devfrom
joal22za:dev

Conversation

@joal22za
Copy link
Copy Markdown

I added two new columns which sums up the previous stages dV in both Vac and Atmo such that the user doesn't need to manually calculate for example stage 8 to 4 which are in my case the sum of dV to get into orbit :)

Feel free to ping me on discord @ merineth
I'm in the KSP-RO discord

Discord_4RwDmctQCT

I added two new columns which sums up the previous stages dV in both Vac and Atmo such that the user doesn't need to manually calculate for example stage 6 to stage 3.
stageHeaderData.Add(StageData.AtmoDeltaV, (showRcs ? "RCS ∆Vmin" : CachedLocalizer.Instance.MechJebInfoItemsStatsColumn10) + SPACING);
stageHeaderData.Add(StageData.VacDeltaV, (showRcs ? "RCS ∆Vmax" : CachedLocalizer.Instance.MechJebInfoItemsStatsColumn11) + SPACING);
stageHeaderData.Add(StageData.AtmoDeltaV, CachedLocalizer.Instance.MechJebInfoItemsStatsColumn10 + SPACING);
stageHeaderData.Add(StageData.VacDeltaV, CachedLocalizer.Instance.MechJebInfoItemsStatsColumn11 + SPACING);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This changes it though so that if you showRcs now you're not getting the correct column heading?

Comment thread MechJeb2/MechJebStageStatsHelper.cs Outdated
stageVisibility[StageData.Time] = showTime;
stageVisibility[StageData.Isp] = showISP;
stageVisibility[StageData.AtmoCumulativeDeltaV] = showAtmoDeltaV && !showRcs;
stageVisibility[StageData.VacCumulativeDeltaV] = showVacDeltaV && !showRcs;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also, I'd probably drop the !showRcs check here, and then inside the Calculate* routines to make them showRcs-aware. I'm not certain how much cumulative DV on RCS will be useful to anyone, but I think KER offers that information, and it means columns aren't disappearing and reappearing with that button.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Resolved in the latest commit

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