Skip to content

Use smaller SI prefixes for low thrust engines#365

Merged
siimav merged 3 commits into
KSP-RO:masterfrom
dlesbre:dlesbre/gui-low-thrust-display
Jul 7, 2026
Merged

Use smaller SI prefixes for low thrust engines#365
siimav merged 3 commits into
KSP-RO:masterfrom
dlesbre:dlesbre/gui-low-thrust-display

Conversation

@dlesbre

@dlesbre dlesbre commented May 18, 2026

Copy link
Copy Markdown
Contributor

Small PR to display thrust in N or mN for low thrust engines in the editor EngineConfig window. At the moment the only engines I could find where this crops up are the ion engines:

Screenshot_20260603_172103

I saw ryam suggest this in the RP-1 discord dev-feedback channel and figured I could try my hand at it.

@dlesbre dlesbre marked this pull request as draft May 18, 2026 18:00
@dlesbre dlesbre force-pushed the dlesbre/gui-low-thrust-display branch from 8be4174 to c19a865 Compare June 3, 2026 15:22
@dlesbre dlesbre marked this pull request as ready for review June 3, 2026 15:22
@siimav

siimav commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Perhaps this is better? https://github.com/search?q=org%3AKSP-RO%20printsi&type=code

@dlesbre

dlesbre commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

I'm not so sure. Since most engines have thrust in the kN range I think it makes sense to use that prefix as much as possible, even showing values like 7000 kN or 0.02 kN is still legible. This PR just covers the edge-case where the units are too small to display correctly.

@siimav

siimav commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Then perhaps only switch to the SI method below some number.

@dlesbre

dlesbre commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

I've made the change, using PrintSI if the value is outside the 0.01 kN -- 99,999 kN range

Comment thread Source/Engines/UI/EngineConfigGUI.cs Outdated
@siimav siimav changed the title Engine thrust units Use smaller SI prefixes for low thrust engines Jul 7, 2026
@siimav siimav merged commit b9a657f into KSP-RO:master Jul 7, 2026
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