Changeset 527 in ntrip


Ignore:
Timestamp:
Oct 18, 2007, 3:30:48 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r526 r527  
    270270
    271271  if (_ephStream) {
    272     int w = ep->GPSWeek, tow = ep->GPSTOW, i;
     272    int ww  = ep->GPSWeek;
     273    int tow = ep->GPSTOW;
    273274    struct converttimeinfo cti;
    274275
    275     updatetime(&w, &tow, ep->tb*1000, 1);
    276     converttime(&cti, w, tow);
    277 
    278     i = ep->tk-3*60*60; if(i < 0) i += 86400;
     276    updatetime(&ww, &tow, ep->tb*1000, 1);
     277    converttime(&cti, ww, tow);
     278
     279    int ii = ep->tk-3*60*60;
     280    if (ii < 0) {
     281      ii += 86400;
     282    }
    279283
    280284    QString line;
     
    283287      line.sprintf("R%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e",
    284288                   ep->almanac_number, cti.year, cti.month, cti.day, cti.hour,
    285                    cti.minute, cti.second, -ep->tau, ep->gamma, (double) i);
     289                   cti.minute, cti.second, -ep->tau, ep->gamma, (double) ii);
    286290    }
    287291    else {
     
    289293                   ep->almanac_number, cti.year%100, cti.month, cti.day,
    290294                   cti.hour, cti.minute, (double) cti.second, -ep->tau,
    291                    ep->gamma, (double) i);
     295                   ep->gamma, (double) ii);
    292296    }
    293297    *_ephStream << line << endl;
Note: See TracChangeset for help on using the changeset viewer.