Changeset 10599 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Jan 31, 2025, 10:30:08 AM (2 months ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/corrfile.cpp
r8204 r10599 35 35 * Created: 12-Feb-2012 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 98 98 while (it.hasNext()) { 99 99 const t_orbCorr& corr = it.next(); 100 _corrIODs[QString(corr._prn.toInternalString().c_str())] = corr._iod; 100 QString corrPrn = QString(corr._prn.toInternalString().c_str()); 101 _corrIODs[corrPrn] = corr._iod; 101 102 } 102 103 emit newOrbCorrections(orbCorrList); -
trunk/BNC/src/rinex/rnxnavfile.cpp
r10587 r10599 303 303 304 304 if (eph) { 305 eph->setType(navType);306 305 _ephs.push_back(eph); 307 306 } … … 321 320 while (itIOD.hasNext()) { 322 321 itIOD.next(); 323 QString prn = itIOD.key();324 unsigned int iod = itIOD.value();322 QString corrPrn = itIOD.key(); 323 unsigned int corrIod = itIOD.value(); 325 324 vector<t_eph*>::iterator it = _ephs.begin(); 326 325 while (it != _ephs.end()) { 327 326 t_eph* eph = *it; 328 327 double dt = eph->TOC() - tt; 329 if (dt < 8*3600.0 && QString(eph->prn().toInternalString().c_str()) == prn && eph->IOD() == iod) { 328 QString ephPrn = QString(eph->prn().toInternalString().c_str()); 329 unsigned int ephIod = eph->IOD(); 330 if (dt < 8*3600.0 && 331 ephPrn == corrPrn && 332 ephIod == corrIod) { 330 333 it = _ephs.erase(it); 331 334 return eph; … … 343 346 t_eph* eph = *it; 344 347 double dt = eph->TOC() - tt; 345 if (dt < 2*3600.0) { 348 char sys = eph->prn().system(); 349 int num = eph->prn().number(); 350 int ssrNavType = t_corrSSR::getSsrNavTypeFlag(sys, num); 351 if (dt < 2*3600.0 && eph->type() == ssrNavType) { 346 352 it = _ephs.erase(it); 347 353 return eph; -
trunk/BNC/src/rinex/rnxobsfile.cpp
r10561 r10599 1224 1224 line = _stream->readLine(); 1225 1225 t_prn prn; prn.set(line.left(3).toLatin1().data()); 1226 char sys = prn.system(); 1227 int num = prn.number(); 1228 int flag = t_corrSSR::getSsrNavTypeFlag(sys, num); 1229 prn.setFlag(flag); 1226 1230 _currEpo.rnxSat[iSat].prn = prn; 1227 char sys = prn.system();1228 1231 for (int iType = 0; iType < _header.nTypes(sys); iType++) { 1229 1232 int pos = 3 + 16*iType; … … 1309 1312 sys = 'G'; 1310 1313 } 1311 int satNum; readInt(line, pos + 1, 2, satNum); 1312 _currEpo.rnxSat[iSat].prn.set(sys, satNum); 1314 int num; readInt(line, pos + 1, 2, num); 1315 int flag = t_corrSSR::getSsrNavTypeFlag(sys, num); 1316 t_prn prn; 1317 prn.set(sys, num, flag); 1318 _currEpo.rnxSat[iSat].prn = prn; 1313 1319 1314 1320 pos += 3; … … 1593 1599 const t_rnxObsFile::t_rnxSat& rnxSat, t_satObs& obs) { 1594 1600 obs._staID = rnxObsFile->markerName().toLatin1().constData(); 1601 obs._time = epo->tt; 1595 1602 obs._prn = rnxSat.prn; 1596 obs._time = epo->tt; 1597 1598 char sys = rnxSat.prn.system(); 1603 1604 char sys = obs._prn.system(); 1605 int num = obs._prn.number(); 1606 int flag = t_corrSSR::getSsrNavTypeFlag(sys, num); 1607 obs._prn.setFlag(flag); 1599 1608 1600 1609 QChar addToL2;
Note:
See TracChangeset
for help on using the changeset viewer.