Changeset 9025 in ntrip for trunk/BNC/src/combination


Ignore:
Timestamp:
Aug 25, 2020, 11:02:49 PM (4 years ago)
Author:
stuerze
Message:

some modification to allow encoding and decoding of SSR corrections in RTCM-SSR and IGS-SSR formats

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

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r8901 r9025  
    162162  }
    163163
     164  QString ssrFormat;
     165  QListIterator<QString> it(settings.value("uploadMountpointsOut").toStringList());
     166  while (it.hasNext()) {
     167    QStringList hlp = it.next().split(",");
     168    if (hlp.size() > 7) {
     169      ssrFormat = hlp[7];
     170    }
     171  }
     172  _ssrCorr = 0;
     173  if      (ssrFormat == "IGS-SSR") {
     174    _ssrCorr = new SsrCorrIgs();
     175  }
     176  else if (ssrFormat == "RTCM-SSR") {
     177    _ssrCorr = new SsrCorrRtcm();
     178  }
     179
     180
    164181  _rtnetDecoder = 0;
    165182
     
    266283  }
    267284  delete _rtnetDecoder;
     285  if (_ssrCorr) {
     286    delete _ssrCorr;
     287  }
    268288  delete _antex;
    269289  for (int iPar = 1; iPar <= _params.size(); iPar++) {
     
    714734
    715735  QString     outLines;
    716   QStringList corrLines;
     736  //QStringList corrLines;
    717737
    718738  unsigned year, month, day, hour, minute;
     
    770790
    771791    QString line;
    772     int messageType   = COTYPE_GPSCOMBINED;
     792    int messageType   = _ssrCorr->COTYPE_GPSCOMBINED;
    773793    int updateInt     = 0;
    774794    line.sprintf("%d %d %d %.1f %s"
     
    789809                 corr->_orbCorr._dotXr[2],
    790810                 0.0);
    791     corrLines << line;
     811    //corrLines << line;
    792812
    793813    delete corr;
  • trunk/BNC/src/combination/bnccomb.h

    r7299 r9025  
    77#include "bncephuser.h"
    88#include "satObs.h"
     9#include "../RTCM3/clock_and_orbit/clock_orbit_rtcm.h"
     10#include "../RTCM3/clock_and_orbit/clock_orbit_igs.h"
    911
    1012class bncRtnetDecoder;
     
    126128  QMap<QString, QMap<t_prn, t_orbCorr> > _orbCorrections;
    127129  bncEphUser                             _ephUser;
     130  SsrCorr*                               _ssrCorr;
    128131};
    129132
Note: See TracChangeset for help on using the changeset viewer.