Changeset 4904 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Feb 9, 2013, 10:20:20 AM (12 years ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/ephemeris.cpp
r4891 r4904 375 375 // Set Glonass Ephemeris 376 376 //////////////////////////////////////////////////////////////////////////// 377 void t_ephGlo::set(const glonassephemeris* ee ) {377 void t_ephGlo::set(const glonassephemeris* ee, bool& timeChanged) { 378 378 379 379 _receptDateTime = currentDateAndTimeGPS(); … … 387 387 // Check the day once more 388 388 // ----------------------- 389 timeChanged = false; 389 390 { 390 391 const double secPerDay = 24 * 3600.0; … … 398 399 bncTime hTime(ww, (double) tow); 399 400 400 bool changed = false;401 401 if (hTime - currentTime > secPerDay/2.0) { 402 changed = true;402 timeChanged = true; 403 403 tow -= int(secPerDay); 404 404 if (tow < 0) { … … 408 408 } 409 409 else if (hTime - currentTime < -secPerDay/2.0) { 410 changed = true;410 timeChanged = true; 411 411 tow += int(secPerDay); 412 412 if (tow > secPerWeek) { … … 416 416 } 417 417 418 if ( changed && ((bncApp*) qApp)->mode() == bncApp::batchPostProcessing) {418 if (timeChanged && ((bncApp*) qApp)->mode() == bncApp::batchPostProcessing) { 419 419 bncTime newHTime(ww, (double) tow); 420 420 cout << "GLONASS " << ee->almanac_number << " Time Changed at " -
trunk/BNC/src/RTCM3/ephemeris.h
r4366 r4904 141 141 virtual int RTCM3(unsigned char *); 142 142 143 void set(const glonassephemeris* ee );143 void set(const glonassephemeris* ee, bool& timeChanged); 144 144 145 145 int slotNum() const {return int(_frequency_number);}
Note:
See TracChangeset
for help on using the changeset viewer.