1 | // Part of BNC, a utility for retrieving decoding and
|
---|
2 | // converting GNSS data streams from NTRIP broadcasters.
|
---|
3 | //
|
---|
4 | // Copyright (C) 2007
|
---|
5 | // German Federal Agency for Cartography and Geodesy (BKG)
|
---|
6 | // http://www.bkg.bund.de
|
---|
7 | // Czech Technical University Prague, Department of Geodesy
|
---|
8 | // http://www.fsv.cvut.cz
|
---|
9 | //
|
---|
10 | // Email: euref-ip@bkg.bund.de
|
---|
11 | //
|
---|
12 | // This program is free software; you can redistribute it and/or
|
---|
13 | // modify it under the terms of the GNU General Public License
|
---|
14 | // as published by the Free Software Foundation, version 2.
|
---|
15 | //
|
---|
16 | // This program is distributed in the hope that it will be useful,
|
---|
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | // GNU General Public License for more details.
|
---|
20 | //
|
---|
21 | // You should have received a copy of the GNU General Public License
|
---|
22 | // along with this program; if not, write to the Free Software
|
---|
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
24 |
|
---|
25 | #ifndef BNCBIAS_H
|
---|
26 | #define BNCBIAS_H
|
---|
27 |
|
---|
28 | #include <QtCore>
|
---|
29 | #include <QString>
|
---|
30 | #include <QList>
|
---|
31 | #include <QMap>
|
---|
32 | #include <vector>
|
---|
33 | #include <string>
|
---|
34 | #include <newmat.h>
|
---|
35 | #include "bncconst.h"
|
---|
36 | #include "bnctime.h"
|
---|
37 | #include "bncsettings.h"
|
---|
38 | #include "satObs.h"
|
---|
39 | #include "ephemeris.h"
|
---|
40 | #include "t_prn.h"
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | class snxSatCodeBias {
|
---|
47 | public:
|
---|
48 | snxSatCodeBias(bncTime startTime) {
|
---|
49 | _startTime = startTime;
|
---|
50 | }
|
---|
51 | ~snxSatCodeBias() {
|
---|
52 | _biasMap.clear();
|
---|
53 | }
|
---|
54 | bncTime _startTime;
|
---|
55 | QMap<QString, double> _biasMap;
|
---|
56 | };
|
---|
57 |
|
---|
58 | class bncBiasSnx {
|
---|
59 | public:
|
---|
60 | bncBiasSnx();
|
---|
61 | ~bncBiasSnx();
|
---|
62 | t_irc readFile(const QString& fileName);
|
---|
63 | void determineSsrSatCodeBiases(QString prn, double aIF1, double aIF2, t_satCodeBias& satCodeBias);
|
---|
64 | void setSsrSatCodeBias(std::string rnxType2ch, double value, t_satCodeBias& satCodeBias);
|
---|
65 |
|
---|
66 | private:
|
---|
67 | enum e_type {ABSOLUTE, RELATIVE};
|
---|
68 | void clear();
|
---|
69 | t_irc bncTimeFromSinex(QString snxStr, bncTime& time);
|
---|
70 | t_irc getDsbFromOsb();
|
---|
71 | t_irc cleanDsb();
|
---|
72 | void print() const;
|
---|
73 | void ssrCodeBiases();
|
---|
74 | e_type _type;
|
---|
75 | QMap<QString, snxSatCodeBias*> _snxSatCodeBiasMap;
|
---|
76 | QMap<char, bool> _useGnss;
|
---|
77 | };
|
---|
78 |
|
---|
79 |
|
---|
80 | #endif
|
---|
81 |
|
---|
82 |
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 |
|
---|