Changeset 2687 in ntrip
- Timestamp:
- Nov 13, 2010, 3:23:27 PM (14 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r2686 r2687 300 300 obs->_o.GPSWeeks = gnssData.timeofweek / 1000.0; 301 301 302 QString prn = QString("%1%2").arg(obs->_o.satSys) 303 .arg(obs->_o.satNum, 2, 10, QChar('0')); 304 305 // Handle loss-of-lock flags 306 // ------------------------- 307 const int maxSlipCnt = 100; 308 if (!_slip_cnt_L1.contains(prn)) { 309 _slip_cnt_L1[prn] = 0; 310 _slip_cnt_L2[prn] = 0; 311 _slip_cnt_L5[prn] = 0; 312 } 313 if (GNSSDF2_LOCKLOSSL1 & gnssData.dataflags2[iSat]) { 314 if (_slip_cnt_L1[prn] < maxSlipCnt) { 315 ++_slip_cnt_L1[prn]; 316 } 317 else { 318 _slip_cnt_L1[prn] = 1; 319 } 320 obs->_o.slip_cnt_L1 = _slip_cnt_L1[prn]; 321 } 322 if (GNSSDF2_LOCKLOSSL2 & gnssData.dataflags2[iSat]) { 323 if (_slip_cnt_L2[prn] < maxSlipCnt) { 324 ++_slip_cnt_L2[prn]; 325 } 326 else { 327 _slip_cnt_L2[prn] = 1; 328 } 329 obs->_o.slip_cnt_L2 = _slip_cnt_L2[prn]; 330 } 331 if (GNSSDF2_LOCKLOSSL5 & gnssData.dataflags2[iSat]) { 332 if (_slip_cnt_L5[prn] < maxSlipCnt) { 333 ++_slip_cnt_L5[prn]; 334 } 335 else { 336 _slip_cnt_L5[prn] = 1; 337 } 338 obs->_o.slip_cnt_L5 = _slip_cnt_L5[prn]; 339 } 340 302 341 // Loop over all data types 303 342 // ------------------------ … … 307 346 308 347 //// beg test 309 cout << obs->_o.satSys << obs->_o.satNum<< " "310 << iEntry << " " << df;311 if (df & gnssData.dataflags[iSat]) {312 cout << " present";313 }314 cout << endl;348 //// cout << prn.toAscii().data() << " " 349 //// << iEntry << " " << df; 350 //// if (df & gnssData.dataflags[iSat]) { 351 //// cout << " present"; 352 //// } 353 //// cout << endl; 315 354 //// end test 316 355 … … 333 372 obs->_o.L1 = gnssData.measdata[iSat][iEntry]; 334 373 obs->_o.SNR1 = gnssData.snrL1[iSat]; 335 if (GNSSDF2_LOCKLOSSL1 & gnssData.dataflags2[iSat]) {336 ++obs->_o.slip_cnt_L1;337 }338 374 } 339 375 else if (iEntry == GNSSENTRY_L2CDATA || … … 341 377 obs->_o.L2 = gnssData.measdata[iSat][iEntry]; 342 378 obs->_o.SNR2 = gnssData.snrL2[iSat]; 343 if (GNSSDF2_LOCKLOSSL2 & gnssData.dataflags2[iSat]) {344 ++obs->_o.slip_cnt_L2;345 }346 379 } 347 380 else if (iEntry == GNSSENTRY_S1CDATA || … … 361 394 else if (iEntry == GNSSENTRY_L5DATA) { 362 395 obs->_o.L5 = gnssData.measdata[iSat][iEntry]; 363 if (GNSSDF2_LOCKLOSSL5 & gnssData.dataflags2[iSat]) {364 ++obs->_o.slip_cnt_L5;365 }366 396 } 367 397 else if (iEntry == GNSSENTRY_S5DATA) { -
trunk/BNC/RTCM3/RTCM3Decoder.h
r2551 r2687 70 70 bncRawFile* _rawFile; 71 71 QString _staID_corrections; 72 73 QMap<QString, int> _slip_cnt_L1; 74 QMap<QString, int> _slip_cnt_L2; 75 QMap<QString, int> _slip_cnt_L5; 72 76 }; 73 77
Note:
See TracChangeset
for help on using the changeset viewer.