Changeset 6322 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 12, 2014, 5:20:13 PM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r6318 r6322 69 69 _navFileNames = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts); 70 70 71 connect(this, SIGNAL(dspSkyPlot(const QString&, const Q ByteArray&, QVector<t_polarPoint*>*,72 const Q ByteArray&, QVector<t_polarPoint*>*,71 connect(this, SIGNAL(dspSkyPlot(const QString&, const QString&, QVector<t_polarPoint*>*, 72 const QString&, QVector<t_polarPoint*>*, 73 73 const QByteArray&, double)), 74 this, SLOT(slotDspSkyPlot(const QString&, const Q ByteArray&, QVector<t_polarPoint*>*,75 const Q ByteArray&, QVector<t_polarPoint*>*,74 this, SLOT(slotDspSkyPlot(const QString&, const QString&, QVector<t_polarPoint*>*, 75 const QString&, QVector<t_polarPoint*>*, 76 76 const QByteArray&, double))); 77 77 … … 297 297 // --------------------------- 298 298 for (unsigned ii = 0; ii < satObs._obs.size(); ii++) { 299 300 299 const t_frqObs* frqObs = satObs._obs[ii]; 301 300 … … 308 307 qcFrq._phaseValid = frqObs->_phaseValid; 309 308 qcFrq._codeValid = frqObs->_codeValid; 310 311 309 // Check Gaps 312 310 // ---------- … … 355 353 } 356 354 } 357 355 else if (satObs._prn.system() == 'J') { 356 if (frqObs->_rnxType2ch[0] == '1') { 357 fA = t_frequency::J1; 358 fB = t_frequency::J2; 359 } 360 else if (frqObs->_rnxType2ch[0] == '2') { 361 fA = t_frequency::J2; 362 fB = t_frequency::J1; 363 } 364 } 365 else if (satObs._prn.system() == 'S') { 366 if (frqObs->_rnxType2ch[0] == '1') { 367 fA = t_frequency::S1; 368 fB = t_frequency::S5; 369 } 370 else if (frqObs->_rnxType2ch[0] == '5') { 371 fA = t_frequency::S5; 372 fB = t_frequency::S1; 373 } 374 } 375 else if (satObs._prn.system() == 'C') { 376 if (frqObs->_rnxType2ch[0] == '1') { 377 fA = t_frequency::C1; 378 fB = t_frequency::C7; 379 } 380 else if (frqObs->_rnxType2ch[0] == '7') { 381 fA = t_frequency::C7; 382 fB = t_frequency::C1; 383 } 384 } 358 385 if (fA != t_frequency::dummy && fB != t_frequency::dummy) { 359 386 double f_a = t_CST::freq(fA, qcSat._slotNum); … … 409 436 const QString& frqType = itFrq.key(); 410 437 t_qcFrqSum& qcFrqSum = itFrq.value(); 411 412 438 413 439 // Loop over all Chunks of Data … … 494 520 bncSettings settings; 495 521 QString reqSkyPlotSystems = settings.value("reqcSkyPlotSystems").toString(); 496 bool plotGPS = false; 497 bool plotGlo = false; 498 bool plotGal = false; 522 bool plotGPS = false; 523 bool plotGlo = false; 524 bool plotGal = false; 525 bool plotQZSS = false; 526 bool plotSBAS = false; 527 bool plotBDS = false; 528 QString mp1Title = reqSkyPlotSystems + ": MP"; 529 QString mp2Title = reqSkyPlotSystems + ": MP"; 530 QString snr1Title = reqSkyPlotSystems + ": SNR"; 531 QString snr2Title = reqSkyPlotSystems + ": SNR"; 532 char freq1 = '1'; 533 char freq2 = '2'; 499 534 if (reqSkyPlotSystems == "GPS") { 500 535 plotGPS = true; … … 505 540 else if (reqSkyPlotSystems == "Galileo") { 506 541 plotGal = true; 542 freq2 = '5'; 543 } 544 else if (reqSkyPlotSystems == "QZSS") { 545 plotQZSS = true; 546 } 547 else if (reqSkyPlotSystems == "SBAS") { 548 plotSBAS = true; 549 freq2 = '5'; 550 } 551 else if (reqSkyPlotSystems == "BDS") { 552 plotBDS = true; 553 freq2 = '7'; 507 554 } 508 555 else if (reqSkyPlotSystems == "ALL") { … … 510 557 plotGlo = true; 511 558 plotGal = true; 559 plotQZSS = true; 560 plotSBAS = true; 561 plotBDS = true; 512 562 } 513 563 else { 514 564 return; 515 565 } 566 mp1Title += freq1; 567 mp2Title += freq2; 568 snr1Title += freq1; 569 snr2Title += freq2; 516 570 517 571 QVector<t_polarPoint*>* dataMP1 = new QVector<t_polarPoint*>; … … 531 585 if ( (prn.system() == 'G' && plotGPS) || 532 586 (prn.system() == 'R' && plotGlo) || 533 (prn.system() == 'E' && plotGal) ) { 587 (prn.system() == 'E' && plotGal) || 588 (prn.system() == 'J' && plotQZSS) || 589 (prn.system() == 'S' && plotSBAS) || 590 (prn.system() == 'C' && plotBDS) ) { 534 591 535 592 if (qcSat._eleSet) { … … 538 595 for (int iFrq = 0; iFrq < qcSat._qcFrq.size(); iFrq++) { 539 596 const t_qcFrq& qcFrq = qcSat._qcFrq[iFrq]; 540 if (qcFrq._rnxType2ch[0] == '1'&& frqType1.isEmpty()) {597 if (qcFrq._rnxType2ch[0] == freq1 && frqType1.isEmpty()) { 541 598 frqType1 = qcFrq._rnxType2ch; 542 599 } 543 if (qcFrq._rnxType2ch[0] == '2'&& frqType2.isEmpty()) {600 if (qcFrq._rnxType2ch[0] == freq2 && frqType2.isEmpty()) { 544 601 frqType2 = qcFrq._rnxType2ch; 545 602 } … … 563 620 QFileInfo fileInfo(obsFile->fileName()); 564 621 QByteArray title = fileInfo.fileName().toAscii(); 565 emit dspSkyPlot(obsFile->fileName(), "MP1", dataMP1, "MP2", dataMP2, "Meters", 2.0); 566 emit dspSkyPlot(obsFile->fileName(), "SNR1", dataSNR1, "SNR2", dataSNR2, "dbHz", 54.0); 622 emit dspSkyPlot(obsFile->fileName(), mp1Title, dataMP1, mp2Title, dataMP2, "Meters", 2.0); 623 double mean = 0.0; 624 for (int ii = 0; ii < dataSNR1->size(); ii++) { 625 const t_polarPoint* point = dataSNR1->at(ii); 626 mean += point->_value; 627 } 628 mean /= dataSNR1->size(); 629 double max = (mean > 9.0) ? 54.0 : 9.0; 630 QByteArray str = (mean > 9.0) ? "dbHz" : ""; 631 emit dspSkyPlot(obsFile->fileName(), snr1Title, dataSNR1, snr2Title, dataSNR2, str, max); 567 632 emit dspAvailPlot(obsFile->fileName(), title); 568 633 } … … 589 654 // 590 655 //////////////////////////////////////////////////////////////////////////// 591 void t_reqcAnalyze::slotDspSkyPlot(const QString& fileName, const Q ByteArray& title1,592 QVector<t_polarPoint*>* data1, const Q ByteArray& title2,656 void t_reqcAnalyze::slotDspSkyPlot(const QString& fileName, const QString& title1, 657 QVector<t_polarPoint*>* data1, const QString& title2, 593 658 QVector<t_polarPoint*>* data2, const QByteArray& scaleTitle, 594 659 double maxValue) { -
trunk/BNC/src/rinex/reqcanalyze.h
r6312 r6322 60 60 signals: 61 61 void finished(); 62 void dspSkyPlot(const QString&, const Q ByteArray&, QVector<t_polarPoint*>*,63 const Q ByteArray&, QVector<t_polarPoint*>*, const QByteArray&, double);62 void dspSkyPlot(const QString&, const QString&, QVector<t_polarPoint*>*, 63 const QString&, QVector<t_polarPoint*>*, const QByteArray&, double); 64 64 void dspAvailPlot(const QString&, const QByteArray&); 65 65 … … 155 155 156 156 private slots: 157 void slotDspSkyPlot(const QString& fileName, const Q ByteArray& title1,158 QVector<t_polarPoint*>* data1, const Q ByteArray& title2,157 void slotDspSkyPlot(const QString& fileName, const QString& title1, 158 QVector<t_polarPoint*>* data1, const QString& title2, 159 159 QVector<t_polarPoint*>* data2, const QByteArray& scaleTitle, double maxValue); 160 160
Note:
See TracChangeset
for help on using the changeset viewer.