source: ntrip/trunk/BNC/src/rinex/reqcanalyze.h@ 4350

Last change on this file since 4350 was 4350, checked in by mervart, 12 years ago
File size: 2.6 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 REQCANALYZE_H
26#define REQCANALYZE_H
27
28#include <QtCore>
29#include "rnxobsfile.h"
30#include "rnxnavfile.h"
31#include "RTCM/GPSDecoder.h"
32#include "RTCM3/ephemeris.h"
33
34class t_polarPoint;
35
36class t_reqcAnalyze : public QThread {
37Q_OBJECT
38
39 public:
40 t_reqcAnalyze(QObject* parent);
41
42 protected:
43 ~t_reqcAnalyze();
44
45 signals:
46 void finished();
47 void displayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*);
48
49 private slots:
50 void slotDisplayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*);
51
52 public:
53 virtual void run();
54
55 private:
56 class t_anaObs {
57 public:
58 t_anaObs(const t_obs& obsIn) :
59 obs(obsIn), az(0.0), zen(0.0), MP1(0.0), MP2(0.0) {}
60 t_obs obs;
61 double az;
62 double zen;
63 double MP1;
64 double MP2;
65 };
66
67 class t_satStat {
68 public:
69 t_satStat() {}
70 ~t_satStat() {
71 for (int ii = 0; ii < anaObs.size(); ii++) {
72 delete anaObs[ii];
73 }
74 }
75 void addObs(const t_obs& obs, const t_eph* eph, const ColumnVector& xyz);
76 QVector<t_anaObs*> anaObs;
77 };
78
79 void analyzeFile(t_rnxObsFile* obsFile);
80 void analyzeMultipath(const QString& prn, const t_satStat& satStat,
81 QVector<t_polarPoint*>* dataMP1,
82 QVector<t_polarPoint*>* dataMP2);
83
84 QString _logFileName;
85 QFile* _logFile;
86 QTextStream* _log;
87 QStringList _obsFileNames;
88 QVector<t_rnxObsFile*> _rnxObsFiles;
89 QStringList _navFileNames;
90 QVector<t_eph*> _ephs;
91 QMap<QString, t_satStat> _satStat;
92 t_rnxObsFile::t_rnxEpo* _currEpo;
93};
94
95#endif
Note: See TracBrowser for help on using the repository browser.