Changeset 2207 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jan 7, 2010, 10:57:20 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2182 r2207  
    212212    in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn;
    213213    if ( messageType == COTYPE_GPSCOMBINED     ||
    214          messageType == COTYPE_GLONASSCOMBINED ) {
     214         messageType == COTYPE_GLONASSCOMBINED ||
     215         messageType == COTYPE_GPSORBIT        ||
     216         messageType == COTYPE_GPSCLOCK        ||
     217         messageType == COTYPE_GLONASSORBIT    ||
     218         messageType == COTYPE_GLONASSCLOCK ) {
     219
    215220      t_corr* cc = 0;
    216221      if (_corr.contains(prn)) {
     
    221226        _corr[prn] = cc;
    222227      }
     228
    223229      cc->tt.set(GPSweek, GPSweeks);
    224       cc->rao.ReSize(3);
    225       in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2];
    226       cc->dClk /= t_CST::c;
     230
     231      if      ( messageType == COTYPE_GPSCOMBINED    ||
     232                messageType == COTYPE_GLONASSCOMBINED ) {
     233        cc->rao.ReSize(3);
     234        in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2];
     235        cc->dClk /= t_CST::c;
     236      }
     237      else if ( messageType == COTYPE_GPSORBIT    ||
     238                messageType == COTYPE_GLONASSORBIT ) {
     239        cc->rao.ReSize(3);
     240        in >> cc->iod >> cc->rao[0] >> cc->rao[1] >> cc->rao[2];
     241      }
     242      else if ( messageType == COTYPE_GPSCLOCK    ||
     243                messageType == COTYPE_GLONASSCLOCK ) {
     244        int dummyIOD;
     245        in >> dummyIOD >> cc->dClk;
     246        cc->dClk /= t_CST::c;
     247      }
    227248    }
    228249  }
Note: See TracChangeset for help on using the changeset viewer.