1 |
#ifndef OrbitalInfoStruct_h |
#ifndef OrbitalInfoStruct_h |
2 |
#define OrbitalInfoStruct_h |
#define OrbitalInfoStruct_h |
3 |
|
|
4 |
|
|
5 |
struct cOrbitalInfo { |
struct cOrbitalInfo { |
6 |
|
|
7 |
ULong64_t abstime; //< Absolute Time |
ULong64_t abstime; //< Absolute Time |
9 |
ULong64_t obt; //< On Board Time |
ULong64_t obt; //< On Board Time |
10 |
ULong64_t pkt_num; //< CPU packet number |
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 |
|
//Earth dipole moment |
28 |
|
|
29 |
|
Float_t M; |
30 |
|
|
31 |
|
// Minimum along the field line (that is at the magnetic equator) |
32 |
|
Float_t BB0; |
33 |
|
|
34 |
|
// Distance of the magnetic equator in earth radii |
35 |
|
Float_t L; |
36 |
|
|
37 |
|
// Dipolar magnetic coordinates |
38 |
|
Float_t londip; // degrees from -180 to 180 |
39 |
|
Float_t latdip; // degrees from -90 to 90 |
40 |
|
Float_t altdip; // meters |
41 |
|
|
42 |
|
// Corrected magnetic coordinates |
43 |
|
Float_t loncgm; // degrees from -180 to 180 |
44 |
|
Float_t latcgm; // degrees from -90 to 90 |
45 |
|
Float_t altcgm; // meters |
46 |
|
|
47 |
|
// Corrected B min magnetic coordinates |
48 |
|
Float_t loncbm; // degrees from -180 to 180 |
49 |
|
Float_t latcbm; // degrees from -90 to 90 |
50 |
|
Float_t altcbm; // meters |
51 |
|
|
52 |
|
Float_t cutoffsvl; |
53 |
|
|
54 |
|
// Quaternions |
55 |
|
Float_t q0, q1, q2, q3; |
56 |
|
|
57 |
|
// Euler angles (nadir reference frame) |
58 |
|
Float_t theta, phi, etha; |
59 |
|
|
60 |
|
// Euler angles (local field reference frame) |
61 |
|
// Float_t thetamag, phimag, ethamag; |
62 |
|
Int_t mode; |
63 |
|
|
64 |
|
// Useful? |
65 |
|
// Int_t goodAttitude[5]; |
66 |
|
|
67 |
void InitcOrbitalInfo(){ |
void InitcOrbitalInfo(){ |
68 |
abstime = 0; |
abstime = 0; |
69 |
obt = 0; |
obt = 0; |