Changeset 4543 in ntrip


Ignore:
Timestamp:
Aug 21, 2012, 6:17:40 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/ephemeris.cpp

    r4224 r4543  
    107107
    108108  bncTime tt(GPSweek, GPSweeks);
    109   double tk = tt - bncTime(_TOEweek, _TOEsec);
     109  double tk = tt - bncTime(int(_TOEweek), _TOEsec);
    110110
    111111  double n  = n0 + _Delta_n;
     
    401401    if      (hTime - currentTime >  secPerDay/2.0) {
    402402      changed = true;
    403       tow -= secPerDay;
     403      tow -= int(secPerDay);
    404404      if (tow < 0) {
    405         tow += secPerWeek;
     405        tow += int(secPerWeek);
    406406        ww  -= 1;
    407407      }
     
    409409    else if (hTime - currentTime < -secPerDay/2.0) {
    410410      changed = true;
    411       tow += secPerDay;
     411      tow += int(secPerDay);
    412412      if (tow > secPerWeek) {
    413         tow -= secPerWeek;
     413        tow -= int(secPerWeek);
    414414        ww  += 1;
    415415      }
Note: See TracChangeset for help on using the changeset viewer.