Changeset 6471 in ntrip for trunk/BNC


Ignore:
Timestamp:
Dec 28, 2014, 11:14:32 AM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/RTCM3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r6470 r6471  
    249249      orbCorrections.push_back(orbCorr);
    250250
    251       _IODs[orbCorr._prn.toString()] = _clkOrb.Sat[ii].IOD;
     251      _IODs[orbCorr._prn] = _clkOrb.Sat[ii].IOD;
    252252    }
    253253
     
    267267      clkCorr._dotDotDClk = _clkOrb.Sat[ii].Clock.DeltaA2 / t_CST::c;
    268268
    269       if (_IODs.contains(clkCorr._prn.toString())) {
    270         clkCorr._iod = _IODs[clkCorr._prn.toString()];
     269      _lastClkCorrections[clkCorr._prn] = clkCorr;
     270
     271      if (_IODs.contains(clkCorr._prn)) {
     272        clkCorr._iod = _IODs[clkCorr._prn];
    271273        clkCorrections.push_back(clkCorr);
    272274      }
     
    277279    if ( _clkOrb.messageType == COTYPE_GPSHR     ||
    278280         _clkOrb.messageType == COTYPE_GLONASSHR ) {
     281
     282      t_prn prn(sysCh, _clkOrb.Sat[ii].ID);
     283      if (_lastClkCorrections.contains(prn)) {
     284        t_clkCorr clkCorr;
     285        clkCorr        = _lastClkCorrections[prn];
     286        clkCorr._time  = _lastTime;
     287        clkCorr._dClk  +=_clkOrb.Sat[ii].hrclock / t_CST::c;
     288        if (_IODs.contains(clkCorr._prn)) {
     289          clkCorr._iod = _IODs[clkCorr._prn];
     290          clkCorrections.push_back(clkCorr);
     291        }
     292      }
    279293    }
    280294  }
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.h

    r6467 r6471  
    6666  int            _providerID[3];
    6767  bncTime        _lastTime;
    68   QMap<std::string, unsigned short> _IODs;
    69   QMap<bncTime, QList<t_orbCorr> >  _orbCorrections;
    70   QMap<bncTime, QList<t_clkCorr> >  _clkCorrections;
     68  QMap<t_prn, unsigned short>          _IODs;
     69  QMap<bncTime, QList<t_orbCorr> >     _orbCorrections;
     70  QMap<bncTime, QList<t_clkCorr> >     _clkCorrections;
     71  QMap<t_prn, t_clkCorr>               _lastClkCorrections;
     72  QMap<bncTime, QList<t_satCodeBias> > _codeBiases;
    7173};
    7274
Note: See TracChangeset for help on using the changeset viewer.