From d1c02208c01e40fc7a803bc33a6d593220604445 Mon Sep 17 00:00:00 2001 From: Starwaster Date: Thu, 21 Mar 2024 12:14:18 -0400 Subject: [PATCH] Update VesselState.cs There's a bug reported #1860 where RCS keeps turning on when unwanted for non-Real Fuels users and requires turning off AutoRCSUllaging. This may be enough to fix it but this could use other sanity checks elsewhere. Also, RCS ullaging should either * Check for Core.Attitude.RCS_auto = true or else don't enable RCS! * Put in code to turn RCS back off when ullaging is completed. --- MechJeb2/VesselState.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MechJeb2/VesselState.cs b/MechJeb2/VesselState.cs index 7e00f2fd0..0d6f94db0 100644 --- a/MechJeb2/VesselState.cs +++ b/MechJeb2/VesselState.cs @@ -1384,7 +1384,8 @@ public class EngineInfo public readonly Vector6 torqueDiffThrottle = new Vector6(); // lowestUllage is always VeryStable without RealFuels installed - public double lowestUllage; + // Don't wait for Update, set it now so we don't invite a race condition. + public double lowestUllage = 1.0; public struct FuelRequirement {