-
Notifications
You must be signed in to change notification settings - Fork 6
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
Inaccurate atmospheric temperature calculations #3
Comments
The panelsFix2 branch at src/Kopernicus/Components/KopernicusStar.cs recomputes GetAtmoThermalStats for some reason, in the new code from commit 07230f3 "CalculateFlux => CalculateFluxAt" |
Good catch. I'm sure that was done as part of the multistar support for solar panels, but atmospheres really don't need their thermal stats recomputed in this situation, do they? EDIT: That code would be broken in multistar situations anyways, as it only uses one "Sun" vector. I recomend removing lines 283-291 from the present master of KopernicusStar, and testing. They are commented under the heading "// Get Thermal Stats." This should allow the stock game to calculate flux properly. We will still only get atmospheric flux calculations from one star, but honestly, that's not a huge deal right now as long as it's the closest one, and it should be in most instances (isn't that what stock does?). I hope I'm right anyways, Kopernicus is pretty foreign to me. I'll look into it in detail tomorrow. I don't recommend acting on this until I have had time to test. EDIT EDIT: At the end of a long night, I see no reason for that entire 07230f3 commit. I recommend removing it's changes, pending testing of course. |
Don't revert that afterall, it's needed for multistar support. I think I fixed it, but I need a reliable way to test this issue. Is there a test scenario I can setup easily for it? |
Tested and fixed in PR #7 |
Or so I thought, it's still not right. It appears to be applying temps to the vessel component and not the general atmosphere, as confirmed by AeroGUI. Still working on this. |
Shucks. Must be something else in PanelsFix2. |
Unfortunately my proposed PR is not good enough. EC is not functioning correctly at all. I'm working on fixing that. For now, do not merge. |
This fixes issue #3 for good. Should have no consequences either.
This was fixed with last merge and will be included in next release, so closing. |
https://forum.kerbalspaceprogram.com/index.php?/topic/194936-191-kopernicus-continued/&do=findComment&comment=3809504
The text was updated successfully, but these errors were encountered: