Changeset 9124 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 21, 2020, 3:11:55 PM (4 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r9088 r9124 1626 1626 * else. */ 1627 1627 if ((id >= 1057 && id <= 1068) || 1628 1629 1628 (id >= 1240 && id <= 1270) || 1629 (id == 4076)) { 1630 1630 if (!_coDecoders.contains(_staID.toLatin1())) { 1631 1631 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID); -
trunk/BNC/src/bnccaster.cpp
r9107 r9124 485 485 QTime nextShotTime; 486 486 if (settings.value("onTheFlyInterval").toString() == "1 min") { 487 488 487 _confInterval = 60; 488 nextShotTime = QTime(currTime.hour(), currTime.minute()+1, 0); 489 489 } 490 490 else if (settings.value("onTheFlyInterval").toString() == "5 min") { -
trunk/BNC/src/bncfigure.cpp
r8252 r9124 147 147 int xMax = 640; 148 148 int yMin = 0; 149 int yMax = 140;149 int yMax = 90; 150 150 float xLine = .60; 151 151 … … 209 209 painter.translate(xx-13, int(yMax-yMin)*xLine+65); 210 210 painter.rotate(-90); 211 painter.drawText( 0,0,65,50,Qt::AlignRight,staID.left(5) + " ");211 painter.drawText(-30,0,95,50,Qt::AlignRight,staID.left(10) + " "); 212 212 painter.restore(); 213 213 -
trunk/BNC/src/bncfigurelate.cpp
r8252 r9124 29 29 * Class: bncFigureLate 30 30 * 31 * Purpose: 31 * Purpose: 32 32 * 33 33 * Author: Perlt, Mervart … … 35 35 * Created: 11-Nov-2009 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 48 48 #include <QVariant> 49 49 50 #include "bncfigurelate.h" 50 #include "bncfigurelate.h" 51 51 #include "bncsettings.h" 52 52 … … 67 67 // Destructor 68 68 //////////////////////////////////////////////////////////////////////////// 69 bncFigureLate::~bncFigureLate() { 69 bncFigureLate::~bncFigureLate() { 70 70 } 71 71 72 // 72 // 73 73 //////////////////////////////////////////////////////////////////////////// 74 74 void bncFigureLate::updateMountPoints() { … … 88 88 } 89 89 90 // 90 // 91 91 //////////////////////////////////////////////////////////////////////////// 92 92 void bncFigureLate::slotNewLatency(const QByteArray staID, double clate) { … … 97 97 } 98 98 99 // 99 // 100 100 //////////////////////////////////////////////////////////////////////////// 101 101 void bncFigureLate::slotNextAnimationFrame() { … … 105 105 } 106 106 107 // 107 // 108 108 //////////////////////////////////////////////////////////////////////////// 109 109 void bncFigureLate::paintEvent(QPaintEvent *) { … … 112 112 int xMax = 640; 113 113 int yMin = 0; 114 int yMax = 140;114 int yMax = 90; 115 115 float xLine = .60; 116 116 … … 172 172 int yy = int(yLength * (it.value() / maxLateRounded)); 173 173 QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]); 174 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 175 QBrush(color,Qt::SolidPattern)); 174 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, QBrush(color,Qt::SolidPattern)); 176 175 painter.setPen(Qt::black); 177 176 if(it.value()<=0) { … … 183 182 painter.translate(xx-13, int(yMax-yMin)*xLine+65); 184 183 painter.rotate(-90); 185 painter.drawText( 0,0,65,50,Qt::AlignRight,staID.left(5) + " ");184 painter.drawText(-30,0,95,50,Qt::AlignRight,staID.left(10) + " "); 186 185 painter.restore(); 187 186 -
trunk/BNC/src/bncgetthread.cpp
r9017 r9124 297 297 if (!_staID.isEmpty() && _latencycheck) { 298 298 _latencyChecker = new latencyChecker(_staID); 299 obs = false; 300 ssrOrb = false; 301 ssrClk = false; 302 ssrOrbClk = false; 303 ssrCbi = false; 304 ssrPbi = false; 305 ssrVtec = false; 306 ssrUra = false; 307 ssrHr = false; 308 _ssrEpoch = 0; 299 _rtcmObs = false; 300 _rtcmSsrOrb = false; 301 _rtcmSsrClk = false; 302 _rtcmSsrOrbClk = false; 303 _rtcmSsrCbi = false; 304 _rtcmSsrPbi = false; 305 _rtcmSsrVtec = false; 306 _rtcmSsrUra = false; 307 _rtcmSsrHr = false; 308 _rtcmSsrIgs = false; 309 _ssrEpoch = 0; 309 310 } else { 310 311 _latencyChecker = 0; … … 524 525 _ssrEpoch = static_cast<int>(decoder()->corrGPSEpochTime()); 525 526 if (_ssrEpoch != -1) { 526 if ( ssrOrb) {527 if (_rtcmSsrOrb) { 527 528 _latencyChecker->checkCorrLatency(_ssrEpoch, 1057); 528 ssrOrb = false;529 } 530 if ( ssrClk) {529 _rtcmSsrOrb = false; 530 } 531 if (_rtcmSsrClk) { 531 532 _latencyChecker->checkCorrLatency(_ssrEpoch, 1058); 532 ssrClk = false;533 } 534 if ( ssrOrbClk) {533 _rtcmSsrClk = false; 534 } 535 if (_rtcmSsrOrbClk) { 535 536 _latencyChecker->checkCorrLatency(_ssrEpoch, 1060); 536 ssrOrbClk = false;537 } 538 if ( ssrCbi) {537 _rtcmSsrOrbClk = false; 538 } 539 if (_rtcmSsrCbi) { 539 540 _latencyChecker->checkCorrLatency(_ssrEpoch, 1059); 540 ssrCbi = false;541 } 542 if ( ssrPbi) {541 _rtcmSsrCbi = false; 542 } 543 if (_rtcmSsrPbi) { 543 544 _latencyChecker->checkCorrLatency(_ssrEpoch, 1265); 544 ssrPbi = false;545 } 546 if ( ssrVtec) {545 _rtcmSsrPbi = false; 546 } 547 if (_rtcmSsrVtec) { 547 548 _latencyChecker->checkCorrLatency(_ssrEpoch, 1264); 548 ssrVtec = false;549 } 550 if ( ssrUra) {549 _rtcmSsrVtec = false; 550 } 551 if (_rtcmSsrUra) { 551 552 _latencyChecker->checkCorrLatency(_ssrEpoch, 1061); 552 ssrUra = false;553 } 554 if ( ssrHr) {553 _rtcmSsrUra = false; 554 } 555 if (_rtcmSsrHr) { 555 556 _latencyChecker->checkCorrLatency(_ssrEpoch, 1062); 556 ssrHr = false; 557 _rtcmSsrHr = false; 558 } 559 if (_rtcmSsrIgs) { 560 _latencyChecker->checkCorrLatency(_ssrEpoch, 4076); 561 _rtcmSsrIgs = false; 557 562 } 558 563 } … … 562 567 (rtcmType >= 1009 && rtcmType <= 1012) || // legacy RTCM OBS 563 568 (rtcmType >= 1071 && rtcmType <= 1137)) { // MSM RTCM OBS 564 obs = true;569 _rtcmObs = true; 565 570 } else if ((rtcmType >= 1057 && rtcmType <= 1068) || 566 (rtcmType >= 1240 && rtcmType <= 1270)) { 571 (rtcmType >= 1240 && rtcmType <= 1270) || 572 (rtcmType == 4076)) { 567 573 switch (rtcmType) { 568 574 case 1057: case 1063: case 1240: case 1246: case 1252: case 1258: 569 ssrOrb = true;575 _rtcmSsrOrb = true; 570 576 break; 571 577 case 1058: case 1064: case 1241: case 1247: case 1253: case 1259: 572 ssrClk = true;578 _rtcmSsrClk = true; 573 579 break; 574 580 case 1060: case 1066: case 1243: case 1249: case 1255: case 1261: 575 ssrOrbClk = true;581 _rtcmSsrOrbClk = true; 576 582 break; 577 583 case 1059: case 1065: case 1242: case 1248: case 1254: case 1260: 578 ssrCbi = true;584 _rtcmSsrCbi = true; 579 585 break; 580 586 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 581 ssrPbi = true;587 _rtcmSsrPbi = true; 582 588 break; 583 589 case 1264: 584 ssrVtec = true;590 _rtcmSsrVtec = true; 585 591 break; 586 592 case 1061: case 1067: case 1244: case 1250: case 1256: case 1262: 587 ssrUra = true;593 _rtcmSsrUra = true; 588 594 break; 589 595 case 1062: case 1068: case 1245: case 1251: case 1257: case 1263: 590 ssrHr = true;596 _rtcmSsrHr = true; 591 597 break; 592 } 593 } 594 } 595 if (obs) { 598 case 4076: 599 _rtcmSsrIgs = true; 600 break; 601 } 602 } 603 } 604 if (_rtcmObs) { 596 605 _latencyChecker->checkObsLatency(decoder()->_obsList); 597 606 } -
trunk/BNC/src/bncgetthread.h
r8730 r9124 126 126 QextSerialPort* _serialPort; 127 127 bool _isToBeDeleted; 128 bool obs; 129 bool ssrOrb, ssrClk, ssrOrbClk; 130 bool ssrCbi, ssrPbi; 131 bool ssrVtec; 132 bool ssrUra; 133 bool ssrHr; 128 bool _rtcmObs; 129 bool _rtcmSsrOrb; 130 bool _rtcmSsrClk; 131 bool _rtcmSsrOrbClk; 132 bool _rtcmSsrCbi; 133 bool _rtcmSsrPbi; 134 bool _rtcmSsrVtec; 135 bool _rtcmSsrUra; 136 bool _rtcmSsrHr; 137 bool _rtcmSsrIgs; 134 138 latencyChecker* _latencyChecker; 135 139 QString _miscMount; -
trunk/BNC/src/ephemeris.cpp
r8964 r9124 402 402 // ----------------------- 403 403 // correspondent to IGS convention and GPS ICD (and SSR standard) 404 xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 405 404 // xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 405 xc[3] -= 4.442807633e-10 * _e * sqrt(a0) *sin(E); 406 // correspondent to IGS-SSR 406 407 xc[4] = _clock_drift + _clock_driftrate*tc; 407 408 xc[5] = _clock_driftrate; -
trunk/BNC/src/latencychecker.cpp
r8678 r9124 419 419 switch (type) { 420 420 case 1057: case 1063: case 1240: case 1246: case 1252: case 1258: 421 l = _lOrb; l._type = "Orbit"; 421 l = _lOrb; 422 l._type = "RtcmSsrOrbit "; 422 423 break; 423 424 case 1058: case 1064: case 1241: case 1247: case 1253: case 1259: 424 l = _lClk; l._type = "Clock"; 425 l = _lClk; 426 l._type = "RtcmSsrClock "; 425 427 break; 426 428 case 1060: case 1066: case 1243: case 1249: case 1255: case 1261: 427 l = _lClkOrb; l._type = "Clock&Orbit"; 429 l = _lClkOrb; 430 l._type = "RtcmSsrClock&Orbit"; 428 431 break; 429 432 case 1059: case 1065: case 1242: case 1248: case 1254: case 1260: 430 l = _lCb; l._type = "CodeBiases"; 431 break; 432 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 433 l = _lPb; l._type = "PhaseBiases"; 433 l = _lCb; 434 l._type = "RtcmSsrCodeBiases "; 435 break; 436 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 437 l = _lPb; 438 l._type = "RtcmSsrPhaseBiases"; 434 439 break; 435 440 case 1264: 436 l = _lVtec; l._type = "VTEC"; 441 l = _lVtec; 442 l._type = "RtcmSsrVTEC "; 437 443 break; 438 444 case 1061: case 1067: case 1244: case 1250: case 1256: case 1262: 439 l = _lUra; l._type = "URA"; 445 l = _lUra; 446 l._type = "RtcmSsrURA "; 440 447 break; 441 448 case 1062: case 1068: case 1245: case 1251: case 1257: case 1263: 442 l = _lHr; l._type = "HrClock"; 449 l = _lHr; 450 l._type = "RtcmSsrHrClock "; 451 break; 452 case 4076: 453 l = _lSsrIgs; 454 l._type = "RtcmSsrIgs4076 "; 443 455 break; 444 456 default: … … 545 557 _lHr = l; 546 558 break; 559 case 4076: 560 _lSsrIgs = l; 561 break; 547 562 } 548 563 } -
trunk/BNC/src/latencychecker.h
r8689 r9124 107 107 t_latency _lUra; 108 108 t_latency _lHr; 109 t_latency _lSsrIgs; 109 110 void setCurrentLatency(double lat) { 110 111 _curLat = lat; -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9034 r9124 57 57 58 58 _ssrFormat = ssrFormat; 59 59 60 60 _ssrCorr = 0; 61 61 if (_ssrFormat == "IGS-SSR") { … … 380 380 381 381 co.UpdateInterval = clkUpdInd; 382 bias.UpdateInterval = clkUpdInd;383 phasebias.UpdateInterval = clkUpdInd;382 bias.UpdateInterval = ephUpdInd; 383 phasebias.UpdateInterval = ephUpdInd; 384 384 385 385 for (int ii = 1; ii < lines.size(); ii++) { … … 476 476 QList<phaseBiasSignal> phaseBiasList; 477 477 phaseBiasesSat pbSat; 478 bool phaseBiasInformationDecoded = false; 478 479 479 480 while (true) { … … 534 535 } 535 536 else if (key == "YawAngle") { 537 phaseBiasInformationDecoded = true; 536 538 in >> numVal >> pbSat.yawAngle; 537 539 if (pbSat.yawAngle < 0.0) { … … 546 548 } 547 549 else if (key == "PhaseBias") { 550 phaseBiasInformationDecoded = true; 548 551 in >> numVal; 549 552 for (int ii = 0; ii < numVal; ii++) { … … 704 707 } 705 708 706 if (phasebiasSat ) {709 if (phasebiasSat && phaseBiasInformationDecoded) { 707 710 phasebias.DispersiveBiasConsistencyIndicator = dispersiveBiasConsistenyIndicator; 708 711 phasebias.MWConsistencyIndicator = mwConsistencyIndicator;
Note:
See TracChangeset
for help on using the changeset viewer.