Changeset 9695 in ntrip for trunk


Ignore:
Timestamp:
Apr 13, 2022, 9:24:53 AM (2 years ago)
Author:
stuerze
Message:

minor changes to read the bsx file every 6 hours

Location:
trunk/BNC/src/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r9691 r9695  
    281281    _antex = new bncAntex();
    282282    if (_antex->readFile(antexFileName) != success) {
    283       emit newMessage("wrong ANTEX file", true);
     283      emit newMessage("bncCmb: wrong ANTEX file", true);
    284284      delete _antex;
    285285      _antex = 0;
     
    295295    _bsx = new bncBiasSnx();
    296296    if (_bsx->readFile(bsxFileName) != success) {
    297       emit newMessage("wrong Bias SINEX file", true);
     297      emit newMessage("bncComb: wrong Bias SINEX file", true);
    298298      delete _bsx;
    299299      _bsx = 0;
     
    301301  }
    302302  if (_bsx) {
    303     int ms = 6.0 * 3600 * 1000.0;
    304     QTimer::singleShot(ms, this, SLOT(slotReadBiasSnxFile()));
     303    _ms = 6.0 * 3600 * 1000.0;
     304    QTimer::singleShot(_ms, this, SLOT(slotReadBiasSnxFile()));
    305305  }
    306306
     
    346346  bncSettings settings;
    347347  QString bsxFileName = settings.value("cmbBsxFile").toString();
    348   if (!bsxFileName.isEmpty()) {
     348
     349  if (bsxFileName.isEmpty()) {
     350    emit newMessage("bncComb: no Bias SINEX file specified", true);
     351    return;
     352  }
     353  if (!_bsx) {
    349354    _bsx = new bncBiasSnx();
    350355  }
    351 
    352356  if (_bsx->readFile(bsxFileName) != success) {
    353     emit newMessage("wrong Bias SINEX file", true);
     357    emit newMessage("bncComb: wrong Bias SINEX file", true);
    354358    delete _bsx;
    355359    _bsx = 0;
    356360  }
    357 //#ifdef BNC_DEBUG_CMB
    358361  else {
    359     emit newMessage("Successfully read Bias SINEX file", true);
    360   }
    361 //#endif
     362    emit newMessage("bncComb: successfully read Bias SINEX file", true);
     363  }
     364 
     365  QTimer::singleShot(_ms, this, SLOT(slotReadBiasSnxFile()));
    362366}
    363367
  • trunk/BNC/src/combination/bnccomb.h

    r9690 r9695  
    224224  e_method                                   _method;
    225225  int                                        _cmbSampl;
     226  int                                        _ms;
    226227  QString                                    _cmbRefAttributes;
    227228  QMap<QString, QMap<t_prn, t_orbCorr> >     _orbCorrections;
Note: See TracChangeset for help on using the changeset viewer.