[3900] | 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>
|
---|
[4254] | 29 | #include "rnxobsfile.h"
|
---|
| 30 | #include "rnxnavfile.h"
|
---|
[4263] | 31 | #include "RTCM/GPSDecoder.h"
|
---|
[4254] | 32 | #include "RTCM3/ephemeris.h"
|
---|
[3900] | 33 |
|
---|
[4338] | 34 | class t_polarPoint;
|
---|
| 35 |
|
---|
[3900] | 36 | class t_reqcAnalyze : public QThread {
|
---|
| 37 | Q_OBJECT
|
---|
| 38 |
|
---|
| 39 | public:
|
---|
| 40 | t_reqcAnalyze(QObject* parent);
|
---|
| 41 |
|
---|
| 42 | protected:
|
---|
| 43 | ~t_reqcAnalyze();
|
---|
| 44 |
|
---|
| 45 | signals:
|
---|
| 46 | void finished();
|
---|
[4342] | 47 | void displayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*);
|
---|
[3900] | 48 |
|
---|
[4300] | 49 | private slots:
|
---|
[4342] | 50 | void slotDisplayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*);
|
---|
[3900] | 51 |
|
---|
| 52 | public:
|
---|
| 53 | virtual void run();
|
---|
| 54 |
|
---|
| 55 | private:
|
---|
[4266] | 56 | class t_anaObs {
|
---|
| 57 | public:
|
---|
[4355] | 58 | t_anaObs(int GPSWeek, double GPSWeeks) {
|
---|
| 59 | _GPSWeek = GPSWeek;
|
---|
| 60 | _GPSWeeks = GPSWeeks;
|
---|
| 61 | _MP1 = 0.0;
|
---|
| 62 | _MP2 = 0.0;
|
---|
| 63 | }
|
---|
| 64 | int _GPSWeek;
|
---|
| 65 | double _GPSWeeks;
|
---|
| 66 | double _MP1;
|
---|
| 67 | double _MP2;
|
---|
[4266] | 68 | };
|
---|
| 69 |
|
---|
[4263] | 70 | class t_satStat {
|
---|
| 71 | public:
|
---|
[4338] | 72 | t_satStat() {}
|
---|
[4263] | 73 | ~t_satStat() {
|
---|
[4338] | 74 | for (int ii = 0; ii < anaObs.size(); ii++) {
|
---|
| 75 | delete anaObs[ii];
|
---|
| 76 | }
|
---|
[4263] | 77 | }
|
---|
[4355] | 78 | void addObs(const t_obs& obs);
|
---|
[4338] | 79 | QVector<t_anaObs*> anaObs;
|
---|
[4263] | 80 | };
|
---|
| 81 |
|
---|
[4260] | 82 | void analyzeFile(t_rnxObsFile* obsFile);
|
---|
[4355] | 83 | void analyzeMultipath(const QString& prn,
|
---|
| 84 | const t_satStat& satStat,
|
---|
| 85 | const ColumnVector& xyz,
|
---|
[4350] | 86 | QVector<t_polarPoint*>* dataMP1,
|
---|
| 87 | QVector<t_polarPoint*>* dataMP2);
|
---|
[4254] | 88 |
|
---|
[4263] | 89 | QString _logFileName;
|
---|
| 90 | QFile* _logFile;
|
---|
| 91 | QTextStream* _log;
|
---|
| 92 | QStringList _obsFileNames;
|
---|
| 93 | QVector<t_rnxObsFile*> _rnxObsFiles;
|
---|
| 94 | QStringList _navFileNames;
|
---|
| 95 | QVector<t_eph*> _ephs;
|
---|
| 96 | QMap<QString, t_satStat> _satStat;
|
---|
[4266] | 97 | t_rnxObsFile::t_rnxEpo* _currEpo;
|
---|
[3900] | 98 | };
|
---|
| 99 |
|
---|
| 100 | #endif
|
---|