protected void auto_ApA_offset() { if (AutoTimeToApA) { var dEcc = C.AscentEccentricity - (float)VesselOrbit.eccentricity; var rel_dApA = (float)((TargetR - VesselOrbit.ApR) / (TargetR - Body.Radius) - 0.1); TimeToApA.Value = Mathf.Max(TrajectoryCalculator.C.ManeuverOffset * (1 + dEcc + rel_dApA), VSL.Torque.MaxCurrent.TurnTime); TimeToApA.ClampValue(); } }