- Timestamp:
- Nov 17, 2009, 3:37:14 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bnc.pro ¶
r1932 r1972 38 38 bncnetqueryudp0.h bncudpport.h \ 39 39 bncserialport.h bncnetquerys.h bncfigure.h \ 40 bncfigurelate.h \ 40 41 RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h \ 41 42 RTCM/RTCM2_2021.h RTCM/rtcm_utils.h \ … … 60 61 bncnetqueryudp0.cpp bncudpport.cpp \ 61 62 bncserialport.cpp bncnetquerys.cpp bncfigure.cpp \ 63 bncfigurelate.cpp \ 62 64 RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 63 65 RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \ -
TabularUnified trunk/BNC/bncgetthread.cpp ¶
r1969 r1972 425 425 426 426 emit newLatency(_staID, _latencyChecker->meanLatency()); 427 printf("%s: Mean latency in bncgetthread: %f ms\n", _staID.data(), _latencyChecker->meanLatency()); 427 428 428 429 scanRTCM(); -
TabularUnified trunk/BNC/bncgetthread.h ¶
r1969 r1972 75 75 signals: 76 76 void newBytes(QByteArray staID, double nbyte); 77 void newLatency(QByteArray staID, double mlate); 77 78 void newObs(QByteArray staID, bool firstObs, p_obs obs); 78 79 void newAntCrd(QByteArray staID, double xx, double yy, double zz, QByteArray antType); 79 80 void newMessage(QByteArray msg, bool showOnScreen); 80 81 void getThreadFinished(QByteArray staID); 81 void newLatency(QByteArray staID, double meanLatency);82 82 83 83 protected: -
TabularUnified trunk/BNC/bncwindow.cpp ¶
r1957 r1972 54 54 #include "bncsettings.h" 55 55 #include "bncfigure.h" 56 #include "bncfigurelate.h" 56 57 57 58 using namespace std; … … 64 65 65 66 _bncFigure = new bncFigure(this); 67 _bncFigureLate = new bncFigureLate(this); 66 68 67 69 int ww = QFontMetrics(this->font()).width('w'); … … 354 356 _log->setWhatsThis(tr("Records of BNC's activities are shown in the 'Log' tab. The message log covers the communication status between BNC and the NTRIP broadcaster as well as any problems that occur in the communication link, stream availability, stream delay, stream conversion etc.")); 355 357 _bncFigure->setWhatsThis(tr("The bandwidth consumtion per stream is shown in the 'Throughput' tab in bits per second (bps) or kilo bits per second (kbps).")); 358 _bncFigureLate->setWhatsThis(tr("Latency")); 356 359 _ephV3CheckBox->setWhatsThis(tr("The default format for output of RINEX Navigation data containing Broadcast Ephemeris is RINEX Version 2.11. Select 'Version 3' if you want to output the ephemeris in RINEX Version 3 format.")); 357 360 _rnxV3CheckBox->setWhatsThis(tr("The default format for RINEX Observation files is RINEX Version 2.11. Select 'Version 3' if you want to save the observations in RINEX Version 3 format.")); … … 399 402 _loggroup->addTab(_log,tr("Log")); 400 403 _loggroup->addTab(_bncFigure,tr("Throughput")); 404 _loggroup->addTab(_bncFigureLate,tr("Latency")); 401 405 402 406 // Proxy Tab … … 1108 1112 1109 1113 _bncFigure->updateMountPoints(); 1114 _bncFigureLate->updateMountPoints(); 1110 1115 _caster->slotReadMountPoints(); 1111 1116 } … … 1233 1238 connect(thread, SIGNAL(newBytes(QByteArray, double)), 1234 1239 _bncFigure, SLOT(slotNewData(QByteArray, double))); 1235 1240 connect(thread, SIGNAL(newLatency(QByteArray, double)), 1241 _bncFigureLate, SLOT(slotNewData(QByteArray, double))); 1236 1242 break; 1237 1243 } -
TabularUnified trunk/BNC/bncwindow.h ¶
r1932 r1972 48 48 49 49 class bncFigure; 50 class bncFigureLate; 50 51 51 52 class bncWindow : public QMainWindow { … … 156 157 QTabWidget* _loggroup; 157 158 bncFigure* _bncFigure; 159 bncFigureLate* _bncFigureLate; 158 160 159 161 bncCaster* _caster; -
TabularUnified trunk/BNC/latencychecker.cpp ¶
r1971 r1972 332 332 .arg(_numGaps) 333 333 .toAscii(), true) ); 334 _meanLatency = _sumLat/_numLat*1000.; 334 335 } else { 335 336 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs") … … 341 342 .arg(_numLat) 342 343 .toAscii(), true) ); 344 _meanLatency = _sumLat/_numLat*1000.; 343 345 } 344 _meanLatency = _sumLat/_numLat;345 346 } 346 347 _meanDiff = _diffSecGPS / _numLat; … … 435 436 .arg(_numGaps); 436 437 emit(newMessage(QString(_staID + late ).toAscii(), true) ); 438 _meanLatency = _sumLat/_numLat*1000.; 437 439 } 438 440 else { … … 444 446 .arg(_numLat); 445 447 emit(newMessage(QString(_staID + late ).toAscii(), true) ); 448 _meanLatency = _sumLat/_numLat*1000.; 446 449 } 447 _meanLatency = _sumLat/_numLat;448 450 } 449 451 _meanDiff = int(_diffSecGPS)/_numLat;
Note:
See TracChangeset
for help on using the changeset viewer.