Changeset 10517 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jul 9, 2024, 2:22:27 PM (4 months ago)
Author:
stuerze
Message:

minor changes to allow re-connect check also if no latency check is enabled

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncgetthread.cpp

    r10503 r10517  
    4040
    4141#include <stdlib.h>
     42#include <iostream>
    4243#include <iomanip>
    4344#include <sstream>
     
    7879bncGetThread::bncGetThread(bncRawFile* rawFile) {
    7980
    80   _rawFile = rawFile;
    81   _format = rawFile->format();
    82   _staID = rawFile->staID();
    83   _rawOutput = false;
     81  _rawFile      = rawFile;
     82  _format       = rawFile->format();
     83  _staID        = rawFile->staID();
     84  _rawOutput    = false;
    8485  _ntripVersion = "N";
    8586
     
    9394    const QByteArray& nmea, const QByteArray& ntripVersion) {
    9495  _rawFile = 0;
    95   _mountPoint = mountPoint;
    96   _staID = mountPoint.path().mid(1).toLatin1();
    97   _format = format;
    98   _latitude = latitude;
    99   _longitude = longitude;
    100   _nmea = nmea;
     96  _mountPoint   = mountPoint;
     97  _staID        = mountPoint.path().mid(1).toLatin1();
     98  _format       = format;
     99  _latitude     = latitude;
     100  _longitude    = longitude;
     101  _nmea         = nmea;
    101102  _ntripVersion = ntripVersion;
    102103
     
    108109    _rawOutput = false;
    109110  }
    110   if  (!settings.value("miscMount").toString().isEmpty()) {
    111     _latencycheck = true;
    112   }
    113   else {
    114     _latencycheck = false;
    115   }
     111
     112  _latencycheck = true; // in order to allow at least to check for reconnect
    116113
    117114  _NMEASampl = settings.value("serialNMEASampling").toInt();
     
    944941        }
    945942      }
     943
     944/*
     945      for (int ii = 0; ii < decoder()->_helmertParList.size(); ii++) {
     946        decoder()->_helmertParList[ii].print();
     947      }
     948*/
    946949    }
    947950  }
  • trunk/BNC/src/latencychecker.cpp

    r9958 r10517  
    9494  // Latency interval/average
    9595  // ------------------------
    96   _miscIntr = 1;
     96  _miscIntr = 300;
    9797  QString miscIntr = settings.value("miscIntr").toString();
    9898  if      ( miscIntr.isEmpty() ) {
    99     _miscIntr = 1;
     99    _miscIntr = 300;
    100100  }
    101101  else if ( miscIntr.indexOf("2 sec")   != -1 ) {
Note: See TracChangeset for help on using the changeset viewer.