Changeset 2642 in ntrip


Ignore:
Timestamp:
Nov 4, 2010, 4:05:06 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2637 r2642  
    251251
    252252  if (_eph.contains(prn)) {
    253 ////    t_ephGPS* eLast = static_cast<t_ephGPS*>(_eph.value(prn)->last);
    254 ////    if ( (eLast->GPSweek() <  gpseph.GPSweek) ||
    255 ////         (eLast->GPSweek() == gpseph.GPSweek && 
    256 ////          eLast->TOC()     <  gpseph.TOC) ) {
    257     if (true) { // simply take the last one
     253    t_ephGPS* eLast = static_cast<t_ephGPS*>(_eph.value(prn)->last);
     254    if ( (eLast->GPSweek() <  gpseph.GPSweek) ||
     255         (eLast->GPSweek() == gpseph.GPSweek && 
     256          eLast->TOC()     <  gpseph.TOC) ) {
    258257      delete static_cast<t_ephGPS*>(_eph.value(prn)->prev);
    259258      _eph.value(prn)->prev = _eph.value(prn)->last;
     
    281280    int tow = gloeph.GPSTOW;
    282281    updatetime(&ww, &tow, gloeph.tb*1000, 0);  // Moscow -> GPS
    283 ////    t_ephGlo* eLast = static_cast<t_ephGlo*>(_eph.value(prn)->last);
    284 ////    if (eLast->GPSweek() < ww ||
    285 ////        (eLast->GPSweek()  == ww &&  eLast->GPSweeks() <  tow)) { 
    286     if (true) { // simply take the last one
     282    t_ephGlo* eLast = static_cast<t_ephGlo*>(_eph.value(prn)->last);
     283    if (eLast->GPSweek() < ww ||
     284        (eLast->GPSweek()  == ww &&  eLast->GPSweeks() <  tow)) { 
    287285      delete static_cast<t_ephGlo*>(_eph.value(prn)->prev);
    288286      _eph.value(prn)->prev = _eph.value(prn)->last;
Note: See TracChangeset for help on using the changeset viewer.