10 #define CALIBRATEDHK_H 14 #include "AnitaConventions.h" 15 #include "simpleStructs.h" 19 #define NUM_VOLTAGES 11 22 #define NUM_CURRENTS 7 25 #define NUM_INT_TEMPS 15 28 #define NUM_SBS_TEMPS 3 31 #define NUM_NTU_TEMPS 3 34 #define NUM_EXT_TEMPS 15 41 #define NUM_ATTITUDE 13 44 #define NUM_PRESSURES 2 46 #ifndef NUM_SUNSENSORS 47 #define NUM_SUNSENSORS 4 49 #ifndef NUM_ACCELEROMETERS 50 #define NUM_ACCELEROMETERS 2 69 unsigned char gHdr_verId;
77 Float_t
voltage[NUM_IP320_BOARDS][CHANS_PER_IP320];
78 Float_t
useful[NUM_IP320_BOARDS][CHANS_PER_IP320];
104 Int_t
getFancySS(
int ssInd, Float_t pos[3], Float_t *azimuth,
105 Float_t *elevation, Float_t *relAzimuth);
107 Float_t getSSAzimuth(
int ssInd);
108 Float_t getSSAzimuthAdu5(
int ssInd);
109 Float_t getSSElevation(
int ssInd);
125 #endif //CALIBRATEDHK_H static const char * getAttitudeName(int index)
Return char string name of attitude sensor.
Float_t getVoltage(int index)
Returns voltage (0:10)
Int_t getFancySS(int ssInd, Float_t pos[3], Float_t *azimuth, Float_t *elevation, Float_t *relAzimuth)
Convert sunsensor data to elevation and azimuth.
void getSSMagnitude(int ssInd, Float_t *magnitude, Float_t *magX, Float_t *magY)
Get sunsensor magnitude.
Float_t getExternalTemp(int index)
Returns external temperature in degrees (0:24)
UInt_t payloadTime
Time in unixTime.
Float_t getNeobrickTemp()
Returns the neobrick temperature.
Float_t voltage[3][40]
Array of voltages.
Float_t getNTUTemp(int index)
Returns NTU temperature in degrees (0:3)
static const char * getSBSTempName(int index)
Return char string name of SBS temperature sensor.
static const char * getSSName(int index)
Return string name of sun-sensor.
Float_t getAccelerometer(int acInd, int type)
Returns accelerometer stuff.
Float_t getSSTemp(int ssInd)
Get sunsensor temperature.
UInt_t payloadTimeUs
Sub second time in us.
static const char * getExternalTempName(int index)
Return char string name of external temperature sensor.
Float_t getPower(int index)
Returns power (0:5)
Short_t ntuTemp[3]
The 7 (packed) NTU temperature sensors.
Float_t magY
Magnetometer y direction.
Float_t getRawSunsensor(int ssInd, int type)
Returns raw sunsensor stuff, here type goes x1,x2,y1,y2,T.
Float_t getPressure(int index)
Returns pressure (0:1)
Float_t getInternalTemp(int index)
Returns internal temperature in degrees (0:14)
RawHk – The Raw ANITA Housekeeping.
static const char * getVoltageName(int index)
Return char string name of voltage.
Int_t getSSXRatio(int ssInd, Float_t *xRatio)
Get sunsensor x-ratio.
~CalibratedHk()
Default destructor.
CalibratedHk – The calibrated housekeeping data.
Float_t useful[3][40]
Array of calibrated temperatures, currents, etc.
Float_t magZ
Magnetometer z direction.
static const char * getNTUTempName(int index)
Return char string name of SBS temperature sensor.
Float_t magX
Magnetometer x direction.
Float_t getCurrent(int index)
Returns current (0:11)
Float_t getSBSTemp(int index)
Returns SBS temperature in degrees (0:3)
Short_t sbsTemp[3]
The three onboard temperature sensors.
Int_t run
Assigned offline.
Float_t getAttitude(int index)
Returns attitude (0:12)
static const char * getPowerName(int index)
Return char string name of power.
Int_t getSSYRatio(int ssInd, Float_t *yRatio)
Get sunsensor y-ratio.
static const char * getInternalTempName(int index)
Return char string name of internal temperature sensor.
CalibratedHk()
Default constructor.
Float_t getNeobrickPres()
Returns the neobrick pressure.
static const char * getCurrentName(int index)
Return char string name of current.
UInt_t realTime
Time in unixTime.