1 |
#ifndef OrbitalInfoStruct_h |
2 |
#define OrbitalInfoStruct_h |
3 |
|
4 |
|
5 |
struct cOrbitalInfo { |
6 |
|
7 |
ULong64_t abstime; //< Absolute Time |
8 |
// EM: added On Board Time and CPU Packet Number |
9 |
ULong64_t obt; //< On Board Time |
10 |
ULong64_t pkt_num; //< CPU packet number |
11 |
|
12 |
// Position |
13 |
Float_t lon; // degree from -180 to 180 |
14 |
Float_t lat; // degree from -90 to 90 |
15 |
Float_t alt; // meters |
16 |
|
17 |
// Magnetic field |
18 |
|
19 |
// components (gauss) |
20 |
Float_t Bnorth; |
21 |
Float_t Beast; |
22 |
Float_t Bdown; |
23 |
|
24 |
// abs value (guass) |
25 |
Float_t Babs; |
26 |
|
27 |
// Minimum along the field line (that is at the magnetic equator) |
28 |
Float_t BB0; |
29 |
|
30 |
// Distance of the magnetic equator in earth radii |
31 |
Float_t L; |
32 |
|
33 |
// Dipolar magnetic coordinates |
34 |
Float_t londip; // degrees from -180 to 180 |
35 |
Float_t latdip; // degrees from -90 to 90 |
36 |
Float_t altdip; // meters |
37 |
|
38 |
// Corrected magnetic coordinates |
39 |
Float_t loncgm; // degrees from -180 to 180 |
40 |
Float_t latcgm; // degrees from -90 to 90 |
41 |
Float_t altcgm; // meters |
42 |
|
43 |
// Corrected B min magnetic coordinates |
44 |
Float_t loncbm; // degrees from -180 to 180 |
45 |
Float_t latcbm; // degrees from -90 to 90 |
46 |
Float_t altcbm; // meters |
47 |
|
48 |
Float_t cutoffsvl; |
49 |
|
50 |
// Quaternions |
51 |
Float_t q0, q1, q2, q3; |
52 |
|
53 |
// Euler angles (nadir reference frame) |
54 |
Float_t theta, phi, etha; |
55 |
|
56 |
// Euler angles (local field reference frame) |
57 |
// Float_t thetamag, phimag, ethamag; |
58 |
Int_t mode; |
59 |
|
60 |
// Useful? |
61 |
// Int_t goodAttitude[5]; |
62 |
|
63 |
void InitcOrbitalInfo(){ |
64 |
abstime = 0; |
65 |
obt = 0; |
66 |
pkt_num = 0; |
67 |
} |
68 |
}; |
69 |
|
70 |
#endif |