Changeset 10221 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Oct 6, 2023, 12:31:04 PM (13 months ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r10214 r10221  
    123123////////////////////////////////////////////////////////////////////////////
    124124t_bncCore::~t_bncCore() {
    125   delete _logStream;
    126   delete _logFile;
     125  delete _logStream; _logStream = 0;
     126  delete _logFile;   _logFile   = 0;
    127127  delete _ephStreamGPS;
    128128  delete _ephFileGPS;
  • trunk/BNC/src/bncgetthread.cpp

    r9865 r10221  
    476476        if (data.isEmpty() || BNC_CORE->sigintReceived) {
    477477          emit(newMessage("No more data or Ctrl-C received", true));
     478          BNC_CORE->stopPPP();
    478479          BNC_CORE->stopCombination();
    479           BNC_CORE->stopPPP();
    480480          sleep(2);
    481481          ::exit(5);
     
    802802      // -----------------------
    803803      for (int ii = 0; ii < decoder()->_obsList.size(); ii++) {
    804         t_satObs& obs = decoder()->_obsList[ii]; 
     804        t_satObs& obs = decoder()->_obsList[ii];
    805805        QVector<QString>& rnxTypes = _rnxTypes[obs._prn.system()];
    806806        bool allFound = true;
  • trunk/BNC/src/bncmain.cpp

    r10127 r10221  
    569569    BNC_CORE->stopPPP();
    570570    BNC_CORE->stopCombination();
     571    sleep(2);
    571572  }
    572573  if (caster) {
  • trunk/BNC/src/combination/bncbiassnx.cpp

    r10216 r10221  
    264264        if  (cb.contains("C1X") && cb.contains("C2X")) {cb.insert("C1X-C2X", cb["C1X"] - cb["C2X"]);}
    265265        if  (cb.contains("C1X") && cb.contains("C5X")) {cb.insert("C1X-C5X", cb["C1X"] - cb["C5X"]);}
     266        break;
    266267      default:
    267268        break;
     
    271272}
    272273
    273 // get DSBs from OSBs
     274//
    274275////////////////////////////////////////////////////////////////////////////
    275276t_irc bncBiasSnx::cleanDsb() {
    276   for (auto itS = _snxSatCodeBiasMap.begin(); itS != _snxSatCodeBiasMap.end();){
    277     if (!_useGnss[itS.key().at(0).toLatin1()]) {
     277
     278  for (auto itS = _snxSatCodeBiasMap.begin(); itS != _snxSatCodeBiasMap.end();) {
     279    char sys = itS.key().at(0).toLatin1();
     280    if (!_useGnss[sys]) {
     281      delete itS.value();
    278282      itS = _snxSatCodeBiasMap.erase(itS);
    279283    }
  • trunk/BNC/src/combination/bnccomb.cpp

    r10216 r10221  
    174174      newAC->name         = hlp[1];
    175175      newAC->weightFactor = hlp[2].toDouble();
    176       newAC->isAPC = (newAC->mountPoint.mid(0,4) =="SSRA");
     176      newAC->isAPC = bool(newAC->mountPoint.mid(0,4) == "SSRA");
    177177      QMapIterator<char, unsigned> itSys(_cmbSysPrn);
    178178      // init
     
    301301    _MAXRES = 999.0;
    302302  }
     303
    303304}
    304305
     
    306307////////////////////////////////////////////////////////////////////////////
    307308bncComb::~bncComb() {
     309
    308310  QListIterator<cmbAC*> icAC(_ACs);
    309311  while (icAC.hasNext()) {
     
    315317  if (_ssrCorr) {
    316318    delete _ssrCorr;
    317 
    318   }
     319  }
     320
    319321  delete _antex;
    320322  delete _bsx;
     
    10501052    clkCorrections.push_back(clkCorr);
    10511053
    1052 
    10531054    ColumnVector xc(6);
    10541055    ColumnVector vv(3);
     
    10621063    // Correction Phase Center --> CoM
    10631064    // -------------------------------
    1064 
    10651065    ColumnVector dx(3);   dx = 0.0;
    10661066    ColumnVector apc(3); apc = 0.0;
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r10124 r10221  
    862862    }
    863863    if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    864       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     864      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    865865      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    866866        co.UpdateInterval = ephUpdInd;
     
    883883    }
    884884    if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
    885       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     885      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    886886      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    887887        co.UpdateInterval = ephUpdInd;
     
    903903    }
    904904    if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
    905       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     905      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    906906      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    907907        co.UpdateInterval = ephUpdInd;
     
    922922    }
    923923    if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
    924       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     924      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    925925      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    926926        co.UpdateInterval = ephUpdInd;
     
    940940    }
    941941    if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    942       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     942      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    943943      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    944944        co.UpdateInterval = ephUpdInd;
     
    968968      || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
    969969      || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    970     char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     970    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    971971    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    972972      int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    987987      || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0)
    988988      && (_phaseBiasInformationDecoded)) {
    989     char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     989    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    990990    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    991991      int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    10001000  QByteArray hlpBufferVtec;
    10011001  if (vtec.NumLayers > 0) {
    1002     char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     1002    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    10031003    int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
    10041004    if (len > 0) {
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r9853 r10221  
    294294    msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1()
    295295        + "\r\n" + "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n";
     296    _outSocket->write(msg);
     297    _outSocket->waitForBytesWritten();
     298    _outSocket->waitForReadyRead();
    296299  } else {
    297300    msg = "POST " + _postExtension.toLatin1() + "/" + _mountpoint.toLatin1()
     
    301304        + "User-Agent: NTRIP BNC/" BNCVERSION " (" + BNC_OS + ")\r\n"
    302305        + "Connection: close\r\n" + "Transfer-Encoding: chunked\r\n\r\n";
    303   }
    304   _outSocket->write(msg);
    305   _outSocket->waitForBytesWritten();
    306   _outSocket->waitForReadyRead();
     306    _outSocket->write(msg);
     307    _outSocket->waitForBytesWritten();
     308    _outSocket->waitForReadyRead();
     309  }
    307310
    308311   QByteArray ans = _outSocket->readAll();
Note: See TracChangeset for help on using the changeset viewer.