Changeset 9508 in ntrip for trunk/BNC/src/PPP/pppFilter.h


Ignore:
Timestamp:
Oct 6, 2021, 10:50:34 PM (3 years ago)
Author:
stuerze
Message:

some changes regarding PPP

File:
1 edited

Legend:

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

    r9504 r9508  
    2626  const SymmetricMatrix& Q() const {return _QFlt;}
    2727
    28   t_irc datumTransformation();
     28  t_irc datumTransformation(const QMap<char, t_pppRefSat*>& refSatMap);
    2929  void initDatumTransformation(const std::vector<t_pppSatObs*>& allObs, bool pseudoObsIono);
    3030  unsigned setTrafoObs();
     
    9191        _firstRow = _lastRow + 1;
    9292      }
    93       _lastRow += maxObsSys;//LOG << sys << " updateIndices: lastRow: " << _lastRow << "\n" ;
     93      _lastRow += maxObsSys; //LOG << sys << " updateIndices: lastRow: " << _lastRow << "\n" ;
    9494    };
    9595
     
    120120      _D21.ReSize(_numPar, _numPar); _D21 = 0.0;
    121121    }
    122     void prepareAA(const Matrix& AA, int ind) {
     122    t_irc prepareAA(const Matrix& AA, int ind) {
    123123      Matrix* Prep = &_AA2;
    124124      if (ind == 1) {
    125125        Prep = &_AA1;
    126126      }
     127      //LOG << "_firstRow: " << _firstRow << " _lastRow: " << _lastRow << " _numPar " << _numPar << std::endl;
     128      if (AA.Ncols() > _numPar) {
     129        LOG << "t_pppFilter::prepareAA: AA.Ncols() > _numPar: " << AA.Ncols() << " > " << _numPar << std::endl;
     130        return failure;
     131      }
    127132      Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) << AA;
     133      return success;
    128134    }
    129135    void switchAA() {
     
    132138    t_irc computeTrafoMatrix() {
    133139      if (((_AA2.t() * _AA2)).Determinant() == 0.0) {
    134         LOG << "(_AA2.t() * _AA2).inv() is singular" << std::endl;
     140        LOG << "t_pppFilter::computeTrafoMatrix: (_AA2.t() * _AA2).inv() is singular" << std::endl;
    135141        return failure;
    136142      }
     
    174180                 SymmetricMatrix* QSav = 0, ColumnVector* xSav = 0);
    175181
    176   void cmpDOP(const std::vector<t_pppSatObs*>& obsVector);
     182  void cmpDOP(const std::vector<t_pppSatObs*>& obsVector,
     183              const QMap<char, t_pppRefSat*>& refSatMap);
    177184
    178185  void predictCovCrdPart(const SymmetricMatrix& QFltOld);
     
    180187  t_irc addNoiseToIono(char sys);
    181188
    182   bool resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector);
     189  bool resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector,
     190                                   const QMap<char, t_pppRefSat*>& refSatMap,
     191                                   const QMap<char, t_pppRefSat*>& refSatMapLastEpoch);
    183192
    184193  bncTime         _epoTime;
Note: See TracChangeset for help on using the changeset viewer.