All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MWRData.h
Go to the documentation of this file.
1 #ifndef _MWRDATA_H
2 #define _MWRDATA_H
3 
4 #include <string.h>
5 namespace sbn{
6 class MWRData
7 {
8  typedef struct swicheader_t {
9  long timesec;
10  long timensec;
11  long gpstime1;
12  long gpstime2;
13  short boosterevent;
14  short mievent;
15  short hz15micnt;
16  long delta1f;
17  short pulsemi;
18  short pulsesc;
19  } swicheader_t;
20 
21  typedef struct mwrpulse_t {
22  short hor[48];
23  short ver[48];
25  } mwrpulse_t;
26 
27  static long flipByte(long data)
28  {
29  return ((data>>16)&0x0000FFFF) | ((data<<16)&0xFFFF0000);
30  }
31 
32  mwrpulse_t getMWRdata(short* data, int nblock) const;
33 
34  public:
35  std::vector< std::vector < int > > unpackMWR(std::string packed_data, std::vector<double> &time_stamp, double timeoffset=0) const;
36 };
37 }
38 
39 #endif /* #ifndef _MWRDATA_H */
struct sbn::MWRData::swicheader_t swicheader_t
struct sbn::MWRData::mwrpulse_t mwrpulse_t
static long flipByte(long data)
Definition: MWRData.h:27
swicheader_t sheader
Definition: MWRData.h:24
mwrpulse_t getMWRdata(short *data, int nblock) const
Definition: MWRData.cpp:45
std::vector< std::vector< int > > unpackMWR(std::string packed_data, std::vector< double > &time_stamp, double timeoffset=0) const
Definition: MWRData.cpp:13