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

added constant:g0, and edited the doc more about G vs G0. #2415

Merged
merged 2 commits into from
Jan 29, 2019

Conversation

Dunbaratu
Copy link
Member

Fixes #2413.
g0 is simpler than G was - g0 actually is in the physics globals.

@Dunbaratu
Copy link
Member Author

Travis build failed because it's using KSP 1.4.1 and it turns out PhysicsGlobals.GravitationalAcceleration was only just recently added for KSP 1.6 and up - I didn't know that. (I suspect SQUAD only started caring about ensuring they were using a standard constant g0 across all their code when they wanted to do dV calculations in KSP 1.6 and those calculations need that g0 because of that weird way ISP measures fuel by Newtons instead of by mass.)

To support backports, I'm going to have to change this implementation into something involving reflection where it tests to see if PhysicsGlobals has a GravitationalAcceleration member first, and if it does not then it falls back to a hardcoded literal instead.

@Dunbaratu Dunbaratu added the Not Ready Author is warning Reveiwer not to merge this PR yet. More edits are expected. label Jan 29, 2019
@erendrake erendrake merged commit 3d8d28b into KSP-KOS:develop Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not Ready Author is warning Reveiwer not to merge this PR yet. More edits are expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants