Changeset 11218 in ntrip for trunk/BNC/src/ssrQc.h


Ignore:
Timestamp:
Nov 23, 2026, 9:48:49 PM (9 hours ago)
Author:
stuerze
Message:

improvements regarding ssrqc ephemerides upload and combination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ssrQc.h

    r11214 r11218  
    4949    bncTime         last;
    5050    QVector<double> intervals;
     51    QVector<double> intervalEnds;  // [s] (tKey) epoch ending each interval
    5152    QVector<double> latencies;
     53    QVector<double> latencyEpochs; // [s] (tKey) epoch of each latency
    5254    QSet<QString>   sats;
    5355  };
    … …  
    7981    unsigned      numYaw = 0;    // phase bias records with yaw angle
    8082    unsigned      pbJumps = 0;   // changes of the phase bias discontinuity counter
    81   };
     83    bool          orbIodSet = false; // IOD of the orbit corrections (kept across intervals)
     84    unsigned      orbIod    = 0;
     85    bncTime       newestToc;     // TOC of the newest data set referred to so far
     86  };
     87
     88  // IOD switch: delay of the first orbit correction referring to a new data
     89  // set after its reception by BNC (ephemeris streams) and, for BDS (all
     90  // satellites updated at the full hour, TOC = issue time), after its TOC;
     91  // switches back to an older data set
     92  class t_iodSwitchStat {    // per stream and system
     93   public:
     94    QVector<double>         afterRecept;  // [s]
     95    QVector<double>         afterToc;     // [s]
     96    QMap<QString, unsigned> back;         // PRN: switches back
     97  };
     98  void   checkIodSwitch(t_satStat& stat, const QString& staID, const QString& prnInt,
     99                        unsigned iod, const bncTime& time);
     100  QMap<QString, t_iodSwitchStat> _iodSwitch;  // key "STA SYS"
     101
     102  // Common outages of the input: gaps of at least OUTAGE_FRACTION of the
     103  // streams at the same time (e.g. caster, network); reported once, not
     104  // counted as gaps of the single streams and their latencies left out
     105  class t_outage {
     106   public:
     107    double   start;          // [s] (tKey)
     108    double   end;
     109    unsigned numSta;         // streams with a gap
     110    unsigned numAll;         // streams with data in the interval
     111  };
     112  QVector<t_outage> commonOutages(const QMap<QString, QSet<char> >& streams) const;
     113
     114  // Corrections with an epoch time far from the reception time (erroneously
     115  // encoded): not used, counted per stream
     116  bool   badEpoch(const std::string& staID, const bncTime& time);
     117  QMap<QString, unsigned> _badEpochs;
    82118
    83119  void   newEpoch(const std::string& staID, char sys, e_type type, const bncTime& time,
Note: See TracChangeset for help on using the changeset viewer.