Changeset 2285 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Feb 9, 2010, 11:34:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.cpp
r2263 r2285 10 10 #include "bncutils.h" 11 11 #include "timeutils.h" 12 #include "bnctime.h" 12 13 13 14 using namespace std; … … 233 234 int t_ephGlo::IOD() const { 234 235 235 bool old = true;236 bool old = false; 236 237 237 238 if (old) { // 5 LSBs of iod are equal to 5 LSBs of tb … … 242 243 } 243 244 else { 244 return int(fmod(_tki, 3600)) / 30; 245 bncTime tGPS(_GPSweek, _GPSweeks); 246 int hlpWeek = _GPSweek; 247 int hlpSec = int(_GPSweeks); 248 int hlpMsec = int(_GPSweeks * 1000); 249 updatetime(&hlpWeek, &hlpSec, hlpMsec, 0); 250 bncTime tHlp(hlpWeek, hlpSec); 251 double diffSec = tGPS - tHlp; 252 bncTime tMoscow = tGPS + diffSec; 253 return int(tMoscow.daysec() / 900); 245 254 } 246 255 }
Note:
See TracChangeset
for help on using the changeset viewer.