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