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


Ignore:
Timestamp:
Mar 25, 2021, 3:17:35 PM (3 years ago)
Author:
stuerze
Message:

update regarding PPP

File:
1 edited

Legend:

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

    r9304 r9386  
    88#include "bnctime.h"
    99#include "t_prn.h"
     10#include "pppClient.h"
    1011
    1112namespace BNC_PPP {
     
    2021  ~t_pppFilter();
    2122
    22   t_irc processEpoch(int num);
     23  t_irc processEpoch();
    2324
    24   void datumTransformation(const ColumnVector& xFltOld, const SymmetricMatrix& QFltOld);
     25  t_irc datumTransformation();
     26  void initDatumTransformation(const std::vector<t_pppSatObs*>& allObs);
    2527
    2628  const ColumnVector&    x() const {return _xFlt;}
     
    8183    void setFirstSystem(bool firstSys) {_firstSys = firstSys;}
    8284    bool firstSystem() {return _firstSys;}
    83     void updateIndices(int maxObs) {
     85    void updateIndices(int maxObsSys) {
    8486      if (firstSystem()) {
    8587        initIndices();
     
    8890        _firstRow = _lastRow + 1;
    8991      }
    90       _lastRow += maxObs;
     92      _lastRow += maxObsSys;
     93
    9194    };
    92     void initAA(int maxObs, int numPar) {
    93       _AA1.ReSize(maxObs, numPar); _AA1 = 0.0;
    94       _AA2.ReSize(maxObs, numPar); _AA2 = 0.0;
     95    void setObsNum(int maxObs) {_maxObs = maxObs;}
     96    void setParNum(int numPar) {_numPar = numPar;}
     97    int obsNum() {return _maxObs;}
     98    int parNum() {return _numPar;}
     99    const Matrix& AA1() {return _AA1;}
     100    const Matrix& AA2() {return _AA2;}
     101
     102    void initAA() {
     103      _AA1.ReSize(_maxObs, _numPar); _AA1 = 0.0;
     104      _AA2.ReSize(_maxObs, _numPar); _AA2 = 0.0;
    95105    }
    96     void prepareAA(const Matrix& AA, int numEpoProcessing, int nPar) {
     106
     107    void prepareAA(const Matrix& AA, int ind) {
    97108      Matrix* Prep = &_AA2;
    98       if (numEpoProcessing == 1) {
     109      if (ind == 1) {
    99110        Prep = &_AA1;
    100111      }
    101       Prep->SubMatrix(_firstRow, _lastRow, 1, nPar) << AA;
     112      Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) << AA;
     113    }
     114    void switchAA() {
     115      _AA1 = _AA2;
     116    }
     117    Matrix&  getAA(int ind) {
     118      if (ind == 1) {
     119          return _AA1;
     120      }
     121      return _AA2;
     122    }
     123    Matrix computeTrafoMatrix() {
     124      Matrix D21 = ((_AA2.t() * _AA2).i()) * _AA2.t() * _AA1;
     125      return D21;
     126    }
     127    void printMatrix(const Matrix& X, int nRow, int nCol) {
     128      for (int rr = 0; rr < nRow; rr++) {
     129        for (int cc = 0; cc < nCol; cc++) {
     130          LOG << setw(6) << setprecision(3) << X[rr][cc] << " ;";
     131        }
     132        LOG << endl;
     133      }
     134      LOG << endl;
    102135    }
    103136
    104     Matrix computeTrafoMatrix() {
    105       Matrix D21 = (_AA2.t() * _AA2).i() * _AA2.t() * _AA1;
    106       return D21;
    107     }
    108 
    109     static void printMatrix(const Matrix& X, int nRow, int nCol) {
    110       for (int rr = 0; rr < nRow; rr++) {
    111         for (int cc = 0; cc < nCol; cc++) {
    112           cout << setw(7) << setprecision(4) << X[rr][cc] << " ";
    113         }
    114         cout << endl;      }
    115       cout << endl;
    116     }
    117     int     _firstRow;
    118     int     _lastRow;
    119     Matrix  _AA1;
    120     Matrix  _AA2;
    121     bool    _firstSys;
     137    int               _firstRow;
     138    int               _lastRow;
     139    Matrix            _AA1;
     140    Matrix            _AA2;
     141    bool              _firstSys;
     142    int               _maxObs;
     143    int               _numPar;
     144    QMap<char, t_prn> _refSatMapPseudoObs;
    122145  };
    123146
     
    140163  void predictCovCrdPart(const SymmetricMatrix& QFltOld);
    141164
    142   t_irc addInfiniteNoise(t_pppParam::e_type para);
     165  t_irc addNoiseToIono(char sys);
     166
     167  bool resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector);
    143168
    144169  bncTime         _epoTime;
     
    151176  t_slip          _slips[t_prn::MAXPRN+1];
    152177  int             _numSat;
    153   int             _numEpoProcessing;
    154   int             _numAllUsedLCs;
    155178  t_dop           _dop;
    156179  bncTime         _firstEpoTime;
Note: See TracChangeset for help on using the changeset viewer.