Changeset 10791 in ntrip for trunk/BNC/src/PPP/pppParlist.h


Ignore:
Timestamp:
Dec 3, 2025, 5:37:16 PM (7 days ago)
Author:
mervart
Message:

BNC Multifrequency and PPPAR Client (initial version)

File:
1 edited

Legend:

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

    r10583 r10791  
    1414class t_pppParam {
    1515 public:
    16   enum e_type {crdX, crdY, crdZ, rClkG, rClkR, rClkE, rClkC, trp, ion, amb,
    17                cBiasG1, cBiasR1, cBiasE1, cBiasC1, pBiasG1, pBiasR1, pBiasE1, pBiasC1,
    18                cBiasG2, cBiasR2, cBiasE2, cBiasC2, pBiasG2, pBiasR2, pBiasE2, pBiasC2};
     16  enum e_type {crdX, crdY, crdZ, rClk, trp, ion, amb, bias};
    1917
    20   t_pppParam(e_type type, const t_prn& prn, t_lc::type tLC, const std::vector<t_pppSatObs*>* obsVector = 0);
     18  t_pppParam(e_type type, const t_prn& prn, t_lc LC = t_lc(), const std::vector<t_pppSatObs*>* obsVector = 0);
    2119  ~t_pppParam();
    2220
    2321  e_type type() const {return _type;}
    2422  double x0()  const {return _x0;}
    25   double partial(const bncTime& epoTime, const t_pppSatObs* obs,
    26                  const t_lc::type& tLC) const;
     23  double partial(const bncTime& epoTime, const t_pppSatObs* obs, const t_lc& LC) const;
    2724  bool   epoSpec() const {return _epoSpec;}
    2825  bool   isEqual(const t_pppParam* par2) const {
    29     return (_type == par2->_type && _prn == par2->_prn && _tLC == par2->_tLC);
     26    return (_type == par2->_type && _prn == par2->_prn && _LC == par2->_LC && _sys == par2->_sys);
    3027  }
    3128  void   setIndex(int indexNew) {
     
    3633    _indexOld = -1;
    3734  }
    38   int indexOld() const {return _indexOld;}
    39   int indexNew() const {return _indexNew;}
    40   double sigma0() const {return _sigma0;}
    41   double noise() const {return _noise;}
    42   t_lc::type tLC() const {return _tLC;}
    43   t_prn prn() const {return _prn;}
     35  int         indexOld() const {return _indexOld;}
     36  int         indexNew() const {return _indexNew;}
     37  double      sigma0() const {return _sigma0;}
     38  double      noise() const {return _noise;}
     39  t_lc        LC() const {return _LC;}
     40  t_prn       prn() const {return _prn;}
    4441  std::string toString() const;
    4542
     
    5552  unsigned ambNumEpo() const           {return _ambInfo ? _ambInfo->_numEpo : 0;}
    5653  void     stepAmbNumEpo()             {if (_ambInfo) _ambInfo->_numEpo += 1;}
     54  char     system() const {
     55    if (_prn.valid()) {
     56      return _prn.system();
     57    }
     58    else if (_LC.valid()) {
     59      return _LC.system();
     60    }
     61    else {
     62      return _sys;
     63    }
     64  }
     65  void     setSystem(char sys) {_sys = sys;}
    5766
    5867  static bool sortFunction(const t_pppParam* p1, const t_pppParam* p2) {
     
    6069      return p1->_type < p2->_type;
    6170    }
    62     else if (p1->_tLC != p2->_tLC) {
    63       return p1->_tLC < p2->_tLC;
     71    else if (p1->_LC != p2->_LC) {
     72      return p1->_LC < p2->_LC;
    6473    }
    6574    else if (p1->_prn != p2->_prn) {
     
    8493  e_type       _type;
    8594  t_prn        _prn;
    86   t_lc::type   _tLC;
     95  char         _sys;
     96  t_lc         _LC;
    8797  double       _x0;
    8898  bool         _epoSpec;
     
    104114  const std::vector<t_pppParam*>& params() const {return _params;}
    105115  std::vector<t_pppParam*>& params() {return _params;}
    106   const QMap<char, int>& usedSystems() const {return _usedSystems;}
    107116  void printResult(const bncTime& epoTime, const SymmetricMatrix& QQ,
    108                    const ColumnVector& xx) const;
     117                   const ColumnVector& xx, double fixRatio = 0.0) const;
    109118  void printParams(const bncTime& epoTime);
    110119
    111120 private:
    112121  std::vector<t_pppParam*> _params;
    113   QMap<char, int>          _usedSystems;
     122  std::map<char, int>      _usedSystems;
    114123};
    115124
Note: See TracChangeset for help on using the changeset viewer.