Changeset 10541 in ntrip


Ignore:
Timestamp:
Sep 18, 2024, 5:44:49 PM (7 weeks ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r10537 r10541  
    10541054  if (vtec.NumLayers > 0) {
    10551055    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    1056     int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
    1057     if (len > 0) {
    1058       hlpBufferVtec = QByteArray(obuffer, len);
     1056    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
     1057      int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
     1058      if (len > 0) {
     1059        hlpBufferVtec = QByteArray(obuffer, len);
     1060      }
    10591061    }
    10601062  }
     
    10651067  if (sizeof(serviceCrs._name) > 0) {
    10661068    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    1067     int len = t_crsEncoder::RTCM3(serviceCrs, obuffer, sizeof(obuffer));
    1068     if (len > 0) {
    1069       hlpBufferServiceCrs = QByteArray(obuffer, len);
     1069    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
     1070      int len = t_crsEncoder::RTCM3(serviceCrs, obuffer, sizeof(obuffer));
     1071      if (len > 0) {
     1072        hlpBufferServiceCrs = QByteArray(obuffer, len);
     1073      }
    10701074    }
    10711075  }
     
    10761080  if (sizeof(rtcmCrs._name) > 0) {
    10771081    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    1078     int len = t_crsEncoder::RTCM3(rtcmCrs, obuffer, sizeof(obuffer));
    1079     if (len > 0) {
    1080       hlpBufferRtcmCrs = QByteArray(obuffer, len);
    1081     }
    1082   }
    1083 
     1082    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
     1083      int len = t_crsEncoder::RTCM3(rtcmCrs, obuffer, sizeof(obuffer));
     1084      if (len > 0) {
     1085        hlpBufferRtcmCrs = QByteArray(obuffer, len);
     1086      }
     1087    }
     1088  }
     1089
     1090  // Create OutBuffer
     1091  // ----------------
    10841092  _outBuffer += hlpBufferCo + hlpBufferBias + hlpBufferPhaseBias + hlpBufferVtec
    10851093      + hlpBufferServiceCrs + hlpBufferRtcmCrs + '\0';
Note: See TracChangeset for help on using the changeset viewer.