dkavolis / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
77 stars 32 forks source link

Analytical Temperature = 3K When Loading Vessels (0.16 Regression) #107

Closed DRVeyl closed 3 years ago

DRVeyl commented 3 years ago

https://github.com/dkavolis/Ferram-Aerospace-Research/commit/e1fbd491eaa3cd517e4f900f7224c9ee4f89580a causes the drag cubes to be reset to 0 when the FARAeroPartModule exists but voxelization has not been completed yet. These drag cube values are used by KSP analytic-mode thermal code during/immediately after vessel load to determine the sun-exposed and body-exposed areas. Since they are 0, the calculated thermal flux from the sun is 0, and the predicted temperature is the minimum.

This (and other portions of the ModularFlightIntegratorRegisterer needs to check FARAPI.VesselVoxelizationCompletedEver(Vessel v) before being used instead of the stock drag cube fallback.