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


Ignore:
Timestamp:
Nov 18, 2026, 12:25:58 PM (3 hours ago)
Author:
stuerze
Message:

SSR QC and clock combination improved

File:
1 edited

Legend:

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

    r11195 r11212  
    7878    unsigned      numPB  = 0;    // phase bias records
    7979    unsigned      numYaw = 0;    // phase bias records with yaw angle
     80    unsigned      pbJumps = 0;   // changes of the phase bias discontinuity counter
    8081  };
    8182
    … …  
    155156  QMap<QString, QSet<QString> > _phaseSignals; // key "STA SYS": signals with phase biases
    156157
     158  // Phase bias indicators per stream and system: SSR format, consistency
     159  // indicators, integer and wide-lane integer indicators per signal
     160  class t_pbIndStat {
     161   public:
     162    unsigned                              numRec = 0;
     163    QMap<QString, unsigned>               format;   // format name: records
     164    QMap<int, unsigned>                   dispInd;  // dispersive bias consistency indicator: records
     165    QMap<int, unsigned>                   mwInd;    // Melbourne-Wuebbena consistency indicator: records
     166    QMap<QString, QMap<int, unsigned> >   intInd;   // signal, integer indicator: records
     167    QMap<QString, QMap<int, unsigned> >   wlInd;    // signal, wide-lane integer indicator: records
     168  };
     169  QMap<QString, t_pbIndStat> _pbIndStat;    // key "STA SYS"
     170  QMap<QString, int>         _pbJumpLast;   // key "STA PRN SIG": latest discontinuity counter
     171
     172  // Melbourne-Wuebbena check: every MW_SAMPL seconds the MW combination of the
     173  // phase and code biases of the reference signals (wide-lane cycles) of each
     174  // stream is differenced with that of the other ACs per satellite; for
     175  // consistent (integer) wide-lane biases the fractional parts of these
     176  // differences agree for all satellites of a system (one common offset)
     177  class t_pbLast {           // latest phase biases of a stream and satellite
     178   public:
     179    bncTime                 time;
     180    QMap<QString, double>   values;   // signal: bias [m]
     181  };
     182  class t_mwStat {           // per stream, other stream and system
     183   public:
     184    unsigned numEpo  = 0;
     185    unsigned numRes  = 0;
     186    double   sRes2   = 0.0;           // [cycles^2]
     187    double   offset  = 0.0;           // latest common offset [cycles]
     188    QMap<QString, QPair<unsigned, double> > satRes; // PRN: residuals, sum of squares
     189  };
     190  void   compareMw(const bncTime& tt);
     191  bool   mwBias(const QString& staID, const QString& prn, char sys, const bncTime& tt, double& mwCyc);
     192  QMap<QString, QMap<QString, t_pbLast> >                 _pbLast;  // stream, PRN
     193  QMap<QString, QMap<QString, QMap<char, t_mwStat> > >    _mwStat;  // stream, other stream, system
     194  bncTime                                                 _nextMwCmp;
     195
    157196  // Code bias check: DCBs of each stream compared with the other ACs (or
    158197  // the reference stream) and optionally with a Bias SINEX file
Note: See TracChangeset for help on using the changeset viewer.