Changeset 6137 in ntrip for trunk/BNC/src/GPSDecoder.h
- Timestamp:
- Sep 13, 2014, 12:19:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/GPSDecoder.h
r5884 r6137 34 34 #include "bncconst.h" 35 35 #include "bnctime.h" 36 37 extern "C" { 38 #include "rtcm3torinex.h" 39 } 36 #include "satObs.h" 40 37 41 38 class bncRinex; 42 43 class t_obs {44 public:45 t_obs() {46 StatID[0] = '\x0';47 satSys = 'G';48 satNum = 0;49 slotNum = 0;50 GPSWeek = 0;51 GPSWeeks = 0.0;52 _dataflags = 0;53 _dataflags2 = 0;54 for (int ie = 0; ie < GNSSENTRY_NUMBER; ie++) {55 _measdata[ie] = 0.0;56 }57 slip_cnt_L1 = -1;58 slip_cnt_L2 = -1;59 slip_cnt_L5 = -1;60 snrL1 = 0;61 snrL2 = 0;62 snrL5 = 0;63 slipL1 = false;64 slipL2 = false;65 slipL5 = false;66 }67 68 ~t_obs() {}69 70 double measdata(QString rnxStr, float rnxVer) const;71 void setMeasdata(QString rnxStr, float rnxVer, double value);72 73 char StatID[20+1]; // Station ID74 char satSys; // Satellite System ('G' or 'R')75 int satNum; // Satellite Number (PRN for GPS NAVSTAR)76 int slotNum; // Slot Number (for Glonass)77 int GPSWeek; // Week of GPS-Time78 double GPSWeeks; // Second of Week (GPS-Time)79 80 int slip_cnt_L1; // L1 cumulative loss of continuity indicator (negative value = undefined)81 int slip_cnt_L2; // L2 cumulative loss of continuity indicator (negative value = undefined)82 int slip_cnt_L5; // L5 cumulative loss of continuity indicator (negative value = undefined)83 84 int snrL1; // signal-to-noise ratio mapped to <1,9>85 int snrL2; // s = int(floor(SNR/6)); if (s > 9) s = 9; if (s < 1) s = 1;86 int snrL5;87 88 bool slipL1;89 bool slipL2;90 bool slipL5;91 92 double _measdata[GNSSENTRY_NUMBER]; // data fields */93 unsigned long long _dataflags; // GNSSDF_xxx */94 unsigned int _dataflags2; // GNSSDF2_xxx */95 QString _codetype[GNSSENTRY_NUMBER];96 97 QString rnxStr(int iEntry) const;98 99 private:100 int iEntry(QString rnxStr, float rnxVers, bool cmode=false) const;101 };102 39 103 40 class GPSDecoder { … … 116 53 const QByteArray& nmea, const QByteArray& ntripVersion); 117 54 118 void dumpRinexEpoch(const t_ obs& obs, const QByteArray& format);55 void dumpRinexEpoch(const t_satObs& obs, const QByteArray& format); 119 56 120 57 void setRinexReconnectFlag(bool flag); … … 139 76 }; 140 77 141 QList<t_ obs>_obsList;78 QList<t_satObs> _obsList; 142 79 QList<int> _typeList; // RTCM message types 143 80 QStringList _antType; // RTCM antenna descriptor
Note:
See TracChangeset
for help on using the changeset viewer.