diff --git a/VesselTarget.cs b/VesselTarget.cs index 40d8f68..73eb2f1 100644 --- a/VesselTarget.cs +++ b/VesselTarget.cs @@ -96,7 +96,8 @@ public override object GetSuffix(string suffixName) if (suffixName == "MASS") return target.GetTotalMass(); if (suffixName == "VERTICALSPEED") return target.verticalSpeed; if (suffixName == "SURFACESPEED") return target.horizontalSrfSpeed; - if (suffixName == "AIRSPEED") return (target.orbit.GetVel() - FlightGlobals.currentMainBody.getRFrmVel(target.GetWorldPos3D())).magnitude; //the velocity of the vessel relative to the air); + if (suffixName == "AIRSPEED") return (double)(target.srf_velocity).magnitude; //the velocity of the vessel relative to the air); + if (suffixName == "EAIRSPEED") return (double)(target.srf_velocity * Math.Sqrt((target.atmDensity / FlightGlobals.getAtmDensity(FlightGlobals.getStaticPressure(0, FlightGlobals.currentMainBody))))).magnitude; if (suffixName == "VESSELNAME") return target.vesselName; if (suffixName == "ALTITUDE") return target.altitude; if (suffixName == "APOAPSIS") return target.orbit.ApA;