Changeset 3677 in ntrip
- Timestamp:
- Feb 12, 2012, 11:12:36 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/rnxobsfile.cpp ¶
r3676 r3677 40 40 41 41 #include <iostream> 42 #include <iomanip> 42 43 #include "rnxobsfile.h" 43 44 #include "bncutils.h" … … 170 171 readInt(line, 29, 3, numSat); 171 172 173 _currEpo.satObs.resize(numSat); 174 172 175 // Read Satellite Numbers 173 176 // ---------------------- … … 181 184 pos += 3; 182 185 183 _currEpo. prns <<prn;184 _currEpo.satObs[ prn].ReSize(_header.nTypes());186 _currEpo.satObs[iSat].prn = prn; 187 _currEpo.satObs[iSat].ReSize(_header.nTypes()); 185 188 } 186 189 … … 190 193 line = _stream->readLine(); 191 194 pos = 0; 192 QString prn = _currEpo. prns[iSat];195 QString prn = _currEpo.satObs[iSat].prn; 193 196 for (int iType = 0; iType < _header.nTypes(); iType++) { 194 197 if (iType > 0 && iType % 5 == 0) { … … 196 199 pos = 0; 197 200 } 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 readDbl(line, pos, 14, _currEpo.satObs[iSat][iType]); 202 readInt(line, pos + 14, 1, _currEpo.satObs[iSat].lli); 203 readInt(line, pos + 15, 1, _currEpo.satObs[iSat].snr); 201 204 pos += 16; 202 205 } 203 206 207 cout.setf(ios::fixed); 204 208 cout << "prn: " << prn.toAscii().data() << " " 205 << _currEpo.satObs[ prn][0] << endl;209 << setprecision(3) << _currEpo.satObs[iSat][0] << endl; 206 210 } 207 211 -
TabularUnified trunk/BNC/rnxobsfile.h ¶
r3676 r3677 62 62 class t_satObs : public ColumnVector { 63 63 public: 64 int lli; 65 int snr; 64 QString prn; 65 int lli; 66 int snr; 66 67 }; 67 68 … … 69 70 public: 70 71 void clear() { 71 prns.clear();72 72 satObs.clear(); 73 73 } 74 QStringList prns; 75 QMap<QString, t_satObs> satObs; 74 QVector<t_satObs> satObs; 76 75 }; 77 76
Note:
See TracChangeset
for help on using the changeset viewer.