Changeset 4754 in ntrip


Ignore:
Timestamp:
Oct 7, 2012, 10:41:59 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4753 r4754  
    263263  // Default Update Interval
    264264  // -----------------------
    265   int clkUpdInterval = 5;
    266   int ephUpdInterval = (_samplRtcmEphCorr != 0.0 ? int(_samplRtcmEphCorr) : 5);
    267 
    268   co.UpdateInterval   = clkUpdInterval;
    269   bias.UpdateInterval = clkUpdInterval;
     265  int clkUpdInd = 2;         // 5 sec
     266  int ephUpdInd = clkUpdInd; // default
     267  if      (_samplRtcmEphCorr ==  10.0) {
     268    ephUpdInd = 3;
     269  }
     270  else if (_samplRtcmEphCorr ==  15.0) {
     271    ephUpdInd = 4;
     272  }
     273  else if (_samplRtcmEphCorr ==  30.0) {
     274    ephUpdInd = 5;
     275  }
     276  else if (_samplRtcmEphCorr ==  60.0) {
     277    ephUpdInd = 6;
     278  }
     279  else if (_samplRtcmEphCorr == 120.0) {
     280    ephUpdInd = 7;
     281  }
     282  else if (_samplRtcmEphCorr == 240.0) {
     283    ephUpdInd = 8;
     284  }
     285  else if (_samplRtcmEphCorr == 300.0) {
     286    ephUpdInd = 9;
     287  }
     288  else if (_samplRtcmEphCorr == 600.0) {
     289    ephUpdInd = 10;
     290  }
     291  else if (_samplRtcmEphCorr == 900.0) {
     292    ephUpdInd = 11;
     293  }
     294
     295  co.UpdateInterval   = clkUpdInd;
     296  bias.UpdateInterval = clkUpdInd;
    270297
    271298  for (int ii = 1; ii < lines.size(); ii++) {
     
    409436      char obuffer[CLOCKORBIT_BUFFERSIZE];
    410437      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    411         co.UpdateInterval = ephUpdInterval;
     438        co.UpdateInterval = ephUpdInd;
    412439        int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 1, obuffer, sizeof(obuffer));
    413         co.UpdateInterval = clkUpdInterval;
     440        co.UpdateInterval = clkUpdInd;
    414441        if (len1 > 0) {
    415442          hlpBufferCo += QByteArray(obuffer, len1);
     
    425452      char obuffer[CLOCKORBIT_BUFFERSIZE];
    426453      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    427         co.UpdateInterval = ephUpdInterval;
     454        co.UpdateInterval = ephUpdInd;
    428455        int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 1, obuffer, sizeof(obuffer));
    429         co.UpdateInterval = clkUpdInterval;
     456        co.UpdateInterval = clkUpdInd;
    430457        if (len1 > 0) {
    431458          hlpBufferCo += QByteArray(obuffer, len1);
Note: See TracChangeset for help on using the changeset viewer.