Changeset 4098 in ntrip


Ignore:
Timestamp:
May 1, 2012, 8:29:40 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncrtnetuploadcaster.cpp

    r3890 r4098  
    280280      eph = ephPair->last;
    281281
    282       // receptDateTime() not (yet?) defined
    283       // if (ephPair->prev &&
    284       //     eph->receptDateTime().secsTo(QDateTime::currentDateTime()) < 60) {
    285       //   eph = ephPair->prev;
    286       // }
     282      // Use previous ephemeris if the last one is too recent
     283      // ----------------------------------------------------
     284      const int MINAGE = 60; // seconds
     285      if (ephPair->prev && eph->receptDateTime().isValid() &&
     286          eph->receptDateTime().secsTo(currentDateAndTimeGPS()) < MINAGE) {
     287        eph = ephPair->prev;
     288      }
    287289
    288290      // Make sure the clock messages refer to same IOD as orbit messages
Note: See TracChangeset for help on using the changeset viewer.