Changeset 4904 in ntrip for trunk/BNC/src/RTCM3/ephemeris.cpp


Ignore:
Timestamp:
Feb 9, 2013, 10:20:20 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4891 r4904  
    375375// Set Glonass Ephemeris
    376376////////////////////////////////////////////////////////////////////////////
    377 void t_ephGlo::set(const glonassephemeris* ee) {
     377void t_ephGlo::set(const glonassephemeris* ee, bool& timeChanged) {
    378378
    379379  _receptDateTime = currentDateAndTimeGPS();
     
    387387  // Check the day once more
    388388  // -----------------------
     389  timeChanged = false;
    389390  {
    390391    const double secPerDay  = 24 * 3600.0;
     
    398399    bncTime hTime(ww, (double) tow);
    399400
    400     bool changed = false;
    401401    if      (hTime - currentTime >  secPerDay/2.0) {
    402       changed = true;
     402      timeChanged = true;
    403403      tow -= int(secPerDay);
    404404      if (tow < 0) {
     
    408408    }
    409409    else if (hTime - currentTime < -secPerDay/2.0) {
    410       changed = true;
     410      timeChanged = true;
    411411      tow += int(secPerDay);
    412412      if (tow > secPerWeek) {
     
    416416    }
    417417
    418     if (changed && ((bncApp*) qApp)->mode() == bncApp::batchPostProcessing) {
     418    if (timeChanged && ((bncApp*) qApp)->mode() == bncApp::batchPostProcessing) {
    419419      bncTime newHTime(ww, (double) tow);
    420420      cout << "GLONASS " << ee->almanac_number <<  " Time Changed at "
Note: See TracChangeset for help on using the changeset viewer.