Changeset 10597 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jan 31, 2025, 10:28:18 AM (13 hours ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppFilter.cpp

    r10590 r10597  
    267267      if (par) {
    268268        if (par->ambResetCandidate()) {
    269           resetAmb(obs->prn(), obsVector, maxOutlierLC, &QSav, &xSav);
    270         }
    271         else {
     269        resetAmb(obs->prn(), obsVector, maxOutlierLC, &QSav, &xSav);
     270      }
     271      else {
    272272          par->setAmbResetCandidate();
    273273          obs->setOutlier();
     
    382382  t_irc irc = failure;
    383383  vector<t_pppParam*>& params = _parlist->params();
    384   for (unsigned iPar = 0; iPar < params.size(); iPar++) {
     384  unsigned nPar = params.size();
     385  for (unsigned iPar = 0; iPar < nPar; iPar++) {
    385386    t_pppParam *par = params[iPar];
    386387    if (par->type() == t_pppParam::amb && par->prn() == prn) {
     
    400401      par->setAmbEleSat(eleSat);
    401402      params[iPar] = par;
    402       for (unsigned ii = 1; ii <= params.size(); ii++) {
    403         _QFlt(ii, ind + 1) = 0.0;
     403      for (unsigned ii = 0; ii < nPar; ii++) {
     404        _QFlt(ii+1, ind+1) = 0.0;
    404405        if (QSav) {
    405           (*QSav)(ii, ind + 1) = 0.0;
    406         }
    407       }
    408       _QFlt(ind + 1, ind + 1) = par->sigma0() * par->sigma0();
     406          (*QSav)(ii+1, ind+1) = 0.0;
     407        }
     408      }
     409      _QFlt(ind+1,ind+1) = par->sigma0() * par->sigma0();
    409410      if (QSav) {
    410         (*QSav)(ind + 1, ind + 1) = _QFlt(ind + 1, ind + 1);
     411        (*QSav)(ind+1,ind+1) = _QFlt(ind+1,ind+1);
    411412      }
    412413      _xFlt[ind] = 0.0;
Note: See TracChangeset for help on using the changeset viewer.