Changeset 5819 in ntrip for trunk/BNC/src/PPP/satobs.cpp
- Timestamp:
- Aug 6, 2014, 1:02:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/satobs.cpp
r5818 r5819 27 27 * ------------------------------------------------------------------------- 28 28 * 29 * Class: t_ satObs29 * Class: t_pppSatObs 30 30 * 31 31 * Purpose: Satellite observations … … 57 57 // Constructor 58 58 //////////////////////////////////////////////////////////////////////////// 59 t_ satObs::t_satObs(const t_pppSatObs& pppSatObs) {59 t_pppSatObs::t_pppSatObs(const t_satObs& pppSatObs) { 60 60 _prn = pppSatObs._prn; 61 61 _time = pppSatObs._time; 62 62 _outlier = false; 63 63 for (unsigned ii = 0; ii < pppSatObs._obs.size(); ii++) { 64 const t_ pppObs* obs = pppSatObs._obs[ii];64 const t_frqObs* obs = pppSatObs._obs[ii]; 65 65 t_obsType obsType = string(obs->_rnxType2ch).substr(0,2); 66 _allObs[obsType] = new t_ pppObs(*obs);66 _allObs[obsType] = new t_frqObs(*obs); 67 67 } 68 68 prepareObs(); … … 71 71 // Destructor 72 72 //////////////////////////////////////////////////////////////////////////// 73 t_ satObs::~t_satObs() {74 map<t_obsType, t_ pppObs*>::const_iterator it;73 t_pppSatObs::~t_pppSatObs() { 74 map<t_obsType, t_frqObs*>::const_iterator it; 75 75 for (it = _allObs.begin(); it != _allObs.end(); it++) { 76 76 delete it->second; … … 80 80 // 81 81 //////////////////////////////////////////////////////////////////////////// 82 void t_ satObs::prepareObs() {82 void t_pppSatObs::prepareObs() { 83 83 _model.reset(); 84 84 _valid = true; … … 95 95 obsType1[1] = preferredAttrib[iPref]; 96 96 if (_validObs1 == 0 && _allObs.find(obsType1) != _allObs.end()) { 97 t_ pppObs* obs = _allObs[obsType1];97 t_frqObs* obs = _allObs[obsType1]; 98 98 if (obs->_codeValid && obs->_phaseValid) { 99 99 _validObs1 = obs; … … 104 104 obsType2[1] = preferredAttrib[iPref]; 105 105 if (_validObs2 == 0 && _allObs.find(obsType2) != _allObs.end()) { 106 t_ pppObs* obs = _allObs[obsType2];106 t_frqObs* obs = _allObs[obsType2]; 107 107 if (obs->_codeValid && obs->_phaseValid) { 108 108 _validObs2 = obs; … … 174 174 // 175 175 //////////////////////////////////////////////////////////////////////////// 176 t_irc t_ satObs::cmpModel(const t_pppStation* station) {176 t_irc t_pppSatObs::cmpModel(const t_pppStation* station) { 177 177 178 178 // Reset all model values … … 301 301 // 302 302 //////////////////////////////////////////////////////////////////////////// 303 void t_ satObs::printModel() const {303 void t_pppSatObs::printModel() const { 304 304 LOG.setf(ios::fixed); 305 305 LOG << "MODEL for Satellite " << _prn.toString() << endl … … 348 348 // 349 349 //////////////////////////////////////////////////////////////////////////// 350 double t_ satObs::obsValue(t_lc::type tLC) const {350 double t_pppSatObs::obsValue(t_lc::type tLC) const { 351 351 352 352 if (!_validObs2 && t_lc::need2ndFreq(tLC)) { … … 359 359 // 360 360 //////////////////////////////////////////////////////////////////////////// 361 double t_ satObs::cmpValueForBanc(t_lc::type tLC) const {361 double t_pppSatObs::cmpValueForBanc(t_lc::type tLC) const { 362 362 return cmpValue(tLC) - _model._rho - _model._sagnac - _model._recClkM; 363 363 } … … 365 365 // 366 366 //////////////////////////////////////////////////////////////////////////// 367 double t_ satObs::cmpValue(t_lc::type tLC) const {367 double t_pppSatObs::cmpValue(t_lc::type tLC) const { 368 368 369 369 if (!_validObs2 && t_lc::need2ndFreq(tLC)) { … … 389 389 // 390 390 //////////////////////////////////////////////////////////////////////////// 391 double t_ satObs::lc(t_lc::type tLC,391 double t_pppSatObs::lc(t_lc::type tLC, 392 392 double L1, double L2, double C1, double C2, 393 393 ColumnVector* coeff) const { … … 458 458 // 459 459 //////////////////////////////////////////////////////////////////////////// 460 t_irc t_ satObs::createDifference(const t_satObs* obsBase) {460 t_irc t_pppSatObs::createDifference(const t_pppSatObs* obsBase) { 461 461 462 462 _rawC1 -= obsBase->_rawC1; … … 484 484 // 485 485 //////////////////////////////////////////////////////////////////////////// 486 double t_ satObs::lambda(t_lc::type tLC) const {486 double t_pppSatObs::lambda(t_lc::type tLC) const { 487 487 488 488 if (tLC == t_lc::l1) { … … 507 507 // 508 508 //////////////////////////////////////////////////////////////////////////// 509 double t_ satObs::sigma(t_lc::type tLC) const {509 double t_pppSatObs::sigma(t_lc::type tLC) const { 510 510 511 511 ColumnVector sig(4); … … 535 535 // 536 536 //////////////////////////////////////////////////////////////////////////// 537 void t_ satObs::setRes(t_lc::type tLC, double res) {537 void t_pppSatObs::setRes(t_lc::type tLC, double res) { 538 538 _res[tLC] = res; 539 539 } … … 541 541 // 542 542 //////////////////////////////////////////////////////////////////////////// 543 double t_ satObs::getRes(t_lc::type tLC) const {543 double t_pppSatObs::getRes(t_lc::type tLC) const { 544 544 map<t_lc::type, double>::const_iterator it = _res.find(tLC); 545 545 if (it != _res.end()) {
Note:
See TracChangeset
for help on using the changeset viewer.