Changeset 11140 in ntrip for trunk/BNC/src/bncephuser.cpp


Ignore:
Timestamp:
Oct 29, 2026, 10:47:20 PM (26 hours ago)
Author:
stuerze
Message:

General option 'Ephemeris streams' is added and valid for combination, upload of SSR corrections and SSR QC

File:
1 edited

Legend:

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

    r11137 r11140  
    4343#include "bncephuser.h"
    4444#include "bnccore.h"
     45#include "bncsettings.h"
    4546
    4647using namespace std;
    … …  
    6465    connect(BNC_CORE, SIGNAL(newBDSEph(t_ephBDS)),
    6566            this, SLOT(slotNewBDSEph(t_ephBDS)), Qt::DirectConnection);
     67  }
     68}
     69
     70// Ephemerides of the streams in the general option 'Ephemeris streams' only
     71////////////////////////////////////////////////////////////////////////////
     72void bncEphUser::useEphMounts(const QString& user) {
     73  bncSettings settings;
     74  _ephMounts = settings.value("ephMount").toString().split(QRegularExpression("[,\\s]+"),
     75                                                            Qt::SkipEmptyParts);
     76  if (!_ephMounts.isEmpty()) {
     77    BNC_CORE->slotMessage((user.trimmed() + ": ephemerides of " + _ephMounts.join(", ") + " only").toLatin1(), true);
    6678  }
    6779}
    … …  
    8395////////////////////////////////////////////////////////////////////////////
    8496void bncEphUser::slotNewGPSEph(t_ephGPS eph) {
    85   putNewEph(&eph, true);
     97  if (fromEphMount(eph)) {
     98    putNewEph(&eph, true);
     99  }
    86100}
    87101
    … …  
    89103////////////////////////////////////////////////////////////////////////////
    90104void bncEphUser::slotNewGlonassEph(t_ephGlo eph) {
    91   putNewEph(&eph, true);
     105  if (fromEphMount(eph)) {
     106    putNewEph(&eph, true);
     107  }
    92108}
    93109
    … …  
    95111////////////////////////////////////////////////////////////////////////////
    96112void bncEphUser::slotNewGalileoEph(t_ephGal eph) {
    97   putNewEph(&eph, true);
     113  if (fromEphMount(eph)) {
     114    putNewEph(&eph, true);
     115  }
    98116}
    99117
    … …  
    101119////////////////////////////////////////////////////////////////////////////
    102120void bncEphUser::slotNewSBASEph(t_ephSBAS eph) {
    103   putNewEph(&eph, true);
     121  if (fromEphMount(eph)) {
     122    putNewEph(&eph, true);
     123  }
    104124}
    105125
    … …  
    107127////////////////////////////////////////////////////////////////////////////
    108128void bncEphUser::slotNewBDSEph(t_ephBDS eph) {
    109   putNewEph(&eph, true);
     129  if (fromEphMount(eph)) {
     130    putNewEph(&eph, true);
     131  }
    110132}
    111133
Note: See TracChangeset for help on using the changeset viewer.