Changeset 3537 in ntrip


Ignore:
Timestamp:
Dec 22, 2011, 12:00:52 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r3524 r3537  
    247247  glonassephemeris** ee = &_glonassEph[glonasseph->almanac_number-1];
    248248
    249   int wwOld, towOld, wwNew, towNew;
    250   if (*ee != 0) {
    251     wwOld  = (*ee)->GPSWeek;
    252     towOld = (*ee)->GPSTOW;
    253     updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0);  // Moscow -> GPS
    254 
    255     wwNew  = glonasseph->GPSWeek;
    256     towNew = glonasseph->GPSTOW;
    257     updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0); // Moscow -> GPS
    258   }
    259 
    260249  if ( *ee == 0      ||
    261        wwNew > wwOld ||
    262        (wwNew == wwOld && towNew > towOld) ) {
     250       glonasseph->GPSWeek > (*ee)->GPSWeek ||
     251         ( glonasseph->GPSWeek == (*ee)->GPSWeek &&
     252           glonasseph->GPSTOW > (*ee)->GPSTOW ) ) {
    263253    delete *ee;
    264254    *ee = glonasseph;
Note: See TracChangeset for help on using the changeset viewer.