Changeset 3265 in ntrip for trunk/BNC/RTCM3


Ignore:
Timestamp:
Apr 6, 2011, 11:22:08 AM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3264 r3265  
    440440      hTime = hTime - 24 * 3600.0;
    441441      ww  = hTime.gpsw();
    442       tow = hTime.gpssec();
     442      tow = (int) hTime.gpssec();
     443      updatetime(&ww, &tow, ee->tb*1000, 0);  // Moscow -> GPS
    443444    }
    444445    else if (hTime - currentTime < 12 * 3600.0) {
     
    446447      hTime = hTime + 24 * 3600.0;
    447448      ww  = hTime.gpsw();
    448       tow = hTime.gpssec();
     449      tow = (int) hTime.gpssec();
     450      updatetime(&ww, &tow, ee->tb*1000, 0);  // Moscow -> GPS
    449451    }
    450452
    451453    if (changed) {
    452       cout << "GLONASS Time Changed: " << currentTime.timestr() << endl
     454      bncTime newHTime(ww, (double) tow);
     455      cout << "GLONASS Time Changed: " << currentTime.timestr() << " "
     456           << hTime.timestr() << " " << newHTime.timestr() << endl
    453457           << ee->GPSWeek << " " << ee->GPSTOW << " " << ee->tb << endl
    454458           << ww << " " << tow << endl;
Note: See TracChangeset for help on using the changeset viewer.