GpsdStart.cxx
1 
9 #include "GpsdStart.h"
10 #include "AnitaPacketUtil.h"
11 #include <iostream>
12 #include <fstream>
13 #include <cstring>
14 
15 ClassImp(GpsdStart);
16 
18 {
19  //Default Constructor
20 }
21 
23  //Default Destructor
24 }
25 
26 
27 GpsdStart::GpsdStart(Int_t trun, Int_t trealTime, GpsdStartStruct_t *startPtr)
28 {
29  simplePacketCheck(&(startPtr->gHdr),PACKET_GPSD_START);
30  run=trun;
31  realTime=trealTime;
32  payloadTime=startPtr->unixTime;
33  memcpy(ackCount,startPtr->ackCount,sizeof(UChar_t)*3);
34  memcpy(nakCount,startPtr->nakCount,sizeof(UChar_t)*3);
35  rioBitMask=startPtr->rioBitMask;
36  tstBitMask=startPtr->tstBitMask;
37 }
38 
Int_t run
Run number asssigned offline.
Definition: GpsdStart.h:31
UChar_t rioBitMask
RIO Bit mask.
Definition: GpsdStart.h:44
GpsdStart()
Default constructor.
Definition: GpsdStart.cxx:17
Gpsd Start Block – Telemetered.
UChar_t tstBitMask
tstBitMask
Definition: GpsdStart.h:56
GpsdStart – The start up packet for GPSd.
Definition: GpsdStart.h:23
~GpsdStart()
Destructor.
Definition: GpsdStart.cxx:22
UChar_t nakCount[3]
Definition: GpsdStart.h:35
UChar_t ackCount[3]
Number of acknowledge messages from each GPS.
Definition: GpsdStart.h:34
unsigned char ackCount[3]
Number of acknowledge messages from each GPS.
UInt_t payloadTime
Time in unixTime.
Definition: GpsdStart.h:33
UInt_t realTime
Time in unixTime.
Definition: GpsdStart.h:32
GpsdStartStruct_t – Yes.
unsigned char nakCount[3]
Number of NAK messages from each GPS.
int simplePacketCheck(GenericHeader_t *gHdr, PacketCode_t code)
simplePacketCheck – utility function