How to use Lua to get real time information of spaceship

xjflcf520

Member
Joined
Feb 26, 2021
Messages
61
Reaction score
5
Points
23
Location
Chana
I want to use Lua to display the longitude, latitude and altitude information of the spaceship in real time on the screen, but get_ Globalpos and get_ Equpos gets neither longitude nor latitude
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
7,641
Reaction score
803
Points
188
Location
Toulouse
They do, but probably not in a format you expect.

Raw data (for angles) in Orbiter is always expressed in RAD (Radians), and everything related to orientation and relative positions will very probably involve vectors and rotation matrixes at some point. Be sure to read and understand the doc, there's a lot of stuff explained in Orbiter.pdf and the SDK doc.
 

4throck

Enthusiast !
Joined
Jun 19, 2008
Messages
3,217
Reaction score
477
Points
123
Location
Lisbon
Website
orbiterspaceport.blogspot.com
You asked the same thing here:

Check my comments there. Probably you want to convert radians to degrees.
 
Top