Changeset 3461 in ntrip
- Timestamp:
- Sep 23, 2011, 5:02:20 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3460 r3461 190 190 } 191 191 192 // Not yet regularized193 // -------------------194 _firstReg = false;195 196 192 // Maximal Residuum 197 193 // ---------------- … … 374 370 // ---------------------- 375 371 bool masterPresent = false; 372 int numACwithObs = 0; 376 373 QListIterator<cmbAC*> icAC(_ACs); 377 374 while (icAC.hasNext()) { … … 389 386 } 390 387 out << AC->name.toAscii().data() << ": " << AC->numObs << endl; 388 if (AC->numObs > 0) { 389 ++numACwithObs; 390 } 391 } 392 393 if (numACwithObs < 3) { 394 return; 391 395 } 392 396 … … 494 498 } 495 499 } 496 497 _firstReg = true;498 500 499 501 // Update Parameter Values … … 698 700 } 699 701 700 const int nCon = (_firstReg == false) ? 1 + MAXPRN_GPS : 1;702 const int nCon = 1 + MAXPRN_GPS; 701 703 702 704 AA.ReSize(nObs+nCon, nPar); AA = 0.0; … … 728 730 // -------------- 729 731 const double Ph = 1.e6; 730 int iCond = 1; 731 PP(nObs+iCond) = Ph; 732 PP(nObs+1) = Ph; 732 733 for (int iPar = 1; iPar <= _params.size(); iPar++) { 733 734 cmbParam* pp = _params[iPar-1]; 734 if (pp->type == cmbParam::clkSat && 735 AA.Column(iPar).maximum_absolute_value() > 0.0) { 736 AA(nObs+iCond, iPar) = 1.0; 737 } 738 } 739 740 if (!_firstReg) { 741 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) { 742 ++iCond; 743 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 744 PP(nObs+1+iGps) = Ph; 745 for (int iPar = 1; iPar <= _params.size(); iPar++) { 746 cmbParam* pp = _params[iPar-1]; 747 if (pp->type == cmbParam::offACSat && pp->prn == prn) { 748 AA(nObs+iCond, iPar) = 1.0; 749 } 735 if (AA.Column(iPar).maximum_absolute_value() > 0.0) { 736 if (pp->type == cmbParam::clkSat) { 737 AA(nObs+1, iPar) = 1.0; 738 } 739 } 740 } 741 int iCond = 1; 742 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) { 743 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 744 ++iCond; 745 PP(nObs+iCond) = Ph; 746 for (int iPar = 1; iPar <= _params.size(); iPar++) { 747 cmbParam* pp = _params[iPar-1]; 748 if (pp->type == cmbParam::offACSat && pp->prn == prn) { 749 AA(nObs+iCond, iPar) = 1.0; 750 750 } 751 751 } -
trunk/BNC/combination/bnccomb.h
r3455 r3461 94 94 QString _masterOrbitAC; 95 95 unsigned _masterMissingEpochs; 96 bool _firstReg;97 96 }; 98 97
Note:
See TracChangeset
for help on using the changeset viewer.