-
Notifications
You must be signed in to change notification settings - Fork 9
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
Static Solar Panel resized to small size results in physics mass different from stated part mass and thus incorrect dV of craft as calculated in MechJeb #18
Comments
Some further testing suggests the minimum mass the solar panel can have for the physics sim is 2kg. |
previous discussion of what seems to be the same issue |
The issue is not present when Principia has been installed |
So what is happening here is that KSP internally forces a minimum mass of 2kg on part RigidBodies. Thus the issue isn't limited to ROSolar and any physical part will trigger the discrepancy between calculated and actual dv. Weirdly though, decreasing |
I don't know how ksp parts are setup, but why can't the Static Panel behave the same way as the ST1 Panel? That one doesn't have this extra mass problem and mechjeb gives the correct dV when using it. The ST1 also don't add mass laterally (like experiments). |
A Static Solar Panel resized to 0.14x0.2m, having an area of 0.028 m^2 and using the 11.2kg/m^2 stated for a TL0, should result in a panel mass of 0.3136kg. Checking the .craft file shows that part mass is saved with a couple extra grams at 0.3360kg, a minor difference: (EDIT: TL0 panels are 12kg/m^2, and their mass is thus actually correct at 0.3360kg.)
A test craft with 8 of these panels has the following stats in the hangar:
However, when firing the R103 SRB from a 200x200km orbit, the resulting 200x1572km orbit does not match MechJeb's expended dV value:
This change in apoapsis shows the craft only achieved 359.8 m/s of dV.
Performing the same experiment with a panelless craft of the same mass does result in the expected orbit and dV expenditure.
This leads me to suspect that there is an issue with the part mass of very small solar panels when in a flight scene, leading to incorrect dV of craft. Strangely, the solar panel part mass of the craft in save of a KCT simulation seems to be correct:
Both craft were created in an up-to-date express install of RO and RP-1.
Solar Panel dV tester nopanel.txt
Solar Panel dV tester.txt
Enlarging the panels' size to instead be 0.5x0.2m, results in a 1.2kg panel. However, the orbit achieved after performing the same test burn as before results in an orbit that is no different, even though the craft should have become heavier.
This suggests there's some issue where the panels somehow have a minimum mass in the physics simulation that is not reflected in their actual part configuration data, resulting in miscalculated dV values and thus failed missions.
The text was updated successfully, but these errors were encountered: