- Timestamp:
- Jan 12, 2010, 1:56:32 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r2233 r2238 62 62 const double sig_trp_0 = 0.01; 63 63 const double sig_trp_p = 1e-6; 64 const double sig_amb_0 = 100.0;64 const double sig_amb_0 = 1000.0; 65 65 const double sig_P3 = 1.0; 66 66 const double sig_L3 = 0.01; … … 510 510 unsigned nObs = 0; 511 511 if (_usePhase) { 512 nObs = 2 * epoData->sizeGPS() ; // TODO:+ epoData->sizeGlo();512 nObs = 2 * epoData->sizeGPS() + epoData->sizeGlo(); 513 513 } 514 514 else { … … 565 565 QMapIterator<QString, t_satData*> itGlo(epoData->satDataGlo); 566 566 while (itGlo.hasNext()) { 567 //// TODO++iObs;567 ++iObs; 568 568 itGlo.next(); 569 569 QString prn = itGlo.key(); 570 570 t_satData* satData = itGlo.value(); 571 572 double rhoCmp = cmpValue(satData); 573 574 double ellWgtCoeff = 1.0; 575 //// double eleD = satData->eleSat * 180.0 / M_PI; 576 //// if (eleD < 25.0) { 577 //// ellWgtCoeff = 2.5 - (eleD - 10.0) * 0.1; 578 //// ellWgtCoeff *= ellWgtCoeff; 579 //// } 580 581 ll(iObs) = satData->L3 - rhoCmp; 582 PP(iObs,iObs) = 1.0 / (sig_L3 * sig_L3) / ellWgtCoeff; 583 for (int iPar = 1; iPar <= _params.size(); iPar++) { 584 if (_params[iPar-1]->type == bncParam::AMB_L3 && 585 _params[iPar-1]->prn == prn) { 586 ll(iObs) -= _params[iPar-1]->xx; 587 } 588 AA(iObs, iPar) = _params[iPar-1]->partial(satData, prn); 589 } 571 590 572 591 //// beg test 573 double rhoCmp = cmpValue(satData);574 cout.setf(ios::fixed);575 cout << prn.toAscii().data() << " "576 << setprecision(3) << rhoCmp << " "577 << setprecision(3) << satData->P3 << " "578 << setprecision(3) << satData->L3 << " " << endl;579 580 //// end test592 //double rhoCmp = cmpValue(satData); 593 //cout.setf(ios::fixed); 594 //cout << prn.toAscii().data() << " " 595 // << setprecision(3) << rhoCmp << " " 596 // << setprecision(3) << satData->P3 << " " 597 // << setprecision(3) << satData->L3 << " " << endl; 598 // 599 ////// end test 581 600 } 582 601 } … … 725 744 } 726 745 727 ////// Glonass phase residuals728 ////// -----------------------729 ////if (_usePhase) {730 ////QMutableMapIterator<QString, t_satData*> itGlo(satDataGlo);731 ////while (itGlo.hasNext()) {732 ////itGlo.next();733 ////++ii;734 ////if (vvMaxPhaseGlo == 0.0 || fabs(vv(ii)) > vvMaxPhaseGlo) {735 ////vvMaxPhaseGlo = fabs(vv(ii));736 ////itMaxPhaseGlo = itGlo;737 ////}738 ////}739 ////}746 // Glonass phase residuals 747 // ----------------------- 748 if (_usePhase) { 749 QMutableMapIterator<QString, t_satData*> itGlo(satDataGlo); 750 while (itGlo.hasNext()) { 751 itGlo.next(); 752 ++ii; 753 if (vvMaxPhaseGlo == 0.0 || fabs(vv(ii)) > vvMaxPhaseGlo) { 754 vvMaxPhaseGlo = fabs(vv(ii)); 755 itMaxPhaseGlo = itGlo; 756 } 757 } 758 } 740 759 741 760 if (vvMaxCodeGPS > MAXRES_CODE) { -
trunk/BNC/bncpppclient.cpp
r2233 r2238 38 38 * 39 39 * -----------------------------------------------------------------------*/ 40 41 #include <iomanip> 40 42 41 43 #include "bncpppclient.h"
Note:
See TracChangeset
for help on using the changeset viewer.