Changeset 3676 in ntrip
- Timestamp:
- Feb 12, 2012, 11:03:46 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rnxobsfile.cpp
r3675 r3676 131 131 //////////////////////////////////////////////////////////////////////////// 132 132 const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpoch() { 133 134 _currEpo.clear(); 135 133 136 if (version() < 3.0) { 134 137 return nextEpochV2(); … … 167 170 readInt(line, 29, 3, numSat); 168 171 172 // Read Satellite Numbers 173 // ---------------------- 169 174 int pos = 32; 170 175 for (int iSat = 0; iSat < numSat; iSat++) { … … 174 179 } 175 180 QString prn = line.mid(pos, 3); 176 177 cout << "prn = " << prn.toAscii().data() << endl;178 181 pos += 3; 182 183 _currEpo.prns << prn; 184 _currEpo.satObs[prn].ReSize(_header.nTypes()); 185 } 186 187 // Read Observation Records 188 // ------------------------ 189 for (int iSat = 0; iSat < numSat; iSat++) { 190 line = _stream->readLine(); 191 pos = 0; 192 QString prn = _currEpo.prns[iSat]; 193 for (int iType = 0; iType < _header.nTypes(); iType++) { 194 if (iType > 0 && iType % 5 == 0) { 195 line = _stream->readLine(); 196 pos = 0; 197 } 198 readDbl(line, pos, 14, _currEpo.satObs[prn][iType]); 199 readInt(line, pos + 14, 1, _currEpo.satObs[prn].lli); 200 readInt(line, pos + 15, 1, _currEpo.satObs[prn].snr); 201 pos += 16; 202 } 203 204 cout << "prn: " << prn.toAscii().data() << " " 205 << _currEpo.satObs[prn][0] << endl; 179 206 } 180 207 -
trunk/BNC/rnxobsfile.h
r3675 r3676 60 60 ~t_rnxObsFile(); 61 61 62 class t_satObs : public ColumnVector { 63 public: 64 int lli; 65 int snr; 66 }; 67 62 68 class t_epo { 63 69 public: 64 QMap<QString, ColumnVector> satObs; 70 void clear() { 71 prns.clear(); 72 satObs.clear(); 73 } 74 QStringList prns; 75 QMap<QString, t_satObs> satObs; 65 76 }; 66 77
Note:
See TracChangeset
for help on using the changeset viewer.