Changeset 11136 in ntrip for trunk/BNC/src/pppRun.cpp


Ignore:
Timestamp:
Oct 28, 2026, 4:23:04 PM (9 days ago)
Author:
stuerze
Message:

Added:
EPH RINEX files can be written now per station like observation files and in PPP mode the Broadcast stream can be specified

File:
1 edited

Legend:

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

    r11047 r11136  
    8282
    8383  if (_opt->_realTime) {
     84    _ephMounts = QString::fromStdString(_opt->_ephMount).split(QRegularExpression("[,\\s]+"),
     85                                                                Qt::SkipEmptyParts);
     86    if (!_ephMounts.isEmpty()) {
     87      emit newMessage(QByteArray(_opt->_roverName.c_str()) + ": PPP uses the ephemerides of "
     88                      + _ephMounts.join(", ").toLatin1() + " only", true);
     89    }
     90
    8491    Qt::ConnectionType conType = Qt::AutoConnection;
    8592    if (BNC_CORE->mode() == t_bncCore::batchPostProcessing) {
    … …  
    248255}
    249256
     257// Ephemeris from a stream selected for PPP (PPP/ephMount)?
     258////////////////////////////////////////////////////////////////////////////
     259bool t_pppRun::useEph(const t_eph& eph) const {
     260  return _ephMounts.isEmpty() || _ephMounts.contains(eph.receptStaID());
     261}
     262
    250263//
    251264////////////////////////////////////////////////////////////////////////////
    252265void t_pppRun::slotNewGPSEph(t_ephGPS eph) {
     266  if (!useEph(eph)) {
     267    return;
     268  }
    253269  QMutexLocker locker(&_mutex);
    254270  _pppClient->putEphemeris(&eph);
    … …  
    258274////////////////////////////////////////////////////////////////////////////
    259275void t_pppRun::slotNewGlonassEph(t_ephGlo eph) {
     276  if (!useEph(eph)) {
     277    return;
     278  }
    260279  QMutexLocker locker(&_mutex);
    261280  _pppClient->putEphemeris(&eph);
    … …  
    265284////////////////////////////////////////////////////////////////////////////
    266285void t_pppRun::slotNewGalileoEph(t_ephGal eph) {
     286  if (!useEph(eph)) {
     287    return;
     288  }
    267289  QMutexLocker locker(&_mutex);
    268290  _pppClient->putEphemeris(&eph);
    … …  
    272294////////////////////////////////////////////////////////////////////////////
    273295void t_pppRun::slotNewBDSEph(t_ephBDS eph) {
     296  if (!useEph(eph)) {
     297    return;
     298  }
    274299  QMutexLocker locker(&_mutex);
    275300  _pppClient->putEphemeris(&eph);
Note: See TracChangeset for help on using the changeset viewer.