Changeset 10221 in ntrip for trunk/BNC/src
- Timestamp:
- Oct 6, 2023, 12:31:04 PM (13 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r10214 r10221 123 123 //////////////////////////////////////////////////////////////////////////// 124 124 t_bncCore::~t_bncCore() { 125 delete _logStream; 126 delete _logFile; 125 delete _logStream; _logStream = 0; 126 delete _logFile; _logFile = 0; 127 127 delete _ephStreamGPS; 128 128 delete _ephFileGPS; -
trunk/BNC/src/bncgetthread.cpp
r9865 r10221 476 476 if (data.isEmpty() || BNC_CORE->sigintReceived) { 477 477 emit(newMessage("No more data or Ctrl-C received", true)); 478 BNC_CORE->stopPPP(); 478 479 BNC_CORE->stopCombination(); 479 BNC_CORE->stopPPP();480 480 sleep(2); 481 481 ::exit(5); … … 802 802 // ----------------------- 803 803 for (int ii = 0; ii < decoder()->_obsList.size(); ii++) { 804 t_satObs& obs = decoder()->_obsList[ii]; 804 t_satObs& obs = decoder()->_obsList[ii]; 805 805 QVector<QString>& rnxTypes = _rnxTypes[obs._prn.system()]; 806 806 bool allFound = true; -
trunk/BNC/src/bncmain.cpp
r10127 r10221 569 569 BNC_CORE->stopPPP(); 570 570 BNC_CORE->stopCombination(); 571 sleep(2); 571 572 } 572 573 if (caster) { -
trunk/BNC/src/combination/bncbiassnx.cpp
r10216 r10221 264 264 if (cb.contains("C1X") && cb.contains("C2X")) {cb.insert("C1X-C2X", cb["C1X"] - cb["C2X"]);} 265 265 if (cb.contains("C1X") && cb.contains("C5X")) {cb.insert("C1X-C5X", cb["C1X"] - cb["C5X"]);} 266 break; 266 267 default: 267 268 break; … … 271 272 } 272 273 273 // get DSBs from OSBs274 // 274 275 //////////////////////////////////////////////////////////////////////////// 275 276 t_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(); 278 282 itS = _snxSatCodeBiasMap.erase(itS); 279 283 } -
trunk/BNC/src/combination/bnccomb.cpp
r10216 r10221 174 174 newAC->name = hlp[1]; 175 175 newAC->weightFactor = hlp[2].toDouble(); 176 newAC->isAPC = (newAC->mountPoint.mid(0,4) =="SSRA");176 newAC->isAPC = bool(newAC->mountPoint.mid(0,4) == "SSRA"); 177 177 QMapIterator<char, unsigned> itSys(_cmbSysPrn); 178 178 // init … … 301 301 _MAXRES = 999.0; 302 302 } 303 303 304 } 304 305 … … 306 307 //////////////////////////////////////////////////////////////////////////// 307 308 bncComb::~bncComb() { 309 308 310 QListIterator<cmbAC*> icAC(_ACs); 309 311 while (icAC.hasNext()) { … … 315 317 if (_ssrCorr) { 316 318 delete _ssrCorr; 317 318 } 319 } 320 319 321 delete _antex; 320 322 delete _bsx; … … 1050 1052 clkCorrections.push_back(clkCorr); 1051 1053 1052 1053 1054 ColumnVector xc(6); 1054 1055 ColumnVector vv(3); … … 1062 1063 // Correction Phase Center --> CoM 1063 1064 // ------------------------------- 1064 1065 1065 ColumnVector dx(3); dx = 0.0; 1066 1066 ColumnVector apc(3); apc = 0.0; -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r10124 r10221 862 862 } 863 863 if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) { 864 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};864 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 865 865 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 866 866 co.UpdateInterval = ephUpdInd; … … 883 883 } 884 884 if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) { 885 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};885 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 886 886 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 887 887 co.UpdateInterval = ephUpdInd; … … 903 903 } 904 904 if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) { 905 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};905 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 906 906 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 907 907 co.UpdateInterval = ephUpdInd; … … 922 922 } 923 923 if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) { 924 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};924 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 925 925 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 926 926 co.UpdateInterval = ephUpdInd; … … 940 940 } 941 941 if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) { 942 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};942 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 943 943 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 944 944 co.UpdateInterval = ephUpdInd; … … 968 968 || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0 969 969 || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) { 970 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};970 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 971 971 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 972 972 int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer)); … … 987 987 || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) 988 988 && (_phaseBiasInformationDecoded)) { 989 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};989 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 990 990 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 991 991 int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer)); … … 1000 1000 QByteArray hlpBufferVtec; 1001 1001 if (vtec.NumLayers > 0) { 1002 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};1002 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 1003 1003 int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer)); 1004 1004 if (len > 0) { -
trunk/BNC/src/upload/bncuploadcaster.cpp
r9853 r10221 294 294 msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1() 295 295 + "\r\n" + "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n"; 296 _outSocket->write(msg); 297 _outSocket->waitForBytesWritten(); 298 _outSocket->waitForReadyRead(); 296 299 } else { 297 300 msg = "POST " + _postExtension.toLatin1() + "/" + _mountpoint.toLatin1() … … 301 304 + "User-Agent: NTRIP BNC/" BNCVERSION " (" + BNC_OS + ")\r\n" 302 305 + "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 } 307 310 308 311 QByteArray ans = _outSocket->readAll();
Note:
See TracChangeset
for help on using the changeset viewer.