Ignore:
Timestamp:
Aug 27, 2020, 9:36:18 AM (4 years ago)
Author:
stuerze
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/combination/bnccomb.cpp

    r8696 r9036  
    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
    164180  _rtnetDecoder = 0;
    165181
     
    266282  }
    267283  delete _rtnetDecoder;
     284  if (_ssrCorr) {
     285    delete _ssrCorr;
     286  }
    268287  delete _antex;
    269288  for (int iPar = 1; iPar <= _params.size(); iPar++) {
     
    714733
    715734  QString     outLines;
    716   QStringList corrLines;
     735  //QStringList corrLines;
    717736
    718737  unsigned year, month, day, hour, minute;
     
    770789
    771790    QString line;
    772     int messageType   = COTYPE_GPSCOMBINED;
     791    int messageType   = _ssrCorr->COTYPE_GPSCOMBINED;
    773792    int updateInt     = 0;
    774793    line.sprintf("%d %d %d %.1f %s"
     
    789808                 corr->_orbCorr._dotXr[2],
    790809                 0.0);
    791     corrLines << line;
     810    //corrLines << line;
    792811
    793812    delete corr;
     
    883902    }
    884903//    if (_useGlonass) {
    885 //      for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
     904//      for (unsigned iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
    886905//        QString prn = QString("R%1_0").arg(iGlo, 2, 10, QChar('0'));
    887906//        ++iCond;
Note: See TracChangeset for help on using the changeset viewer.