Changeset 2726 in ntrip
- Timestamp:
- Nov 29, 2010, 11:18:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r2724 r2726 140 140 _sigL3 = 0.02; 141 141 if (!settings.value("pppSigmaPhase").toString().isEmpty()) { 142 _sig L3 = settings.value("pppSigmaPhase").toDouble();142 _sigP3 = settings.value("pppSigmaPhase").toDouble(); 143 143 } 144 144 … … 167 167 // ---------------- 168 168 _quickStart = 0; 169 if (settings.value("pppOrigin").toString() == "PPP" && 169 if (settings.value("pppRefCrdX").toString() != "" && 170 settings.value("pppRefCrdY").toString() != "" && 171 settings.value("pppRefCrdZ").toString() != "" && 170 172 !settings.value("pppQuickStart").toString().isEmpty()) { 171 173 _quickStart = settings.value("pppQuickStart").toDouble() * 60.0; … … 414 416 } 415 417 416 // Use different white noise for quick-start mode418 // Use different white noise for Quick-Start mode 417 419 // ---------------------------------------------- 418 420 double sigCrdP_used = _sigCrdP; … … 431 433 if (pp->type == bncParam::CRD_X) { 432 434 if (firstCrd) { 433 if (settings.value("pppOrigin").toString() == "PPP") { 435 if (settings.value("pppRefCrdX").toString() != "" && 436 settings.value("pppRefCrdY").toString() != "" && 437 settings.value("pppRefCrdZ").toString() != "") { 434 438 pp->xx = settings.value("pppRefCrdX").toDouble(); 435 439 } … … 442 446 else if (pp->type == bncParam::CRD_Y) { 443 447 if (firstCrd) { 444 if (settings.value("pppOrigin").toString() == "PPP") { 448 if (settings.value("pppRefCrdX").toString() != "" && 449 settings.value("pppRefCrdY").toString() != "" && 450 settings.value("pppRefCrdZ").toString() != "") { 445 451 pp->xx = settings.value("pppRefCrdY").toDouble(); 446 452 } … … 453 459 else if (pp->type == bncParam::CRD_Z) { 454 460 if (firstCrd) { 455 if (settings.value("pppOrigin").toString() == "PPP") { 461 if (settings.value("pppRefCrdX").toString() != "" && 462 settings.value("pppRefCrdY").toString() != "" && 463 settings.value("pppRefCrdZ").toString() != "") { 456 464 pp->xx = settings.value("pppRefCrdZ").toDouble(); 457 465 } … … 586 594 587 595 bncSettings settings; 596 double sig_P3; 597 sig_P3 = 5.0; 598 if ( Qt::CheckState(settings.value("pppUsePhase").toInt()) == Qt::Checked ) { 599 sig_P3 = settings.value("pppSigmaCode").toDouble(); 600 if (sig_P3 < 0.3 || sig_P3 > 50.0) { 601 sig_P3 = 5.0; 602 } 603 } 588 604 589 605 _log.clear(); … … 647 663 648 664 ll(iObs) = satData->P3 - cmpValue(satData, false); 649 PP(iObs,iObs) = 1.0 / ( _sigP3 * _sigP3);665 PP(iObs,iObs) = 1.0 / (sig_P3 * sig_P3); 650 666 for (int iPar = 1; iPar <= _params.size(); iPar++) { 651 667 AA(iObs, iPar) = _params[iPar-1]->partial(satData, false); … … 783 799 // NEU Output 784 800 // ---------- 785 if (settings.value("pppOrigin").toString() != "None") { 801 if (settings.value("pppRefCrdX").toString() != "" && 802 settings.value("pppRefCrdY").toString() != "" && 803 settings.value("pppRefCrdZ").toString() != "") { 786 804 787 805 double xyzRef[3]; … … 885 903 emit newMessage(QByteArray(strE.str().c_str()), true); 886 904 887 ostringstream strF; strF.setf(ios::fixed); 888 strF << _staID.data() << " AVE-TRP " 889 << epoData->tt.timestr(1) << " " 890 << setw(13) << setprecision(3) << mean[6] << " +- " 891 << setw(6) << setprecision(3) << std[6] << endl; 892 893 emit newMessage(QByteArray(strF.str().c_str()), true); 905 if ( Qt::CheckState(settings.value("pppEstTropo").toInt()) == Qt::Checked) { 906 ostringstream strF; strF.setf(ios::fixed); 907 strF << _staID.data() << " AVE-TRP " 908 << epoData->tt.timestr(1) << " " 909 << setw(13) << setprecision(3) << mean[6] << " +- " 910 << setw(6) << setprecision(3) << std[6] << endl; 911 emit newMessage(QByteArray(strF.str().c_str()), true); 912 } 894 913 } 895 914 }
Note:
See TracChangeset
for help on using the changeset viewer.