GetElements (2)

alrik

Alrik
Joined
Jul 30, 2008
Messages
75
Reaction score
0
Points
0
Location
Madrid
Well I get an array from GetElements (2) but I dont know wich data is each one.
Can anybody help me?
Array
(
[0] => Earth
[1] => 3189748.063778
[2] => 0.997340
[3] => 0.730791
[4] => 2.394652
[5] => 0.223502
[6] => 3.365095
[7] => 0.000000
[8] => 0
[9] => 232485.690414
[10] => 8483.674557
[11] => 6371012.453000
[12] => 3.141593
[13] => 3.141593
[14] => 3.365095
[15] => 3.365095
[16] => 3.141593
[17] => 3181264.389222
[18] => 1792.856604
[19] => 896.428302
[20] => 0.000000
)

Thanks ;)
 
GetElemet (2) populates an ELEMENTS structure and optionally an ORBITPARAM structure as well. These two structures are defined in C:\Orbiter\OrbiterSDK\include\OrbiterAPI.h as shown below:

Code:
typedef struct {    // Orbital elements
 double a;          //     semi-major axis [m]
 double e;          //     eccentricity
 double i;          //     inclination [rad]
 double theta;      //     longitude of ascending node [rad]
 double omegab;     //     longitude of periapsis [rad]
 double L;          //     mean longitude at epoch
} ELEMENTS;
 
typedef struct {    // additional orbital parameters
 double SMi;        //     semi-minor axis
 double PeD;        //     periapsis distance
 double ApD;        //     apoapsis distance
 double MnA;        //     mean anomaly
 double TrA;        //     true anomaly
 double MnL;        //     mean longitude
 double TrL;        //     true longitude
 double EcA;        //     eccentric anomaly
 double Lec;        //     linear eccentricity
 double T;          //     orbit period
 double PeT;        //     time to next periapsis passage
 double ApT;        //     time to next apoapsis passage
} ORBITPARAM;
 
Back
Top