Changeset 5819 in ntrip for trunk/BNC/src/PPP/satobs.cpp


Ignore:
Timestamp:
Aug 6, 2014, 1:02:08 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5818 r5819  
    2727 * -------------------------------------------------------------------------
    2828 *
    29  * Class:      t_satObs
     29 * Class:      t_pppSatObs
    3030 *
    3131 * Purpose:    Satellite observations
     
    5757// Constructor
    5858////////////////////////////////////////////////////////////////////////////
    59 t_satObs::t_satObs(const t_pppSatObs& pppSatObs) {
     59t_pppSatObs::t_pppSatObs(const t_satObs& pppSatObs) {
    6060  _prn  = pppSatObs._prn;
    6161  _time = pppSatObs._time;
    6262  _outlier    = false;
    6363  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];
    6565    t_obsType obsType = string(obs->_rnxType2ch).substr(0,2);
    66     _allObs[obsType] = new t_pppObs(*obs);
     66    _allObs[obsType] = new t_frqObs(*obs);
    6767  }
    6868  prepareObs();
     
    7171// Destructor
    7272////////////////////////////////////////////////////////////////////////////
    73 t_satObs::~t_satObs() {
    74   map<t_obsType, t_pppObs*>::const_iterator it;
     73t_pppSatObs::~t_pppSatObs() {
     74  map<t_obsType, t_frqObs*>::const_iterator it;
    7575  for (it = _allObs.begin(); it != _allObs.end(); it++) {
    7676    delete it->second;
     
    8080//
    8181////////////////////////////////////////////////////////////////////////////
    82 void t_satObs::prepareObs() {
     82void t_pppSatObs::prepareObs() {
    8383  _model.reset();
    8484  _valid     = true;
     
    9595    obsType1[1] = preferredAttrib[iPref];
    9696    if (_validObs1 == 0 && _allObs.find(obsType1) != _allObs.end()) {
    97       t_pppObs* obs = _allObs[obsType1];
     97      t_frqObs* obs = _allObs[obsType1];
    9898      if (obs->_codeValid && obs->_phaseValid) {
    9999        _validObs1 = obs;
     
    104104      obsType2[1] = preferredAttrib[iPref];
    105105      if (_validObs2 == 0 && _allObs.find(obsType2) != _allObs.end()) {
    106         t_pppObs* obs = _allObs[obsType2];
     106        t_frqObs* obs = _allObs[obsType2];
    107107        if (obs->_codeValid && obs->_phaseValid) {
    108108          _validObs2 = obs;
     
    174174//
    175175////////////////////////////////////////////////////////////////////////////
    176 t_irc t_satObs::cmpModel(const t_pppStation* station) {
     176t_irc t_pppSatObs::cmpModel(const t_pppStation* station) {
    177177
    178178  // Reset all model values
     
    301301//
    302302////////////////////////////////////////////////////////////////////////////
    303 void t_satObs::printModel() const {
     303void t_pppSatObs::printModel() const {
    304304  LOG.setf(ios::fixed);
    305305  LOG << "MODEL for Satellite " << _prn.toString() << endl
     
    348348//
    349349////////////////////////////////////////////////////////////////////////////
    350 double t_satObs::obsValue(t_lc::type tLC) const {
     350double t_pppSatObs::obsValue(t_lc::type tLC) const {
    351351
    352352  if (!_validObs2 && t_lc::need2ndFreq(tLC)) {
     
    359359//
    360360////////////////////////////////////////////////////////////////////////////
    361 double t_satObs::cmpValueForBanc(t_lc::type tLC) const {
     361double t_pppSatObs::cmpValueForBanc(t_lc::type tLC) const {
    362362  return cmpValue(tLC) - _model._rho - _model._sagnac - _model._recClkM;
    363363}
     
    365365//
    366366////////////////////////////////////////////////////////////////////////////
    367 double t_satObs::cmpValue(t_lc::type tLC) const {
     367double t_pppSatObs::cmpValue(t_lc::type tLC) const {
    368368
    369369  if (!_validObs2 && t_lc::need2ndFreq(tLC)) {
     
    389389//
    390390////////////////////////////////////////////////////////////////////////////
    391 double t_satObs::lc(t_lc::type tLC,
     391double t_pppSatObs::lc(t_lc::type tLC,
    392392                    double L1, double L2, double C1, double C2,
    393393                    ColumnVector* coeff) const {
     
    458458//
    459459////////////////////////////////////////////////////////////////////////////
    460 t_irc t_satObs::createDifference(const t_satObs* obsBase) {
     460t_irc t_pppSatObs::createDifference(const t_pppSatObs* obsBase) {
    461461
    462462  _rawC1          -= obsBase->_rawC1;
     
    484484//
    485485////////////////////////////////////////////////////////////////////////////
    486 double t_satObs::lambda(t_lc::type tLC) const {
     486double t_pppSatObs::lambda(t_lc::type tLC) const {
    487487
    488488  if      (tLC == t_lc::l1) {
     
    507507//
    508508////////////////////////////////////////////////////////////////////////////
    509 double t_satObs::sigma(t_lc::type tLC) const {
     509double t_pppSatObs::sigma(t_lc::type tLC) const {
    510510
    511511  ColumnVector sig(4);
     
    535535//
    536536////////////////////////////////////////////////////////////////////////////
    537 void t_satObs::setRes(t_lc::type tLC, double res) {
     537void t_pppSatObs::setRes(t_lc::type tLC, double res) {
    538538  _res[tLC] = res;
    539539}
     
    541541//
    542542////////////////////////////////////////////////////////////////////////////
    543 double t_satObs::getRes(t_lc::type tLC) const {
     543double t_pppSatObs::getRes(t_lc::type tLC) const {
    544544  map<t_lc::type, double>::const_iterator it = _res.find(tLC);
    545545  if (it != _res.end()) {
Note: See TracChangeset for help on using the changeset viewer.