source: ntrip/trunk/BNC/combination/bnccomb.h@ 3433

Last change on this file since 3433 was 3433, checked in by mervart, 13 years ago
File size: 1.6 KB
Line 
1
2#ifndef BNCCOMB_H
3#define BNCCOMB_H
4
5#include <fstream>
6#include <newmat.h>
7#include "bncephuser.h"
8
9class bncRtnetDecoder;
10class bncSP3;
11class bncAntex;
12
13class cmbParam {
14 public:
15 enum parType {offAC, offACSat, clkSat};
16 cmbParam(parType type_, int index_, const QString& ac_, const QString& prn_);
17 ~cmbParam();
18 double partial(const QString& AC_, const QString& prn_);
19 QString toString() const;
20 parType type;
21 int index;
22 QString AC;
23 QString prn;
24 double xx;
25 double sig_0;
26 double sig_P;
27};
28
29class bncComb : public bncEphUser {
30 Q_OBJECT
31
32 public:
33 bncComb();
34 virtual ~bncComb();
35 void processCorrLine(const QString& staID, const QString& line);
36 int nStreams() const {return _ACs.size();}
37
38 signals:
39 void newMessage(QByteArray msg, bool showOnScreen);
40
41 private:
42
43 class cmbAC {
44 public:
45 cmbAC() {
46 weight = 0.0;
47 numObs = 0;
48 }
49 ~cmbAC() {}
50 QString mountPoint;
51 QString name;
52 double weight;
53 unsigned numObs;
54 };
55
56 class cmbCorr : public t_corr {
57 public:
58 QString acName;
59 };
60
61 void processEpoch();
62 void dumpResults(const QMap<QString, t_corr*>& resCorr);
63 void printResults(QTextStream& out, const QMap<QString, t_corr*>& resCorr);
64 void switchToLastEph(const t_eph* lastEph, t_corr* corr);
65
66 QList<cmbAC*> _ACs;
67 bncTime _resTime;
68 QVector<cmbParam*> _params;
69 QVector<cmbCorr*> _corrs;
70 bncRtnetDecoder* _rtnetDecoder;
71 SymmetricMatrix _QQ;
72 bool _firstReg;
73 QByteArray _log;
74 bncAntex* _antex;
75 double _MAXRES;
76};
77
78#endif
Note: See TracBrowser for help on using the repository browser.