[9677] | 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() {_biasMap.clear();}
|
---|
| 52 | bncTime _startTime;
|
---|
| 53 | QMap<QString, double> _biasMap;
|
---|
| 54 | };
|
---|
| 55 |
|
---|
| 56 | class bncBiasSnx {
|
---|
| 57 | public:
|
---|
| 58 | bncBiasSnx();
|
---|
| 59 | ~bncBiasSnx();
|
---|
| 60 | t_irc readFile(const QString& fileName);
|
---|
[10038] | 61 | void determineSsrSatCodeBiases(QString prn, double aIF1, double aIF2, t_satCodeBias* satCodeBias);
|
---|
| 62 | void setSsrSatCodeBias(std::string rnxType2ch, double value, t_satCodeBias* satCodeBias);
|
---|
[9677] | 63 |
|
---|
| 64 | private:
|
---|
| 65 | enum e_type {ABSOLUTE, RELATIVE};
|
---|
| 66 | void clear();
|
---|
| 67 | t_irc bncTimeFromSinex(QString snxStr, bncTime& time);
|
---|
| 68 | t_irc getDsbFromOsb();
|
---|
| 69 | t_irc cleanDsb();
|
---|
| 70 | void print() const;
|
---|
| 71 | void ssrCodeBiases();
|
---|
| 72 | e_type _type;
|
---|
| 73 | QMap<QString, snxSatCodeBias*> _snxSatCodeBiasMap;
|
---|
| 74 | QMap<char, bool> _useGnss;
|
---|
| 75 | };
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | #endif
|
---|
| 79 |
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 |
|
---|
| 91 |
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 |
|
---|
| 95 |
|
---|
| 96 |
|
---|