Jump to content

RadarAltimeter-Value Access


Recommended Posts

Kerbal engineer gives you lots of information on your craft - MechJeb does to, while adding optional autopilot options.

Neither of those display radar altitude info...

This mod has a nice radar altimeter, and if you dont want to use the mod you can decompile the source and see how the radar alt info was accessed.

http://forum.kerbalspaceprogram.com/showthread.php/40730-SteamGauges-Release-Thread

Link to comment
Share on other sites

If you're looking for a radar altimeter display mod, the Bucky's Instruments one is quite good.

If you're looking for the code to calculate it yourself in a plugin, here's what I use:


// vessel.heightFromTerrain will become -1 at high altitudes. The terrain can also be the seabed.
// vessel.altitude is the height above sea level.
if (vessel.heightFromTerrain == -1 || vessel.altitude < vessel.heightFromTerrain)
currentAltitude = (float)vessel.altitude;
else
currentAltitude = vessel.heightFromTerrain;

Link to comment
Share on other sites

Neither of those display radar altitude info...

This mod has a nice radar altimeter, and if you dont want to use the mod you can decompile the source and see how the radar alt info was accessed.

http://forum.kerbalspaceprogram.com/showthread.php/40730-SteamGauges-Release-Thread

Yes they do. If you go to the "Surface" tab on Kerbal Engineer, you can see your altitude over sea level and your height over the current terrain. Not in a fancy altimeter display, but it's the same data.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...