Changeset 4753 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 7, 2012, 9:38:18 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r4542 r4753  
    261261  bias.GLONASSEpochTime = co.GLONASSEpochTime;
    262262 
     263  // Default Update Interval
     264  // -----------------------
     265  int clkUpdInterval = 5;
     266  int ephUpdInterval = (_samplRtcmEphCorr != 0.0 ? int(_samplRtcmEphCorr) : 5);
     267
     268  co.UpdateInterval   = clkUpdInterval;
     269  bias.UpdateInterval = clkUpdInterval;
     270
    263271  for (int ii = 1; ii < lines.size(); ii++) {
    264272 
     
    401409      char obuffer[CLOCKORBIT_BUFFERSIZE];
    402410      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
     411        co.UpdateInterval = ephUpdInterval;
    403412        int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 1, obuffer, sizeof(obuffer));
     413        co.UpdateInterval = clkUpdInterval;
    404414        if (len1 > 0) {
    405415          hlpBufferCo += QByteArray(obuffer, len1);
     
    415425      char obuffer[CLOCKORBIT_BUFFERSIZE];
    416426      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
     427        co.UpdateInterval = ephUpdInterval;
    417428        int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 1, obuffer, sizeof(obuffer));
     429        co.UpdateInterval = clkUpdInterval;
    418430        if (len1 > 0) {
    419431          hlpBufferCo += QByteArray(obuffer, len1);
Note: See TracChangeset for help on using the changeset viewer.