Changeset 2284 in ntrip


Ignore:
Timestamp:
Feb 9, 2010, 11:31:10 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r2263 r2284  
    716716  }
    717717  else     { 
    718     return int(fmod(_tki, 3600)) / 30;
    719   }
    720 }
     718    bncTime tGPS(_GPSweek, _GPSweeks);
     719    int hlpWeek = _GPSweek;
     720    int hlpSec  = int(_GPSweeks);
     721    int hlpMsec = int(_GPSweeks * 1000);
     722    updatetime(&hlpWeek, &hlpSec, hlpMsec, 0);
     723    bncTime tHlp(hlpWeek, hlpSec);
     724    double diffSec = tGPS - tHlp;
     725    bncTime tMoscow = tGPS + diffSec;
     726    return int(tMoscow.daysec() / 900);
     727  }
     728}
Note: See TracChangeset for help on using the changeset viewer.