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

Expose propellantStability directly without rounding #331

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

lamont-granquist
Copy link
Contributor

Introduces GetPropellantProbability/GetUllageProbability to get the rounded version that forces veryStable to 100% (couldn't think of a better name, even though this isn't really the proper probability since the exponent isn't applied).

This lets MJ 'see' values between 0.996 and 1.0

Didn't get this compiling yet because of all the RF deps and ROUtils in particular so be a little careful before merging.

Introduces GetPropellantProbability/GetUllageProbability to get
the rounded version that forces veryStable to 100% (couldn't think
of a better name, even though this isn't really the proper probability
since the exponent isn't applied).

This lets MJ 'see' values between 0.996 and 1.0

Didn't get this compiling yet because of all the RF deps and ROUtils in
particular so be a little careful before merging.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Source/Engines/ModuleEnginesRF.cs Show resolved Hide resolved
Source/Engines/ModuleEnginesRF.cs Outdated Show resolved Hide resolved
@NathanKell
Copy link
Member

While we're waiting on the CKAN folks to merge the PR to put ROUtils on netkan, it does exist on github if you want to grab it (KSP-RO/ROUtils). But the code certainly looks like it'd build. :D

And per the review I'd just push the Pow down into the function so it's not a lie.

@NathanKell
Copy link
Member

(Thanks for doing the debugging and PR work btw! 👍 )

@lamont-granquist
Copy link
Contributor Author

Okay I made GetPropellantProbability() really be the probability. This change now actually updates the PAW to be the probability rather than stability--but that feels like the right thing to expose to the ultimate end user?

Also downloaded ROUtils release and validated it compiles, but now haven't tested anything.

@NathanKell NathanKell merged commit 7dd97e7 into KSP-RO:master Nov 15, 2023
3 checks passed
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