Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions VesselTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public override object GetSuffix(string suffixName)
if (suffixName == "APOAPSIS") return target.orbit.ApA;
if (suffixName == "PERIAPSIS") return target.orbit.PeA;
if (suffixName == "SENSOR") return new VesselSensors(target);
// airSpeed / (sqrt(gamma 1.4 * (temp at current altitude + zero Kelvin(273.15)) * 287 J/kg K)) gamma being heat exchange ratio of air
if (suffixName == "MACHNUMBER") return (double)target.srf_velocity.magnitude / (Math.Sqrt(1.4 * (FlightGlobals.getExternalTemperature((float)target.altitude, target.mainBody) + 273.15) * 287));

// Is this a resource?
double dblValue;
Expand Down