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

Last change on this file since 3430 was 3430, checked in by mervart, 13 years ago
File size: 1.5 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 ~cmbAC() {}
47 QString mountPoint;
48 QString name;
49 double weight;
50 };
51
52 class cmbCorr : public t_corr {
53 public:
54 QString acName;
55 };
56
57 void processEpoch();
58 void dumpResults(const QMap<QString, t_corr*>& resCorr);
59 void printResults(QTextStream& out, const QMap<QString, t_corr*>& resCorr);
60 void switchToLastEph(const t_eph* lastEph, t_corr* corr);
61
62 QList<cmbAC*> _ACs;
63 bncTime _resTime;
64 QVector<cmbParam*> _params;
65 QList<cmbCorr*> _corrs;
66 bncRtnetDecoder* _rtnetDecoder;
67 SymmetricMatrix _QQ;
68 bool _firstReg;
69 QByteArray _log;
70 bncAntex* _antex;
71 double _MAXRES;
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.