[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] | 9 | class bncRtnetDecoder;
|
---|
[3181] | 10 | class bncSP3;
|
---|
[3052] | 11 | class bncAntex;
|
---|
[2927] | 12 |
|
---|
[2933] | 13 | class 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] | 31 | class 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 |
|
---|
| 40 | signals:
|
---|
| 41 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
| 42 |
|
---|
| 43 | private:
|
---|
[2918] | 44 |
|
---|
[3470] | 45 | enum e_method{singleEpoch, filter};
|
---|
| 46 |
|
---|
[2918] | 47 | class cmbAC {
|
---|
| 48 | public:
|
---|
[3433] | 49 | cmbAC() {
|
---|
| 50 | weight = 0.0;
|
---|
| 51 | numObs = 0;
|
---|
| 52 | }
|
---|
[3430] | 53 | ~cmbAC() {}
|
---|
[3434] | 54 | QString mountPoint;
|
---|
| 55 | QString name;
|
---|
| 56 | double weight;
|
---|
| 57 | unsigned numObs;
|
---|
[2918] | 58 | };
|
---|
| 59 |
|
---|
[3430] | 60 | class cmbCorr : public t_corr {
|
---|
[3423] | 61 | public:
|
---|
[3488] | 62 | QString acName;
|
---|
| 63 | ColumnVector diffRao;
|
---|
[3423] | 64 | };
|
---|
| 65 |
|
---|
[3434] | 66 | class cmbEpoch {
|
---|
| 67 | public:
|
---|
| 68 | cmbEpoch() {}
|
---|
| 69 | ~cmbEpoch() {
|
---|
| 70 | QVectorIterator<cmbCorr*> it(corrs);
|
---|
| 71 | while (it.hasNext()) {
|
---|
| 72 | delete it.next();
|
---|
| 73 | }
|
---|
| 74 | }
|
---|
| 75 | QVector<cmbCorr*> corrs;
|
---|
| 76 | };
|
---|
| 77 |
|
---|
[3430] | 78 | void processEpoch();
|
---|
[3472] | 79 | t_irc processEpoch_filter(QTextStream& out,
|
---|
[3475] | 80 | QMap<QString, t_corr*>& resCorr,
|
---|
| 81 | ColumnVector& dx);
|
---|
[3472] | 82 | t_irc processEpoch_singleEpoch(QTextStream& out,
|
---|
[3475] | 83 | QMap<QString, t_corr*>& resCorr,
|
---|
| 84 | ColumnVector& dx);
|
---|
[3455] | 85 | t_irc createAmat(Matrix& AA, ColumnVector& ll, DiagonalMatrix& PP,
|
---|
| 86 | const ColumnVector& x0, QMap<QString, t_corr*>& resCorr);
|
---|
[3430] | 87 | void dumpResults(const QMap<QString, t_corr*>& resCorr);
|
---|
| 88 | void printResults(QTextStream& out, const QMap<QString, t_corr*>& resCorr);
|
---|
[3029] | 89 | void switchToLastEph(const t_eph* lastEph, t_corr* corr);
|
---|
[3497] | 90 | t_irc checkOrbits(QTextStream& out);
|
---|
[2918] | 91 |
|
---|
[3434] | 92 | QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
|
---|
| 93 |
|
---|
| 94 | QList<cmbAC*> _ACs;
|
---|
| 95 | bncTime _resTime;
|
---|
| 96 | QVector<cmbParam*> _params;
|
---|
| 97 | QMap<bncTime, cmbEpoch> _buffer;
|
---|
| 98 | bncRtnetDecoder* _rtnetDecoder;
|
---|
| 99 | SymmetricMatrix _QQ;
|
---|
| 100 | QByteArray _log;
|
---|
| 101 | bncAntex* _antex;
|
---|
| 102 | double _MAXRES;
|
---|
[3453] | 103 | QString _masterOrbitAC;
|
---|
[3455] | 104 | unsigned _masterMissingEpochs;
|
---|
[3470] | 105 | e_method _method;
|
---|
[3483] | 106 | bool _useGlonass;
|
---|
[2898] | 107 | };
|
---|
| 108 |
|
---|
| 109 | #endif
|
---|