Changeset 6448 in ntrip


Ignore:
Timestamp:
Dec 26, 2014, 4:38:26 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/GPSDecoder.cpp

    r6137 r6448  
    8181  if (_rnx) {
    8282    long iSec    = long(floor(obs._time.gpssec()+0.5));
    83     long obsTime = obs._time.gpsw() * 7*24*3600 + iSec;
    8483    if (_rnx->samplingRate() == 0 || iSec % _rnx->samplingRate() == 0) {
    8584      _rnx->deepCopy(obs);
    8685    }
    87     _rnx->dumpEpoch(format, obsTime);
     86    _rnx->dumpEpoch(format, obs._time);
    8887  }
    8988}
  • trunk/BNC/src/bncrinex.cpp

    r6252 r6448  
    387387// Write One Epoch into the RINEX File
    388388////////////////////////////////////////////////////////////////////////////
    389 void bncRinex::dumpEpoch(const QByteArray& format, long maxTime) {
     389void bncRinex::dumpEpoch(const QByteArray& format, const bncTime& maxTime) {
    390390
    391391  // Select observations older than maxTime
     
    395395  while (mIt.hasNext()) {
    396396    t_satObs obs = mIt.next();
    397     if (obs._time.gpsw() * 7*24*3600 + obs._time.gpssec() < maxTime - 0.05) {
     397    if (obs._time < maxTime) {
    398398      obsList.push_back(obs);
    399399      mIt.remove();
  • trunk/BNC/src/bncrinex.h

    r6227 r6448  
    4242   int  samplingRate() const {return _samplingRate;}
    4343   void deepCopy(t_satObs obs);
    44    void dumpEpoch(const QByteArray& format, long maxTime);
     44   void dumpEpoch(const QByteArray& format, const bncTime& maxTime);
    4545   void setReconnectFlag(bool flag){_reconnectFlag = flag;}
    4646
Note: See TracChangeset for help on using the changeset viewer.