Changeset 577 in ntrip


Ignore:
Timestamp:
Nov 18, 2007, 1:17:46 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r575 r577  
    194194  glonassephemeris** ee = &_glonassEph[glonasseph->almanac_number-1];
    195195
    196   if ( *ee == 0                             ||
    197        glonasseph->GPSWeek > (*ee)->GPSWeek ||
    198        glonasseph->GPSTOW  > (*ee)->GPSTOW  ) {
     196  struct converttimeinfo ctiOld;
     197  struct converttimeinfo ctiNew;
     198  if (*ee != 0) {
     199    int ww  = (*ee)->GPSWeek;
     200    int tow = (*ee)->GPSTOW;
     201    updatetime(&ww, &tow, (*ee)->tb*1000, 1);
     202    converttime(&ctiOld, ww, tow);
     203
     204    ww  = glonasseph->GPSWeek;
     205    tow = glonasseph->GPSTOW;
     206    updatetime(&ww, &tow, glonasseph->tb*1000, 1);
     207    converttime(&ctiNew, ww, tow);
     208  }
     209
     210  if ( *ee == 0                       ||
     211       ctiOld.second != ctiNew.second ||
     212       ctiOld.minute != ctiNew.minute ||
     213       ctiOld.hour   != ctiNew.hour   ||
     214       ctiOld.day    != ctiNew.day    ||
     215       ctiOld.month  != ctiNew.month  ||
     216       ctiOld.year   != ctiNew.year   ) {
     217
    199218    delete *ee;
    200219    *ee = glonasseph;
Note: See TracChangeset for help on using the changeset viewer.