source: ntrip/tags/BNC_2.13.0/src/combination/bncbiassnx.h@ 10274

Last change on this file since 10274 was 10273, checked in by stuerze, 10 months ago

minor changes

File size: 2.1 KB
Line 
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
42class snxSatCodeBias {
43 public:
44 snxSatCodeBias(bncTime startTime) {
45 _startTime = startTime;
46 }
47 ~snxSatCodeBias() {
48 _biasMap.clear();
49 }
50 bncTime _startTime;
51 QMap<QString, double> _biasMap;
52};
53
54class bncBiasSnx {
55 public:
56 bncBiasSnx();
57 ~bncBiasSnx();
58 t_irc readFile(const QString& fileName);
59 void determineSsrSatCodeBiases(QString prn, double aIF1, double aIF2, t_satCodeBias& satCodeBias);
60 void setSsrSatCodeBias(std::string rnxType2ch, double value, t_satCodeBias& satCodeBias);
61
62 private:
63 enum e_type {ABS, REL};
64 void clear();
65 t_irc bncTimeFromSinex(QString snxStr, bncTime& time);
66 t_irc getDsbFromOsb();
67 t_irc cleanDsb();
68 void print() const;
69 void ssrCodeBiases();
70 e_type _type;
71 QMap<QString, snxSatCodeBias*> _snxSatCodeBiasMap;
72 QMap<char, bool> _useGnss;
73};
74
75
76#endif
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Note: See TracBrowser for help on using the repository browser.