Changeset 1803 in ntrip


Ignore:
Timestamp:
Apr 19, 2009, 11:13:00 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1802 r1803  
    251251    QByteArray buffer = "New Ephemeris " + ep->prn().toAscii() + "\n";
    252252    _casterEph->write(buffer.data(), buffer.length());
     253    int len = buffer.length();
     254    if (len > 0) {
     255      emit(newOutEphBytes(len));
     256    }
    253257  }
    254258
  • trunk/BNS/bns.h

    r1796 r1803  
    4646  void newOutBytes2(int nBytes);
    4747  void newOutBytes3(int nBytes);
     48  void newOutEphBytes(int nBytes);
    4849  void newMessage(const QByteArray msg);
    4950  void error(const QByteArray msg);
  • trunk/BNS/bnswindow.cpp

    r1795 r1803  
    297297  _refSys_3_ComboBox->setWhatsThis(tr("Select the target reference system for outgoing clock and orbit corrections."));
    298298  _outFile_3_LineEdit->setWhatsThis(tr("Specify the full path to a file where outgoing clock and orbit corrections to Broadcast Ephemeris are saved. Beware that the size of this file can rapidly increase. Default is an empty option field meaning that outgoing corrections are not saved."));
     299  _outHost_Eph_LineEdit->setWhatsThis(tr("BNS can upload a Broadcast Ephemeris stream in RTCM Version 3 format. Specify the host IP of an NTRIP Broadcaster to upload the stream. An empty option field means that you don't want to upload Broadcast Ephemeris."));
     300  _outPort_Eph_LineEdit->setWhatsThis(tr("Specify the IP port of an NTRIP Broadcaster to upload the stream. Default is port 80."));
     301  _mountpoint_Eph_LineEdit->setWhatsThis(tr("Specify the mounpoint for stream upload to an NTRIP Broadcaster."));
     302  _password_Eph_LineEdit->setWhatsThis(tr("Specify the stream upload password protecting the mounpoint on an NTRIP Broadcaster."));
    299303  _rnxPathLineEdit->setWhatsThis(tr("Specify the path for saving the generated clock corrections as Clock RINEX files. If the specified directory does not exist, BNS will not create Clock RINEX files."));
    300304  _rnxIntrComboBox->setWhatsThis(tr("Select the length of the Clock RINEX file."));
     
    573577  // ---------------------
    574578  QWidget* tab_casEph = new QWidget();
    575   tabs->addTab(tab_casEph, "Broadcast Ephemerides");
     579  tabs->addTab(tab_casEph, "Broadcast Ephemeris");
    576580
    577581  QGridLayout* layout_casEph = new QGridLayout;
     
    582586  _mountpoint_Eph_LineEdit->setMaximumWidth(12*ww);
    583587
    584   layout_casEph->addWidget(new QLabel("Host"),               0, 0);
    585   layout_casEph->addWidget(_outHost_Eph_LineEdit,              0, 1, 1, 3);
    586   layout_casEph->addWidget(new QLabel("  Port"),             0, 4, Qt::AlignRight);
    587   layout_casEph->addWidget(_outPort_Eph_LineEdit,              0, 5, 1, 10);
    588   layout_casEph->addWidget(new QLabel("Mountpoint"),         1, 0);
    589   layout_casEph->addWidget(_mountpoint_Eph_LineEdit,           1, 1);
    590   layout_casEph->addWidget(new QLabel("Password"),           1, 2, Qt::AlignRight);
    591   layout_casEph->addWidget(_password_Eph_LineEdit,             1, 3);
    592   layout_casEph->addWidget(new QLabel("Concatenated Broadcast Ephemerides"), 2, 0, 1, 50);
     588  layout_casEph->addWidget(new QLabel("Host"),                  0, 0);
     589  layout_casEph->addWidget(_outHost_Eph_LineEdit,               0, 1, 1, 3);
     590  layout_casEph->addWidget(new QLabel("  Port"),                0, 4, Qt::AlignRight);
     591  layout_casEph->addWidget(_outPort_Eph_LineEdit,               0, 5, 1, 10);
     592  layout_casEph->addWidget(new QLabel("Mountpoint           "), 1, 0);
     593  layout_casEph->addWidget(_mountpoint_Eph_LineEdit,            1, 1);
     594  layout_casEph->addWidget(new QLabel("          Password"),    1, 2, Qt::AlignRight);
     595  layout_casEph->addWidget(_password_Eph_LineEdit,              1, 3);
     596  layout_casEph->addWidget(new QLabel("Upload concatenated Broadcast Ephemeris in RTCMv3 format to caster."), 2, 0, 1, 50);
     597  layout_casEph->addWidget(new QLabel(""),                      3, 0);
    593598
    594599  tab_casEph->setLayout(layout_casEph);
     
    681686  _statusLbl[2] = new QLabel("0 byte(s)"); _statusCnt[2] = 0;
    682687  _statusLbl[3] = new QLabel("0 byte(s)"); _statusCnt[3] = 0;
    683   _statusLbl[9] = new QLabel("0 byte(s)"); _statusCnt[4] = 0;
    684   _statusLbl[7] = new QLabel("RINEX Ephemeris:"); 
    685   _statusLbl[4] = new QLabel("Clocks & Orbits:");
    686   _statusLbl[5] = new QLabel("Broadcast Corrections I:"); 
    687   _statusLbl[6] = new QLabel("Broadcast Corrections II:"); 
    688   _statusLbl[8] = new QLabel("Broadcast Corrections III:"); 
     688  _statusLbl[4] = new QLabel("0 byte(s)"); _statusCnt[4] = 0;
     689  _statusLbl[5] = new QLabel("0 byte(s)"); _statusCnt[5] = 0;
     690  _statusLbl[6] = new QLabel("RINEX Ephemeris:"); 
     691  _statusLbl[7] = new QLabel("Clocks & Orbits:");
     692  _statusLbl[8] = new QLabel("Broadcast Corrections I:"); 
     693  _statusLbl[9] = new QLabel("Broadcast Corrections II:"); 
     694  _statusLbl[10] = new QLabel("Broadcast Corrections III:"); 
     695  _statusLbl[11] = new QLabel("Broadcast Ephemeris:"); 
    689696
    690697  _statusLbl[0]->setWhatsThis(tr("Status of incoming broadcast ephemeris."));
    691698  _statusLbl[1]->setWhatsThis(tr("Status of incoming stream of clocks and orbits."));
    692   _statusLbl[2]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster."));
    693   _statusLbl[7]->setWhatsThis(tr("Status of incoming broadcast ephemeris."));
    694   _statusLbl[4]->setWhatsThis(tr("Status of incoming stream of clocks and orbits I."));
    695   _statusLbl[5]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster I."));
    696   _statusLbl[6]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster II."));
    697   _statusLbl[3]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster II."));
    698   _statusLbl[8]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster III."));
    699 
    700   layout_status->addWidget(_statusLbl[7], 0, 0);
    701   layout_status->addWidget(_statusLbl[0], 0, 1);
    702   layout_status->addWidget(_statusLbl[5], 0, 2);
    703   layout_status->addWidget(_statusLbl[2], 0, 3);
    704   layout_status->addWidget(_statusLbl[4], 1, 0);
    705   layout_status->addWidget(_statusLbl[1], 1, 1);
    706   layout_status->addWidget(_statusLbl[6], 1, 2);
    707   layout_status->addWidget(_statusLbl[3], 1, 3);
    708   layout_status->addWidget(_statusLbl[8], 2, 2);
    709   layout_status->addWidget(_statusLbl[9], 2, 3);
     699  _statusLbl[2]->setWhatsThis(tr("Status of outgoing corrections stream to NTRIP broadcaster I."));
     700  _statusLbl[3]->setWhatsThis(tr("Status of outgoing corrections stream to NTRIP broadcaster II."));
     701  _statusLbl[4]->setWhatsThis(tr("Status of outgoing corrections stream to NTRIP broadcaster III."));
     702  _statusLbl[5]->setWhatsThis(tr("Status of outgoing Broadcast Ephemeris to NTRIP broadcaster"));
     703  _statusLbl[6]->setWhatsThis(tr("Status of incoming broadcast ephemeris."));
     704  _statusLbl[7]->setWhatsThis(tr("Status of incoming stream of clocks and orbits I."));
     705  _statusLbl[8]->setWhatsThis(tr("Status of outgoing corrections stream to NTRIP broadcaster I."));
     706  _statusLbl[9]->setWhatsThis(tr("Status of outgoing corrections stream to NTRIP broadcaster II."));
     707  _statusLbl[10]->setWhatsThis(tr("Status of outgoing corrections stream to NTRIP broadcaster III."));
     708  _statusLbl[11]->setWhatsThis(tr("Status of outgoing Broadcast Ephemeris to NTRIP broadcaster"));
     709
     710  layout_status->addWidget(_statusLbl[6],  0, 0);
     711  layout_status->addWidget(_statusLbl[0],  0, 1);
     712  layout_status->addWidget(_statusLbl[11], 0, 2);
     713  layout_status->addWidget(_statusLbl[5],  0, 3);
     714  layout_status->addWidget(_statusLbl[7],  1, 0);
     715  layout_status->addWidget(_statusLbl[1],  1, 1);
     716  layout_status->addWidget(_statusLbl[8],  1, 2);
     717  layout_status->addWidget(_statusLbl[2],  1, 3);
     718  layout_status->addWidget(_statusLbl[9],  2, 2);
     719  layout_status->addWidget(_statusLbl[3],  2, 3);
     720  layout_status->addWidget(_statusLbl[10], 3, 2);
     721  layout_status->addWidget(_statusLbl[4],  3, 3);
    710722  _status->setLayout(layout_status);
    711723
     
    939951  connect(_bns, SIGNAL(newOutBytes2(int)), this, SLOT(slotOutBytes2(int)));
    940952  connect(_bns, SIGNAL(newOutBytes3(int)), this, SLOT(slotOutBytes3(int)));
     953  connect(_bns, SIGNAL(newOutEphBytes(int)), this, SLOT(slotOutEphBytes(int)));
    941954
    942955  _bns->start();
     
    959972void bnsWindow::slotOutBytes3(int nBytes) {
    960973  updateStatus(4, nBytes);
     974}
     975void bnsWindow::slotOutEphBytes(int nBytes) {
     976  updateStatus(5, nBytes);
    961977}
    962978
     
    11301146
    11311147  // Enable/disable Broadcast Ephemerides
    1132   // ------------------------------------k-----------
     1148  // ------------------------------------
    11331149  if (tabs->currentIndex() == 7) {
    11341150    if (!isEmpty) {
  • trunk/BNS/bnswindow.h

    r1795 r1803  
    5050  void slotOutBytes2(int nBytes);
    5151  void slotOutBytes3(int nBytes);
     52  void slotOutEphBytes(int nBytes);
    5253
    5354 protected:
     
    131132//QWidget*    _status;
    132133  QGroupBox*  _status;
    133   QLabel*     _statusLbl[10]; 
    134   double      _statusCnt[5];
     134  QLabel*     _statusLbl[12]; 
     135  double      _statusCnt[6];
    135136  QMutex      _mutex;
    136137
Note: See TracChangeset for help on using the changeset viewer.