Changeset 10537 in ntrip for trunk/BNC/src/upload


Ignore:
Timestamp:
Sep 18, 2024, 4:40:57 PM (3 months ago)
Author:
stuerze
Message:

Service and RTCM CRS encoding usage added

Location:
trunk/BNC/src/upload
Files:
2 edited

Legend:

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

    r10533 r10537  
    10601060  }
    10611061
    1062   _outBuffer += hlpBufferCo + hlpBufferBias + hlpBufferPhaseBias + hlpBufferVtec + '\0';
     1062  // Service CRS
     1063  // -----------
     1064  QByteArray hlpBufferServiceCrs;
     1065  if (sizeof(serviceCrs._name) > 0) {
     1066    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
     1067    int len = t_crsEncoder::RTCM3(serviceCrs, obuffer, sizeof(obuffer));
     1068    if (len > 0) {
     1069      hlpBufferServiceCrs = QByteArray(obuffer, len);
     1070    }
     1071  }
     1072
     1073  // RTCM CRS
     1074  // --------
     1075  QByteArray hlpBufferRtcmCrs;
     1076  if (sizeof(rtcmCrs._name) > 0) {
     1077    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
     1084  _outBuffer += hlpBufferCo + hlpBufferBias + hlpBufferPhaseBias + hlpBufferVtec
     1085      + hlpBufferServiceCrs + hlpBufferRtcmCrs + '\0';
    10631086}
    10641087//
  • trunk/BNC/src/upload/bncrtnetuploadcaster.h

    r10533 r10537  
    1010#include "../RTCM3/clock_and_orbit/clock_orbit_igs.h"
    1111#include "../RTCM3/crs.h"
     12#include "../RTCM3/crsEncoder.h"
    1213
    1314class bncEphUser;
Note: See TracChangeset for help on using the changeset viewer.