| [297] | 1 | // Part of BNC, a utility for retrieving decoding and
|
|---|
| [464] | 2 | // converting GNSS data streams from NTRIP broadcasters.
|
|---|
| [297] | 3 | //
|
|---|
| [464] | 4 | // Copyright (C) 2007
|
|---|
| [297] | 5 | // German Federal Agency for Cartography and Geodesy (BKG)
|
|---|
| 6 | // http://www.bkg.bund.de
|
|---|
| [464] | 7 | // Czech Technical University Prague, Department of Geodesy
|
|---|
| [297] | 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.
|
|---|
| [35] | 24 |
|
|---|
| [222] | 25 | #ifndef GPSDECODER_H
|
|---|
| 26 | #define GPSDECODER_H
|
|---|
| 27 |
|
|---|
| [625] | 28 | #include <iostream>
|
|---|
| [1218] | 29 | #include <vector>
|
|---|
| 30 | #include <string>
|
|---|
| [35] | 31 |
|
|---|
| [5884] | 32 | #include <QtCore>
|
|---|
| 33 |
|
|---|
| [649] | 34 | #include "bncconst.h"
|
|---|
| [5884] | 35 | #include "bnctime.h"
|
|---|
| [6137] | 36 | #include "satObs.h"
|
|---|
| [649] | 37 |
|
|---|
| [5884] | 38 | class bncRinex;
|
|---|
| 39 |
|
|---|
| [35] | 40 | class GPSDecoder {
|
|---|
| [622] | 41 | public:
|
|---|
| [3528] | 42 | GPSDecoder();
|
|---|
| [5884] | 43 | virtual ~GPSDecoder();
|
|---|
| [622] | 44 |
|
|---|
| [8197] | 45 | virtual t_irc Decode(char* buffer, int bufLen,
|
|---|
| [3528] | 46 | std::vector<std::string>& errmsg) = 0;
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| [1567] | 49 | virtual int corrGPSEpochTime() const {return -1;}
|
|---|
| 50 |
|
|---|
| [3529] | 51 | void initRinex(const QByteArray& staID, const QUrl& mountPoint,
|
|---|
| [8197] | 52 | const QByteArray& latitude, const QByteArray& longitude,
|
|---|
| [3529] | 53 | const QByteArray& nmea, const QByteArray& ntripVersion);
|
|---|
| 54 |
|
|---|
| [6137] | 55 | void dumpRinexEpoch(const t_satObs& obs, const QByteArray& format);
|
|---|
| [3528] | 56 |
|
|---|
| 57 | void setRinexReconnectFlag(bool flag);
|
|---|
| 58 |
|
|---|
| [8235] | 59 | struct t_antRefPoint {
|
|---|
| [1268] | 60 | enum t_type { ARP, APC };
|
|---|
| 61 |
|
|---|
| [8235] | 62 | t_antRefPoint() {
|
|---|
| [1268] | 63 | xx = yy = zz = height = 0.0;
|
|---|
| 64 | type = ARP;
|
|---|
| 65 | height_f = false;
|
|---|
| 66 | message = 0;
|
|---|
| 67 | };
|
|---|
| 68 |
|
|---|
| 69 | double xx;
|
|---|
| 70 | double yy;
|
|---|
| 71 | double zz;
|
|---|
| 72 | t_type type;
|
|---|
| 73 | double height;
|
|---|
| 74 | bool height_f;
|
|---|
| 75 | int message;
|
|---|
| 76 | };
|
|---|
| 77 |
|
|---|
| [8235] | 78 | struct t_antInfo {
|
|---|
| 79 | t_antInfo() {
|
|---|
| 80 | };
|
|---|
| 81 | char descriptor[256];
|
|---|
| 82 | char serialnumber[256];
|
|---|
| 83 | };
|
|---|
| 84 |
|
|---|
| 85 | struct t_recInfo {
|
|---|
| 86 | t_recInfo() {
|
|---|
| 87 | };
|
|---|
| 88 | char descriptor[256];
|
|---|
| 89 | char serialnumber[256];
|
|---|
| 90 | char firmware[256];
|
|---|
| 91 | };
|
|---|
| 92 |
|
|---|
| [6812] | 93 | /** List of observations */
|
|---|
| [8235] | 94 | QList<t_satObs> _obsList;
|
|---|
| 95 | QList<int> _typeList; // RTCM message types
|
|---|
| 96 | QList<t_antInfo> _antType; // RTCM antenna descriptor
|
|---|
| 97 | QList<t_recInfo> _recType; // RTCM receiver descriptor
|
|---|
| 98 | QList<t_antRefPoint> _antList; // RTCM antenna XYZ
|
|---|
| 99 | QString _gloFrq; // GLONASS slot
|
|---|
| 100 | bncRinex* _rnx; // RINEX writer
|
|---|
| [222] | 101 | };
|
|---|
| [35] | 102 |
|
|---|
| 103 | #endif
|
|---|