Changeset 2990 in ntrip for trunk/BNC/combination/bnccomb.cpp
- Timestamp:
- Feb 8, 2011, 6:33:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r2989 r2990 66 66 } 67 67 68 68 // 69 //////////////////////////////////////////////////////////////////////////// 70 QString cmbParam::toString() const { 71 72 QString outStr; 73 74 if (type == AC_offset) { 75 outStr = "AC offset " + AC; 76 } 77 else if (type == Sat_offset) { 78 outStr = "Sat Offset " + prn; 79 } 80 else if (type == clk) { 81 outStr = "Clk Corr " + prn; 82 } 83 84 return outStr; 85 } 69 86 70 87 // Constructor … … 90 107 91 108 _caster = new cmbCaster(); 92 connect(_caster, SIGNAL(error(const QByteArray)), 93 this, SLOT(slotError(const QByteArray))); 94 connect(_caster, SIGNAL(newMessage(const QByteArray)), 95 this, SLOT(slotMessage(const QByteArray))); 109 connect(this, SIGNAL(newMessage(QByteArray,bool)), 110 ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool))); 96 111 97 112 // Initialize Parameters … … 251 266 } 252 267 253 // Print one correction254 ////////////////////////////////////////////////////////////////////////////255 void bncComb::printSingleCorr(const QString& acName, const t_corr* corr) {256 cout.setf(ios::fixed);257 cout << acName.toAscii().data() << " "258 << corr->prn.toAscii().data() << " "259 << corr->tt.timestr() << " "260 << setw(4) << corr->iod << " "261 << setw(8) << setprecision(4) << corr->dClk * t_CST::c << " "262 << setw(8) << setprecision(4) << corr->rao[0] << " "263 << setw(8) << setprecision(4) << corr->rao[1] << " "264 << setw(8) << setprecision(4) << corr->rao[2] << endl;265 }266 267 268 // Send results to caster 268 269 //////////////////////////////////////////////////////////////////////////// … … 325 326 } 326 327 327 // Write an Error Message328 ////////////////////////////////////////////////////////////////////////////329 void bncComb::slotError(const QByteArray msg) {330 cout << msg.data() << endl;331 }332 333 // Write a Message334 ////////////////////////////////////////////////////////////////////////////335 void bncComb::slotMessage(const QByteArray msg) {336 cout << msg.data() << endl;337 }338 339 328 // Change the correction so that it refers to last received ephemeris 340 329 //////////////////////////////////////////////////////////////////////////// … … 370 359 //////////////////////////////////////////////////////////////////////////// 371 360 void bncComb::processEpochs(const QList<cmbEpoch*>& epochs) { 361 362 _log.clear(); 363 364 QTextStream out(&_log, QIODevice::WriteOnly); 365 366 out << "Combination:" << endl 367 << "-----------------------------" << endl; 372 368 373 369 // Predict Parameters Values, Add White Noise … … 441 437 442 438 ll(iObs) = corr->dClk * t_CST::c - DotProduct(AA.Row(iObs), x0); 443 444 printSingleCorr(epo->acName, corr); 439 445 440 delete corr; 446 441 } … … 459 454 } 460 455 } 461 } 462 463 cout << "vv = " << vv.t(); 456 out.setRealNumberNotation(QTextStream::FixedNotation); 457 out.setFieldWidth(8); 458 out.setRealNumberPrecision(4); 459 out << pp->toString() << " " 460 << pp->xx << " +- " << _QQ(pp->index,pp->index) << endl; 461 } 464 462 } 465 463 466 464 dumpResults(resTime, resCorr); 467 465 468 cout << "Corrections processed" << endl << endl;469 } 466 emit newMessage(_log, false); 467 }
Note:
See TracChangeset
for help on using the changeset viewer.