Changeset 6023 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 21, 2014, 10:20:03 AM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r6018 r6023 62 62 _time = pppSatObs._time; 63 63 _outlier = false; 64 _valid = true; 64 65 for (unsigned ii = 0; ii < t_frequency::max; ii++) { 65 66 _obs[ii] = 0; … … 111 112 } 112 113 113 // Copy raw observations114 // ---------------------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 129 114 // Compute Satellite Coordinates at Time of Transmission 130 115 // ----------------------------------------------------- … … 133 118 bool totOK = false; 134 119 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; 136 121 double prange = obsValue(tLC); 137 122 for (int ii = 1; ii <= 10; ii++) { -
trunk/BNC/src/PPP/pppSatObs.h
r6022 r6023 16 16 t_pppSatObs(const t_satObs& satObs); 17 17 ~t_pppSatObs(); 18 bool isValid() const ;18 bool isValid() const {return _valid;}; 19 19 bool isValid(t_lc::type tLC) const; 20 20 const t_prn& prn() const {return _prn;} … … 111 111 void prepareObs(const t_satObs& satObs); 112 112 113 bool _valid; 113 114 t_prn _prn; 114 115 bncTime _time;
Note:
See TracChangeset
for help on using the changeset viewer.