Changeset 2208 in ntrip


Ignore:
Timestamp:
Jan 7, 2010, 11:14:44 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2207 r2208  
    234234        in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2];
    235235        cc->dClk /= t_CST::c;
     236        cc->raoSet  = true;
     237        cc->dClkSet = true;
    236238      }
    237239      else if ( messageType == COTYPE_GPSORBIT    ||
     
    239241        cc->rao.ReSize(3);
    240242        in >> cc->iod >> cc->rao[0] >> cc->rao[1] >> cc->rao[2];
     243        cc->raoSet  = true;
    241244      }
    242245      else if ( messageType == COTYPE_GPSCLOCK    ||
     
    245248        in >> dummyIOD >> cc->dClk;
    246249        cc->dClk /= t_CST::c;
    247       }
     250        cc->dClkSet = true;
     251      }
     252    }
     253  }
     254
     255  QMutableMapIterator<QString, t_corr*> im(_corr);
     256  while (im.hasNext()) {
     257    im.next();
     258    t_corr* cc = im.value();
     259    if (!cc->ready()) {
     260      delete cc;
     261      im.remove();
    248262    }
    249263  }
  • trunk/BNC/bncpppclient.h

    r2182 r2208  
    7474class t_corr {
    7575 public:
     76  t_corr() {
     77    raoSet  = false;
     78    dClkSet = false;
     79  }
     80  bool ready() {return raoSet && dClkSet;}
    7681  bncTime       tt;
    7782  int          iod;
    7883  double       dClk;
    7984  ColumnVector rao;
     85  bool         raoSet;
     86  bool         dClkSet;
    8087};
    8188
Note: See TracChangeset for help on using the changeset viewer.