Changeset 11248 in ntrip for trunk/BNC/src/bncephuser.h
- Timestamp:
- Dec 3, 2026, 10:30:57 PM (less than one hour ago)
- File:
-
- 1 edited
-
trunk/BNC/src/bncephuser.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.h
r11218 r11248 85 85 static bool radialDistanceOk(const t_eph* eph); 86 86 87 // Majority check of the data sets of a satellite delivered by different 88 // sources (streams in real time, files in RINEX Edit/Concatenate): two data 89 // sets are compared at the TOC of the first one, if their TOCs differ by at 90 // most MAJ_WINDOW seconds; inconsistent if satellite position or clock 91 // differ by more than MAJ_MAXDIFF meters. Genuine data sets within 2 h 92 // (BRDC00IGS_R 1 Jan 2026): GPS 4 m, Galileo 26 m, BDS 34 m, GLONASS 153 m, 93 // clocks 4 m. Not comparable: SBAS and NavIC (their extrapolation differs 94 // by up to 45 km resp. 116 km within 2 h), unhealthy data sets. 95 enum e_consistency {notComparable, consistent, inconsistent}; 96 static const double MAJ_WINDOW; 97 static const double MAJ_MAXDIFF; 98 static e_consistency compareDataSets(const t_eph* eph, const t_eph* other); 99 87 100 t_eph* ephLast(const QString& prn) { 88 101 if (_eph.contains(prn)) { … … 139 152 static bool minorDifference(const QByteArray& content1, const QByteArray& content2); 140 153 void vote(const QString& prn, unsigned index, const t_eph* eph); 141 void checkEphemeris(t_eph* eph, bool realTime); 154 void checkEphemeris(t_eph* eph, bool majorityOk = false); 155 bool basicChecks(t_eph* eph, bool realTime); 156 // Majority check (real-time input): votes of the streams on a data set, 157 // i.e. the latest data set of each stream for the satellite compared with 158 // it (compareDataSets); removal of the last data set if contradicted by the 159 // majority of the streams (at least 2) 160 bool updateStreamEph(const QString& prn, const t_eph* eph); 161 static QByteArray dataSetKey(const t_eph* eph); 162 void majorityCount(const QString& prn, const t_eph* eph, int& numFor, int& numAgainst, 163 QStringList* against = 0) const; 164 void removeOutvotedLast(const QString& prn); 142 165 bool fromEphMount(const t_eph& eph) const { 143 166 return _ephMounts.isEmpty() || _ephMounts.contains(eph.receptStaID()); … … 148 171 QMap<QString, std::deque<t_eph*> > _eph; 149 172 bool _voting; 173 bool _logMajority; // instances fed by BNC_CORE don't log the majority check again 150 174 QHash<const t_eph*, t_votes*> _votes; // per buffered data set 175 struct t_streamEph { 176 t_eph* _eph; // latest data set of the stream 177 QByteArray _key; // identical data sets: compared once (dataSetKey) 178 }; 179 QMap<QString, QMap<QString, t_streamEph> > _streamEph; // satellite -> stream -> its latest data set 180 std::deque<t_eph*> _removedEph; // removed by the majority, deleted later 151 181 }; 152 182
Note:
See TracChangeset
for help on using the changeset viewer.
