[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 |
|
---|
| 34 | class t_reqcAnalyze : public QThread {
|
---|
| 35 | Q_OBJECT
|
---|
| 36 |
|
---|
| 37 | public:
|
---|
| 38 | t_reqcAnalyze(QObject* parent);
|
---|
| 39 |
|
---|
| 40 | protected:
|
---|
| 41 | ~t_reqcAnalyze();
|
---|
| 42 |
|
---|
| 43 | signals:
|
---|
| 44 | void finished();
|
---|
| 45 |
|
---|
| 46 | public slots:
|
---|
| 47 |
|
---|
| 48 | public:
|
---|
| 49 | virtual void run();
|
---|
| 50 |
|
---|
| 51 | private:
|
---|
[4266] | 52 | class t_anaObs {
|
---|
| 53 | public:
|
---|
| 54 | t_anaObs(const t_obs& obsIn) {
|
---|
| 55 | obs = obsIn;
|
---|
| 56 | M1 = 0.0;
|
---|
| 57 | M2 = 0.0;
|
---|
| 58 | }
|
---|
| 59 | t_obs obs;
|
---|
| 60 | double M1;
|
---|
| 61 | double M2;
|
---|
| 62 | };
|
---|
| 63 |
|
---|
[4263] | 64 | class t_satStat {
|
---|
| 65 | public:
|
---|
| 66 | t_satStat() {
|
---|
| 67 | currObs = 0;
|
---|
| 68 | prevObs = 0;
|
---|
| 69 | }
|
---|
| 70 | ~t_satStat() {
|
---|
| 71 | delete currObs;
|
---|
| 72 | delete prevObs;
|
---|
| 73 | }
|
---|
| 74 | void addObs(const t_obs& obs);
|
---|
[4266] | 75 | t_anaObs* currObs;
|
---|
| 76 | t_anaObs* prevObs;
|
---|
[4263] | 77 | };
|
---|
| 78 |
|
---|
[4260] | 79 | void analyzeFile(t_rnxObsFile* obsFile);
|
---|
[4254] | 80 |
|
---|
[4263] | 81 | QString _logFileName;
|
---|
| 82 | QFile* _logFile;
|
---|
| 83 | QTextStream* _log;
|
---|
| 84 | QStringList _obsFileNames;
|
---|
| 85 | QVector<t_rnxObsFile*> _rnxObsFiles;
|
---|
| 86 | QStringList _navFileNames;
|
---|
| 87 | QVector<t_eph*> _ephs;
|
---|
| 88 | QMap<QString, t_satStat> _satStat;
|
---|
[4266] | 89 | t_rnxObsFile::t_rnxEpo* _currEpo;
|
---|
[3900] | 90 | };
|
---|
| 91 |
|
---|
| 92 | #endif
|
---|