source: ntrip/trunk/BNC/src/combination/bnccomb.h@ 5779

Last change on this file since 5779 was 5583, checked in by mervart, 11 years ago
File size: 2.9 KB
RevLine 
[2898]1
2#ifndef BNCCOMB_H
3#define BNCCOMB_H
4
[3035]5#include <fstream>
[2933]6#include <newmat.h>
[2906]7#include "bncephuser.h"
[2898]8
[3201]9class bncRtnetDecoder;
[3181]10class bncSP3;
[3052]11class bncAntex;
[2927]12
[2933]13class cmbParam {
14 public:
[3485]15 enum parType {offACgps, offACglo, offACSat, clkSat};
[3430]16 cmbParam(parType type_, int index_, const QString& ac_, const QString& prn_);
[2933]17 ~cmbParam();
[3430]18 double partial(const QString& AC_, const QString& prn_);
[2990]19 QString toString() const;
[2933]20 parType type;
21 int index;
22 QString AC;
23 QString prn;
24 double xx;
[3455]25 double sig0;
26 double sigP;
27 bool epoSpec;
28 const t_eph* eph;
[2933]29};
30
[2906]31class bncComb : public bncEphUser {
[2898]32 Q_OBJECT
33
34 public:
35 bncComb();
[3297]36 virtual ~bncComb();
[2898]37 void processCorrLine(const QString& staID, const QString& line);
[2918]38 int nStreams() const {return _ACs.size();}
[2898]39
[5583]40 public slots:
41 void slotProviderIDChanged(QString mountPoint);
42
[2898]43 signals:
44 void newMessage(QByteArray msg, bool showOnScreen);
45
46 private:
[2918]47
[3470]48 enum e_method{singleEpoch, filter};
49
[2918]50 class cmbAC {
51 public:
[3433]52 cmbAC() {
53 weight = 0.0;
54 numObs = 0;
55 }
[3430]56 ~cmbAC() {}
[3434]57 QString mountPoint;
58 QString name;
59 double weight;
60 unsigned numObs;
[2918]61 };
62
[3430]63 class cmbCorr : public t_corr {
[3423]64 public:
[3488]65 QString acName;
66 ColumnVector diffRao;
[3588]67 QString ID() {return acName + "_" + prn;}
[3423]68 };
69
[3434]70 class cmbEpoch {
71 public:
72 cmbEpoch() {}
73 ~cmbEpoch() {
74 QVectorIterator<cmbCorr*> it(corrs);
75 while (it.hasNext()) {
76 delete it.next();
77 }
78 }
79 QVector<cmbCorr*> corrs;
80 };
81
[3430]82 void processEpoch();
[3472]83 t_irc processEpoch_filter(QTextStream& out,
[3475]84 QMap<QString, t_corr*>& resCorr,
85 ColumnVector& dx);
[3472]86 t_irc processEpoch_singleEpoch(QTextStream& out,
[3475]87 QMap<QString, t_corr*>& resCorr,
88 ColumnVector& dx);
[3455]89 t_irc createAmat(Matrix& AA, ColumnVector& ll, DiagonalMatrix& PP,
90 const ColumnVector& x0, QMap<QString, t_corr*>& resCorr);
[3430]91 void dumpResults(const QMap<QString, t_corr*>& resCorr);
92 void printResults(QTextStream& out, const QMap<QString, t_corr*>& resCorr);
[3029]93 void switchToLastEph(const t_eph* lastEph, t_corr* corr);
[3497]94 t_irc checkOrbits(QTextStream& out);
[2918]95
[3556]96 QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
[3434]97
[3588]98 t_irc mergeOrbitCorr(const cmbCorr* orbitCorr, cmbCorr* clkCorr);
99
[3434]100 QList<cmbAC*> _ACs;
101 bncTime _resTime;
102 QVector<cmbParam*> _params;
[3556]103 QMap<bncTime, cmbEpoch> _buffer;
[3434]104 bncRtnetDecoder* _rtnetDecoder;
105 SymmetricMatrix _QQ;
106 QByteArray _log;
107 bncAntex* _antex;
108 double _MAXRES;
[3453]109 QString _masterOrbitAC;
[3455]110 unsigned _masterMissingEpochs;
[3470]111 e_method _method;
[3483]112 bool _useGlonass;
[4183]113 int _cmbSampl;
[3588]114 QMap<QString, cmbCorr*> _orbitCorrs;
[2898]115};
116
117#endif
Note: See TracBrowser for help on using the repository browser.