Changeset 6023 in ntrip


Ignore:
Timestamp:
Aug 21, 2014, 10:20:03 AM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
2 edited

Legend:

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

    r6018 r6023  
    6262  _time    = pppSatObs._time;
    6363  _outlier = false;
     64  _valid   = true;
    6465  for (unsigned ii = 0; ii < t_frequency::max; ii++) {
    6566    _obs[ii] = 0;
     
    111112  }
    112113
    113   // Copy raw observations
    114   // ---------------------
    115   _f1    = t_CST::f1(_prn.system(), _channel);
    116   _rawC1 = _validObs1->_code;
    117   _rawL1 = _validObs1->_phase * t_CST::c / _f1;
    118   if (dualFreq) {
    119     _f2    = t_CST::f2(_prn.system(), _channel);
    120     _rawC2 = _validObs2->_code;
    121     _rawL2 = _validObs2->_phase * t_CST::c / _f2;
    122   }
    123   else {
    124     _f2     = 0.0;
    125     _rawC2  = 0.0;
    126     _rawL2  = 0.0;
    127   }
    128 
    129114  // Compute Satellite Coordinates at Time of Transmission
    130115  // -----------------------------------------------------
     
    133118  bool totOK  = false;
    134119  ColumnVector satPosOld(4); satPosOld = 0.0;
    135   t_lc::type tLC = (dualFreq ? t_lc::cIF : t_lc::c1);
     120  t_lc::type tLC = isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
    136121  double prange = obsValue(tLC);
    137122  for (int ii = 1; ii <= 10; ii++) {
  • trunk/BNC/src/PPP/pppSatObs.h

    r6022 r6023  
    1616  t_pppSatObs(const t_satObs& satObs);
    1717  ~t_pppSatObs();
    18   bool                isValid() const;
     18  bool                isValid() const {return _valid;};
    1919  bool                isValid(t_lc::type tLC) const;
    2020  const t_prn&        prn() const {return _prn;}
     
    111111  void prepareObs(const t_satObs& satObs);
    112112
     113  bool                         _valid;
    113114  t_prn                        _prn;
    114115  bncTime                      _time;
Note: See TracChangeset for help on using the changeset viewer.