Changeset 11215 in ntrip for trunk/BNC/src/bnccore.cpp


Ignore:
Timestamp:
Nov 19, 2026, 11:04:10 PM (less than one hour ago)
Author:
stuerze
Message:

Upload Ephemeris: majority vote included

File:
1 edited

Legend:

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

    r11187 r11215  
    287287t_irc t_bncCore::checkPrintEph(t_eph* eph) {
    288288  QMutexLocker locker(&_mutex);
     289
     290  // Satellite outside the range supported by BNC (e.g. G39, test signal of
     291  // NTS-3, not IS-GPS compliant): the ephemeris is neither written to RINEX
     292  // nor passed on (upload, PPP, combination, SSR QC); each data set is
     293  // logged once as RINEX record instead
     294  if (eph->prn().toInt() == 0) {
     295    QString key = QString("%1 %2 %3 %4").arg(eph->prn().toInternalString().c_str())
     296                  .arg(eph->TOC().datestr().c_str()).arg(eph->TOC().timestr(0).c_str()).arg(eph->IOD());
     297    if (!_ephOutOfRange.contains(key)) {
     298      _ephOutOfRange.insert(key);
     299      double version = (_rinexVers == 2) ? defaultRnxNavVersion2 :
     300                       (_rinexVers == 4) ? defaultRnxNavVersion4 : defaultRnxNavVersion3;
     301      messagePrivate(t_logRecord::message(t_logRecord::warning,
     302                     QString("%1: ephemeris of satellite %2 outside the range supported by BNC - not used, RINEX %3 record:")
     303                     .arg(eph->receptStaID()).arg(eph->prn().toString().c_str()).arg(version, 0, 'f', 2).toLatin1(), "bce"));
     304      QStringList lines = eph->toString(version).split('\n', Qt::SkipEmptyParts);
     305      for (int ii = 0; ii < lines.size(); ii++) {
     306        messagePrivate(t_logRecord::message(t_logRecord::warning, lines[ii].toLatin1(), "bce"));
     307      }
     308    }
     309    return failure;
     310  }
    289311  t_irc ircPut = _ephUser.putNewEph(eph, true);
    290312#ifdef BNC_DEBUG_BCE
Note: See TracChangeset for help on using the changeset viewer.