Space Engineers

Space Engineers

52 ratings
Planetary compass + coordinates calculator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.423 KB
20 Nov, 2015 @ 12:07pm
1 Change Note ( view )

Subscribe to download
Planetary compass + coordinates calculator

Description
Planetary coordinates and compass tool.

This script will help you to find planet center, your altitude (above center of the planet), latitude and longitude.
Also, it provides you with compass, showing your bearing on planet.

Blueprint with this script:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=558846217

How to use:
Press "1" to start calculation of planet center and fly horizontaly for 5-10 seconds.
Press "2" to stop script
Press "3" to stop planet center recalculation and continue only bearing and planetary coordinates calculation.

You can place this tool on rover, mining ship or satellite.
You need to place these blocks:

//-----User defined vars------
const int Clock=15; // defines how frequantly will your text panel be updated, 1 - 60 rps, 15 - 4 rps, 60 - 1 rps.
const string TimerName= "TimerClock"; // timer block name
const string TPName= "TP"; // text panel name
const string RemConName= "RemCon"; // remote control name

for text panel set font size to 1.3, select "show public text" option
set timer to trigger Programmable block, containing this script

Script arguments for 1, 2, 3 buttons: "Start", "Stop", "Continue".

The only thing, you should keep in mind, script works only in gravity range.
22 Comments
maklakovsb 22 Mar, 2020 @ 6:05am 
I checked two scripts in parallel - the author’s script and mine. Both scripts gave one result with a difference of one meter along the Z axis. The experiment was performed on March 21, 2020.
SpetS 7 Mar, 2019 @ 1:24am 
LCD display coordinates does not work in real time anymore
Fox paws#6758 29 Jan, 2018 @ 11:13am 
будет ли обновление?
Cardboard Overlord 29 Oct, 2017 @ 11:19am 
Thanks for realizing that Keen set the sun spinning in the wrong direction, and making this script point to Y- as north (the actual north in SE according to sun rotation. :)
CodyLabs 4 Sep, 2017 @ 9:12pm 
This is awesome! Thanks for this!
TokMor 23 Dec, 2016 @ 7:34pm 
One other thing I found, it looks like your longitude's axis is backwards from how earth's is defined relative to latitude. This will only affect you if you are trying to calculate the bearing you need to take in order to get from one lat/long coordinate to another (for example using the equation on this page http://www.movable-type.co.uk/scripts/latlong.html ). If you are, then multiply your longitude values by -1 as part of the formula and you'll be good to go.

This is a really awesome script, thank you for contributing it.
TokMor 22 Dec, 2016 @ 6:45pm 
I think on line 133 position 78 you spelled a variable wrong. Changing LaststPos to LastPos seems to boost accuracy dramatically. Please let me know if I've got this wrong though.
icecold951 9 Dec, 2016 @ 2:23pm 
It can't work on a static grid. It has to calibrate via movement in a straight line, then select option 2 and 3.
G43 mai waifu 8 Dec, 2016 @ 9:21pm 
seem don't work on a static grid.
icecold951 25 Jul, 2016 @ 5:22pm 
I've found a bug. It doesn't like having the programmable block named "Programable Block". The game keeps apending a number, upon loading of the game. Can this be fixed with a new block identifier?