10 #include "AnitaPacketUtil.h" 35 memcpy(
ntuLabel,monPtr->diskInfo.ntuLabel,
sizeof(Char_t)*12);
36 memcpy(
otherLabel,monPtr->diskInfo.otherLabel,
sizeof(Char_t)*12);
37 memcpy(
usbLabel,monPtr->diskInfo.usbLabel,
sizeof(Char_t)*12);
40 memcpy(
utime,monPtr->procInfo.utime,
sizeof(UInt_t)*NUM_PROCESSES);
41 memcpy(
stime,monPtr->procInfo.stime,
sizeof(UInt_t)*NUM_PROCESSES);
42 memcpy(
vsize,monPtr->procInfo.vsize,
sizeof(UInt_t)*NUM_PROCESSES);
49 const char *diskNames[NUM_DISK_SPACES]={
"Ramdisk",
"Var",
"Home",
"Root",
"Helium1",
"Helium2",
usbLabel,
ntuLabel};
50 if(driveInd<0 || driveInd>7)
52 return diskNames[driveInd];
57 int diskMax[NUM_DISK_SPACES]={4000,3000,4000,8000,8000000,8000000,256000,4000000};
58 if(driveInd<0 || driveInd>7)
60 return diskMax[driveInd];
65 if(driveInd<0 || driveInd>7)
73 int multiplier[NUM_DISK_SPACES]={1,1,1,1,128,128,4,64};
74 if(driveInd<0 || driveInd>7)
76 return (
diskSpace[driveInd]*multiplier[driveInd]);
81 const char *telemNames[21]=
82 {
"LosCmd",
"SipCmd",
"Monitor",
"Header",
"Acromag",
83 "Adu5aSat",
"Adu5bSat",
"G12Sat",
"Adu5aPat",
"Adu5bPat",
"G12Pos",
84 "Adu5aVtg",
"Adu5bVtg",
"G12Gga",
"Adu5aGga",
"Adu5bGga",
"SurfHk",
85 "TurfHk",
"Other",
"Pedestal",
"Request"};
86 if(hkInd<0 || hkInd>20)
88 return telemNames[hkInd];
94 const char *procName[16]=
95 {
"Acqd",
"Archived",
"Calibd",
"Cmdd",
"Eventd",
"GPSd",
"Hkd",
"LOSd",
96 "Prioritizerd",
"SIPd",
"Monitord",
"Playbackd",
"Logwatchd",
"Neobrickd",
98 if(procInd<0 || procInd>15)
100 return procName[procInd];
Char_t otherLabel[12]
Label of the currently mounted other drive.
const char * getProcName(int procInd)
Returns process name.
int getDriveCapacity(int driveInd)
Returns drive capacity by index.
const char * getHkQueueName(int hkInd)
Returns Hk Queue name.
UInt_t vsize[20]
The memory used by the flight software processes.
UInt_t utime[20]
The user space CPU time used by the flight software processes.
unsigned short eventLinks[10]
10 Priorities
float getDiskSpacePercentage(int driveInd)
Returns disk percentage by index.
Char_t ntuLabel[12]
Label of the currently mounted ntu drive.
int getDiskSpaceAvailable(int driveInd)
Returns disk space available by index.
Monitor Block – Telemetered.
const char * getDriveName(int driveInd)
Returns drive name by index.
UShort_t hkLinks[21]
The number of links in the housekeeping queues.
unsigned short hkLinks[21]
Needs to be finalised once everything is settled.
MonitorHk()
Default constructor.
Int_t run
Run number assigned offline.
UInt_t realTime
Time in unixTime.
unsigned short diskSpace[8]
In units of 10 MegaBytes.
UInt_t payloadTime
Time in unixTime.
MonitorHk – The CPU Monitor data.
UShort_t diskSpace[8]
The free space left on the disks in units of 10 Megabytes.
UInt_t stime[20]
The system space CPU time used by the flight software processes.
Char_t usbLabel[12]
Defunct.
int simplePacketCheck(GenericHeader_t *gHdr, PacketCode_t code)
simplePacketCheck – utility function