- Timestamp:
- Mar 25, 2011, 1:22:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3134 r3135 598 598 599 599 if (nObs > 0) { 600 const double Pl = 1.0 / (0.05 * 0.05); 601 600 602 const int nCon = 2 + MAXPRN_GPS; 601 603 Matrix AA(nObs+nCon, nPar); AA = 0.0; 602 604 ColumnVector ll(nObs+nCon); ll = 0.0; 603 DiagonalMatrix PP(nObs+nCon); PP = 1.0;605 DiagonalMatrix PP(nObs+nCon); PP = Pl; 604 606 605 607 int iObs = 0; … … 644 646 PP(nObs+iCond) = Ph; 645 647 for (int iPar = 1; iPar <= _params.size(); iPar++) { 646 cmbParam* pp = _params[iPar-1]; 647 if (pp->type == cmbParam::clk) { 648 AA(nObs+iCond, iPar) = 1.0; 648 if (AA.Column(iPar).maximum_absolute_value() > 0.0) { 649 cmbParam* pp = _params[iPar-1]; 650 if (pp->type == cmbParam::clk) { 651 AA(nObs+iCond, iPar) = 1.0; 652 } 649 653 } 650 654 } … … 655 659 PP(nObs+1+iGps) = Ph; 656 660 for (int iPar = 1; iPar <= _params.size(); iPar++) { 657 cmbParam* pp = _params[iPar-1]; 658 if (pp->type == cmbParam::Sat_offset && pp->prn == prn) { 659 AA(nObs+iCond, iPar) = 1.0; 661 if (AA.Column(iPar).maximum_absolute_value() > 0.0) { 662 cmbParam* pp = _params[iPar-1]; 663 if (pp->type == cmbParam::Sat_offset && pp->prn == prn) { 664 AA(nObs+iCond, iPar) = 1.0; 665 } 660 666 } 661 667 }
Note:
See TracChangeset
for help on using the changeset viewer.