Changeset 1258 in ntrip for trunk/BNS


Ignore:
Timestamp:
Dec 1, 2008, 11:26:09 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1249 r1258  
    420420          int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    421421          if (len > 0) {
    422             emit(newOutBytes(len));
     422            if (ic == 0) { emit(newOutBytes1(len));}
     423            if (ic == 1) { emit(newOutBytes2(len));}
    423424            _caster.at(ic)->write(obuffer, len);
    424425          }
  • trunk/BNS/bns.h

    r1197 r1258  
    4343  void newClkBytes(int nBytes);
    4444  void newEphBytes(int nBytes);
    45   void newOutBytes(int nBytes);
     45  void newOutBytes1(int nBytes);
     46  void newOutBytes2(int nBytes);
    4647  void newMessage(const QByteArray msg);
    4748  void error(const QByteArray msg);
  • trunk/BNS/bnswindow.cpp

    r1256 r1258  
    437437  _statusLbl[5] = new QLabel("Ephemeris Corrections I:"); 
    438438  _statusLbl[6] = new QLabel("Ephemeris Corrections II:"); 
     439  _statusLbl[7] = new QLabel("0 byte(s)"); _statusCnt[3] = 0;
    439440
    440441  _statusLbl[0]->setWhatsThis(tr("Status of incoming broadcast ephemeris."));
     
    442443  _statusLbl[2]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster."));
    443444  _statusLbl[3]->setWhatsThis(tr("Status of incoming broadcast ephemeris."));
    444   _statusLbl[4]->setWhatsThis(tr("Status of incoming stream of clocks and orbits."));
    445   _statusLbl[5]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster."));
     445  _statusLbl[4]->setWhatsThis(tr("Status of incoming stream of clocks and orbits I."));
     446  _statusLbl[5]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster I."));
     447  _statusLbl[6]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster II."));
     448  _statusLbl[7]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster II."));
    446449
    447450  layout_status->addWidget(_statusLbl[3], 0, 0);
     
    452455  layout_status->addWidget(_statusLbl[2], 0, 3);
    453456  layout_status->addWidget(_statusLbl[6], 1, 2);
     457  layout_status->addWidget(_statusLbl[7], 1, 3);
    454458  _status->setLayout(layout_status);
    455459
     
    648652  connect(_bns, SIGNAL(newEphBytes(int)), this, SLOT(slotEphBytes(int)));
    649653  connect(_bns, SIGNAL(newClkBytes(int)), this, SLOT(slotClkBytes(int)));
    650   connect(_bns, SIGNAL(newOutBytes(int)), this, SLOT(slotOutBytes(int)));
     654  connect(_bns, SIGNAL(newOutBytes1(int)), this, SLOT(slotOutBytes1(int)));
     655  connect(_bns, SIGNAL(newOutBytes2(int)), this, SLOT(slotOutBytes2(int)));
    651656
    652657  _bns->start();
     
    661666  updateStatus(1, nBytes);
    662667}
    663 void bnsWindow::slotOutBytes(int nBytes) {
     668void bnsWindow::slotOutBytes1(int nBytes) {
    664669  updateStatus(2, nBytes);
     670}
     671void bnsWindow::slotOutBytes2(int nBytes) {
     672  updateStatus(3, nBytes);
    665673}
    666674
  • trunk/BNS/bnswindow.h

    r1249 r1258  
    4444  void slotEphBytes(int nBytes);
    4545  void slotClkBytes(int nBytes);
    46   void slotOutBytes(int nBytes);
     46  void slotOutBytes1(int nBytes);
     47  void slotOutBytes2(int nBytes);
    4748
    4849 protected:
     
    102103//QWidget*    _status;
    103104  QGroupBox*  _status;
    104   QLabel*     _statusLbl[6]; 
    105   double      _statusCnt[3];
     105  QLabel*     _statusLbl[8]; 
     106  double      _statusCnt[4];
    106107  QMutex      _mutex;
    107108
Note: See TracChangeset for help on using the changeset viewer.