Changeset 9127 in ntrip
- Timestamp:
- Sep 21, 2020, 9:41:49 PM (4 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncfigure.cpp
r7640 r9127 141 141 int xMax = 640; 142 142 int yMin = 0; 143 int yMax = 140;143 int yMax = 90; 144 144 float xLine = .60; 145 145 … … 203 203 painter.translate(xx-13, int(yMax-yMin)*xLine+65); 204 204 painter.rotate(-90); 205 painter.drawText( 0,0,65,50,Qt::AlignRight,staID.left(5) + " ");205 painter.drawText(-30,0,95,50,Qt::AlignRight,staID.left(10) + " "); 206 206 painter.restore(); 207 207 -
branches/BNC_2.12/src/bncfigurelate.cpp
r7182 r9127 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 * -----------------------------------------------------------------------*/ … … 41 41 #include <iostream> 42 42 43 #include "bncfigurelate.h" 43 #include "bncfigurelate.h" 44 44 #include "bncsettings.h" 45 45 … … 60 60 // Destructor 61 61 //////////////////////////////////////////////////////////////////////////// 62 bncFigureLate::~bncFigureLate() { 62 bncFigureLate::~bncFigureLate() { 63 63 } 64 64 65 // 65 // 66 66 //////////////////////////////////////////////////////////////////////////// 67 67 void bncFigureLate::updateMountPoints() { … … 81 81 } 82 82 83 // 83 // 84 84 //////////////////////////////////////////////////////////////////////////// 85 85 void bncFigureLate::slotNewLatency(const QByteArray staID, double clate) { … … 90 90 } 91 91 92 // 92 // 93 93 //////////////////////////////////////////////////////////////////////////// 94 94 void bncFigureLate::slotNextAnimationFrame() { … … 98 98 } 99 99 100 // 100 // 101 101 //////////////////////////////////////////////////////////////////////////// 102 102 void bncFigureLate::paintEvent(QPaintEvent *) { … … 105 105 int xMax = 640; 106 106 int yMin = 0; 107 int yMax = 140;107 int yMax = 90; 108 108 float xLine = .60; 109 109 … … 165 165 int yy = int(yLength * (it.value() / maxLateRounded)); 166 166 QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]); 167 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 168 QBrush(color,Qt::SolidPattern)); 167 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, QBrush(color,Qt::SolidPattern)); 169 168 painter.setPen(Qt::black); 170 169 if(it.value()<=0) { … … 176 175 painter.translate(xx-13, int(yMax-yMin)*xLine+65); 177 176 painter.rotate(-90); 178 painter.drawText( 0,0,65,50,Qt::AlignRight,staID.left(5) + " ");177 painter.drawText(-30,0,95,50,Qt::AlignRight,staID.left(10) + " "); 179 178 painter.restore(); 180 179 -
branches/BNC_2.12/src/bncgetthread.cpp
r9010 r9127 290 290 if (!_staID.isEmpty() && _latencycheck) { 291 291 _latencyChecker = new latencyChecker(_staID); 292 obs = false; 293 ssrOrb = false; 294 ssrClk = false; 295 ssrOrbClk = false; 296 ssrCbi = false; 297 ssrPbi = false; 298 ssrVtec = false; 299 ssrUra = false; 300 ssrHr = false; 301 _ssrEpoch = 0; 292 _rtcmObs = false; 293 _rtcmSsrOrb = false; 294 _rtcmSsrClk = false; 295 _rtcmSsrOrbClk = false; 296 _rtcmSsrCbi = false; 297 _rtcmSsrPbi = false; 298 _rtcmSsrVtec = false; 299 _rtcmSsrUra = false; 300 _rtcmSsrHr = false; 301 _rtcmSsrIgs = false; 302 _ssrEpoch = 0; 302 303 } else { 303 304 _latencyChecker = 0; … … 465 466 BNC_CORE->stopCombination(); 466 467 BNC_CORE->stopPPP(); 468 sleep(1); 467 469 ::exit(0); 468 470 } … … 515 517 _ssrEpoch = static_cast<int>(decoder()->corrGPSEpochTime()); 516 518 if (_ssrEpoch != -1) { 517 if ( ssrOrb) {519 if (_rtcmSsrOrb) { 518 520 _latencyChecker->checkCorrLatency(_ssrEpoch, 1057); 519 ssrOrb = false;520 } 521 if ( ssrClk) {521 _rtcmSsrOrb = false; 522 } 523 if (_rtcmSsrClk) { 522 524 _latencyChecker->checkCorrLatency(_ssrEpoch, 1058); 523 ssrClk = false;524 } 525 if ( ssrOrbClk) {525 _rtcmSsrClk = false; 526 } 527 if (_rtcmSsrOrbClk) { 526 528 _latencyChecker->checkCorrLatency(_ssrEpoch, 1060); 527 ssrOrbClk = false;528 } 529 if ( ssrCbi) {529 _rtcmSsrOrbClk = false; 530 } 531 if (_rtcmSsrCbi) { 530 532 _latencyChecker->checkCorrLatency(_ssrEpoch, 1059); 531 ssrCbi = false;532 } 533 if ( ssrPbi) {533 _rtcmSsrCbi = false; 534 } 535 if (_rtcmSsrPbi) { 534 536 _latencyChecker->checkCorrLatency(_ssrEpoch, 1265); 535 ssrPbi = false;536 } 537 if ( ssrVtec) {537 _rtcmSsrPbi = false; 538 } 539 if (_rtcmSsrVtec) { 538 540 _latencyChecker->checkCorrLatency(_ssrEpoch, 1264); 539 ssrVtec = false;540 } 541 if ( ssrUra) {541 _rtcmSsrVtec = false; 542 } 543 if (_rtcmSsrUra) { 542 544 _latencyChecker->checkCorrLatency(_ssrEpoch, 1061); 543 ssrUra = false;544 } 545 if ( ssrHr) {545 _rtcmSsrUra = false; 546 } 547 if (_rtcmSsrHr) { 546 548 _latencyChecker->checkCorrLatency(_ssrEpoch, 1062); 547 ssrHr = false; 549 _rtcmSsrHr = false; 550 } 551 if (_rtcmSsrIgs) { 552 _latencyChecker->checkCorrLatency(_ssrEpoch, 4076); 553 _rtcmSsrIgs = false; 548 554 } 549 555 } … … 553 559 (rtcmType >= 1009 && rtcmType <= 1012) || // legacy RTCM OBS 554 560 (rtcmType >= 1071 && rtcmType <= 1137)) { // MSM RTCM OBS 555 obs = true;561 _rtcmObs = true; 556 562 } else if ((rtcmType >= 1057 && rtcmType <= 1068) || 557 (rtcmType >= 1240 && rtcmType <= 1270)) { 563 (rtcmType >= 1240 && rtcmType <= 1270) || 564 (rtcmType == 4076)) { 558 565 switch (rtcmType) { 559 566 case 1057: case 1063: case 1240: case 1246: case 1252: case 1258: 560 ssrOrb = true;567 _rtcmSsrOrb = true; 561 568 break; 562 569 case 1058: case 1064: case 1241: case 1247: case 1253: case 1259: 563 ssrClk = true;570 _rtcmSsrClk = true; 564 571 break; 565 572 case 1060: case 1066: case 1243: case 1249: case 1255: case 1261: 566 ssrOrbClk = true;573 _rtcmSsrOrbClk = true; 567 574 break; 568 case 1059: case 1065: case 1242: 569 ssrCbi = true;575 case 1059: case 1065: case 1242: case 1248: case 1254: case 1260: 576 _rtcmSsrCbi = true; 570 577 break; 571 578 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 572 ssrPbi = true;579 _rtcmSsrPbi = true; 573 580 break; 574 581 case 1264: 575 ssrVtec = true;582 _rtcmSsrVtec = true; 576 583 break; 577 584 case 1061: case 1067: case 1244: case 1250: case 1256: case 1262: 578 ssrUra = true;585 _rtcmSsrUra = true; 579 586 break; 580 587 case 1062: case 1068: case 1245: case 1251: case 1257: case 1263: 581 ssrHr = true;588 _rtcmSsrHr = true; 582 589 break; 583 } 584 } 585 } 586 if (obs) { 590 case 4076: 591 _rtcmSsrIgs = true; 592 break; 593 } 594 } 595 } 596 if (_rtcmObs) { 587 597 _latencyChecker->checkObsLatency(decoder()->_obsList); 588 598 } … … 632 642 _prnLastEpo[prn] = obsTime; 633 643 } 634 635 644 636 645 decoder()->dumpRinexEpoch(obs, _format); -
branches/BNC_2.12/src/bncgetthread.h
r8727 r9127 125 125 QextSerialPort* _serialPort; 126 126 bool _isToBeDeleted; 127 bool obs; 128 bool ssrOrb, ssrClk, ssrOrbClk; 129 bool ssrCbi, ssrPbi; 130 bool ssrVtec; 131 bool ssrUra; 132 bool ssrHr; 127 bool _rtcmObs; 128 bool _rtcmSsrOrb; 129 bool _rtcmSsrClk; 130 bool _rtcmSsrOrbClk; 131 bool _rtcmSsrCbi; 132 bool _rtcmSsrPbi; 133 bool _rtcmSsrVtec; 134 bool _rtcmSsrUra; 135 bool _rtcmSsrHr; 136 bool _rtcmSsrIgs; 133 137 latencyChecker* _latencyChecker; 134 138 QString _miscMount; -
branches/BNC_2.12/src/ephemeris.cpp
r8942 r9127 354 354 return failure; 355 355 } 356 } while ( fabs(E-E_last)*a0 > 0.001 356 } while ( fabs(E-E_last)*a0 > 0.001); 357 357 double v = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) ); 358 358 double u0 = v + _omega; … … 405 405 // ----------------------- 406 406 // correspondent to IGS convention and GPS ICD (and SSR standard) 407 xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 408 407 // xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 408 xc[3] -= 4.442807633e-10 * _e * sqrt(a0) *sin(E); 409 // correspondent to IGS-SSR 409 410 xc[4] = _clock_drift + _clock_driftrate*tc; 410 411 xc[5] = _clock_driftrate; -
branches/BNC_2.12/src/latencychecker.cpp
r8716 r9127 396 396 l._followSec = true; 397 397 } 398 l._oldSec 398 l._oldSec = l._newSec; 399 399 } 400 400 _lObs = l; … … 407 407 void latencyChecker::checkCorrLatency(int corrGPSEpochTime, int type) { 408 408 if (corrGPSEpochTime < 0) { 409 return 409 return; 410 410 } 411 411 t_latency& l = _lOrb; // init 412 412 switch (type) { 413 413 case 1057: case 1063: case 1240: case 1246: case 1252: case 1258: 414 l = _lOrb; l._type = "Orbit"; 414 l = _lOrb; 415 l._type = "RtcmSsrOrbit "; 415 416 break; 416 417 case 1058: case 1064: case 1241: case 1247: case 1253: case 1259: 417 l = _lClk; l._type = "Clock"; 418 l = _lClk; 419 l._type = "RtcmSsrClock "; 418 420 break; 419 421 case 1060: case 1066: case 1243: case 1249: case 1255: case 1261: 420 l = _lClkOrb; l._type = "Clock&Orbit"; 422 l = _lClkOrb; 423 l._type = "RtcmSsrClock&Orbit"; 421 424 break; 422 425 case 1059: case 1065: case 1242: case 1248: case 1254: case 1260: 423 l = _lCb; l._type = "CodeBiases"; 424 break; 425 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 426 l = _lPb; l._type = "PhaseBiases"; 426 l = _lCb; 427 l._type = "RtcmSsrCodeBiases "; 428 break; 429 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 430 l = _lPb; 431 l._type = "RtcmSsrPhaseBiases"; 427 432 break; 428 433 case 1264: 429 l = _lVtec; l._type = "VTEC"; 434 l = _lVtec; 435 l._type = "RtcmSsrVTEC "; 430 436 break; 431 437 case 1061: case 1067: case 1244: case 1250: case 1256: case 1262: 432 l = _lUra; l._type = "URA"; 438 l = _lUra; 439 l._type = "RtcmSsrURA "; 433 440 break; 434 441 case 1062: case 1068: case 1245: case 1251: case 1257: case 1263: 435 l = _lHr; l._type = "HrClock"; 442 l = _lHr; 443 l._type = "RtcmSsrHrClock "; 444 break; 445 case 4076: 446 l = _lSsrIgs; 447 l._type = "RtcmSsrIgs4076 "; 436 448 break; 437 449 default: … … 474 486 l.init(); 475 487 } 476 477 488 if (l._followSec) { 478 489 l._diffSec += l._newSec - l._oldSec; … … 512 523 } 513 524 l._oldSec = l._newSec; 514 } 515 switch (type) { 516 case 1057: case 1063: case 1240: case 1246: case 1252: case 1258: 517 _lOrb = l; 518 break; 519 case 1058: case 1064: case 1241: case 1247: case 1253: case 1259: 520 _lClk = l; 521 break; 522 case 1060: case 1066: case 1243: case 1249: case 1255: case 1261: 523 _lClkOrb = l; 524 break; 525 case 1059: case 1065: case 1242: case 1248: case 1254: case 1260: 526 _lCb = l; 527 break; 528 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 529 _lPb = l; 530 break; 531 case 1264: 532 _lVtec = l; 533 break; 534 case 1061: case 1067: case 1244: case 1250: case 1256: case 1262: 535 _lUra = l; 536 break; 537 case 1062: case 1068: case 1245: case 1251: case 1257: case 1263: 538 _lHr = l; 539 break; 540 } 525 } 526 switch (type) { 527 case 1057: case 1063: case 1240: case 1246: case 1252: case 1258: 528 _lOrb = l; 529 break; 530 case 1058: case 1064: case 1241: case 1247: case 1253: case 1259: 531 _lClk = l; 532 break; 533 case 1060: case 1066: case 1243: case 1249: case 1255: case 1261: 534 _lClkOrb = l; 535 break; 536 case 1059: case 1065: case 1242: case 1248: case 1254: case 1260: 537 _lCb = l; 538 break; 539 case 1265: case 1266: case 1267: case 1268: case 1269: case 1270: 540 _lPb = l; 541 break; 542 case 1264: 543 _lVtec = l; 544 break; 545 case 1061: case 1067: case 1244: case 1250: case 1256: case 1262: 546 _lUra = l; 547 break; 548 case 1062: case 1068: case 1245: case 1251: case 1257: case 1263: 549 _lHr = l; 550 break; 551 case 4076: 552 _lSsrIgs = l; 553 break; 554 } 541 555 } 542 556 -
branches/BNC_2.12/src/latencychecker.h
r8685 r9127 106 106 t_latency _lUra; 107 107 t_latency _lHr; 108 108 t_latency _lSsrIgs; 109 109 110 void setCurrentLatency(double lat) { 110 111 _curLat = lat; -
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r9081 r9127 56 56 57 57 _ssrFormat = ssrFormat; 58 58 59 _ssrCorr = 0; 59 60 if (_ssrFormat == "IGS-SSR") { … … 378 379 379 380 co.UpdateInterval = clkUpdInd; 380 bias.UpdateInterval = clkUpdInd;381 phasebias.UpdateInterval = clkUpdInd;381 bias.UpdateInterval = ephUpdInd; 382 phasebias.UpdateInterval = ephUpdInd; 382 383 383 384 for (int ii = 1; ii < lines.size(); ii++) { … … 473 474 QList<phaseBiasSignal> phaseBiasList; 474 475 phaseBiasesSat pbSat; 476 bool phaseBiasInformationDecoded = false; 475 477 476 478 while (true) { … … 531 533 } 532 534 else if (key == "YawAngle") { 535 phaseBiasInformationDecoded = true; 533 536 in >> numVal >> pbSat.yawAngle; 534 537 if (pbSat.yawAngle < 0.0) { … … 543 546 } 544 547 else if (key == "PhaseBias") { 548 phaseBiasInformationDecoded = true; 545 549 in >> numVal; 546 550 for (int ii = 0; ii < numVal; ii++) { … … 701 705 } 702 706 703 if (phasebiasSat ) {707 if (phasebiasSat && phaseBiasInformationDecoded) { 704 708 phasebias.DispersiveBiasConsistencyIndicator = dispersiveBiasConsistenyIndicator; 705 709 phasebias.MWConsistencyIndicator = mwConsistencyIndicator;
Note:
See TracChangeset
for help on using the changeset viewer.