Jump to content

Human Friendly Landing Zone Title


Recommended Posts

I'm using the following chunk of code to try and get the "landing zone" for the active vessel:


var vessel = FlightGlobals.ActiveVessel;
var value = vessel.landedAt;

if (string.IsNullOrEmpty(value))
{
value = ScienceUtil.GetExperimentBiome(vessel.mainBody, vessel.latitude, vessel.longitude);
}

value = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(value.ToLower());

This gives me the current results ... most of the time. In some cases, however, especially the areas around KSC, it gives odd values. For example, on the runway, it gives me "Ksc_runway_09".

There must be a way to get the proper names of all these places, because the experiments use them. For example, you can have "Temperature scan while landed on the Runway" or "Surface sample from the Launchpad".

Does anyone know how to get the proper title of these landing sites?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...